hi
I build a VB .NET application that makes file access, environnemet acess,
database access, etc....
If I ran the app locally, everything works....(norma l)
If I copy the app on a server, and execute it, everything works until a
file/environnement/database access !.....
I just want that my app may run in every machine!
I dont want to use client app like caspol.exe or mscorcfg.msc... (because I
dont want to execute them in every computer!)
I found information on FileIOPermissio n, EnvirronementPe rmissionAttribu te,
.....
for exemple : <Assembly: FileIOPermissio n(SecurityActio n.RequestMinimu m,
Unrestricted:=T rue)>
but nothing works (the program ask me for a debug)
I also found this code :
Dim fp As EnvironmentPerm ission
Try
fp = New EnvironmentPerm ission(Permissi onState.Unrestr icted)
fp.Demand()
Catch e1 As Exception
MessageBox.Show (e1.Message)
End Try
BUT nothing works!
I have something like :
System.Security .Permissions.Fi leIOPermission, mscorlib,
Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed.
I dont have found info on configuration files such as security.conf or
machine.conf...
Is it possible to resolve my problem with that?
so, my friends, you are my last chance....
What I must do?
thanks for your futur response
lobrys
I build a VB .NET application that makes file access, environnemet acess,
database access, etc....
If I ran the app locally, everything works....(norma l)
If I copy the app on a server, and execute it, everything works until a
file/environnement/database access !.....
I just want that my app may run in every machine!
I dont want to use client app like caspol.exe or mscorcfg.msc... (because I
dont want to execute them in every computer!)
I found information on FileIOPermissio n, EnvirronementPe rmissionAttribu te,
.....
for exemple : <Assembly: FileIOPermissio n(SecurityActio n.RequestMinimu m,
Unrestricted:=T rue)>
but nothing works (the program ask me for a debug)
I also found this code :
Dim fp As EnvironmentPerm ission
Try
fp = New EnvironmentPerm ission(Permissi onState.Unrestr icted)
fp.Demand()
Catch e1 As Exception
MessageBox.Show (e1.Message)
End Try
BUT nothing works!
I have something like :
System.Security .Permissions.Fi leIOPermission, mscorlib,
Version=1.0.330 0.0, Culture=neutral , PublicKeyToken= b77a5c561934e08 9
failed.
I dont have found info on configuration files such as security.conf or
machine.conf...
Is it possible to resolve my problem with that?
so, my friends, you are my last chance....
What I must do?
thanks for your futur response
lobrys
Comment