kishorebanda
asked on
ERROR: Sytem.Security.Permissions.SecurityPermission, mscorlib, version=1.0.3300.0, Culture=neutral PublicKeyToken-b77a5c561934e089 failed
hello experts,
I have an application built in .Net. The client computers have the .Net Framework installed. I can run the application locally with no errors, however. if i put the exe on a network drive it will not run. i always get
The application attempted to perform an operation not allowed by the security policy. the operation required the SecurityException. To grant this application the required permission please contact your system administrator, or use the Microsoft.Net security policy administration tool.
Request for the permission of type Sytem.Security.Permissions
I have already done
-gave the app a strong name with sn -k
- addde an AssemblyKeyFileAttribute n then recompiled
- Trusted all versions with full trust with the same key (using .net wizards trust an assembly)
- Enabled full trust on local intranet
the connection string i am using in the code is
SqlConnection("Data Source=servername;Initial Catalog=DBasename;User ID=userid;Password=xxxxx")
I am using visual studio 2003, sql server2000, and windows server 2003
ASKER
Thanks a lot topdog770 for the reply.
I already gave all permissions at machine level and user level. I have tried setting all zones(local intranet, my computer, strong name,.......).
Do i have to do anything on client machine. How do we give full trust on the local computer?
Thank You
I already gave all permissions at machine level and user level. I have tried setting all zones(local intranet, my computer, strong name,.......).
Do i have to do anything on client machine. How do we give full trust on the local computer?
Thank You
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I login to my domain and then i log into server remotely( locally). I have Microsoft .NET Framework 1.1 configuration on the server. But i dont have it on local machine.
ASKER
Hey its working now.....
I found out that it doesnot work on shared drives. If itry to drag n drop it on local computer.then it works.
Thanks a lot topdog770 fro all these replies
I found out that it doesnot work on shared drives. If itry to drag n drop it on local computer.then it works.
Thanks a lot topdog770 fro all these replies
Ok! I'm making this too hard and forgot the most basic thing of all... and it gets me every once in a while too..
Install the .NET Framework on thier computer and then set permissions and then, finally, the app should work.
Install the .NET Framework on thier computer and then set permissions and then, finally, the app should work.
ASKER
Thanks again,
i did have framework installed on the client machine
Kishore
i did have framework installed on the client machine
Kishore
It's a quick and dirty test, but it should work if you provide full trust on both the local computer and full trust on the local intranet as well.