Ann McCall
Member
- Joined
- Sep 6, 2007
- Messages
- 10
- Programming Experience
- 1-3
My App is getting this error when I try to deploy it on a network shared server:
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,....... and so on
Can you please step me thru exactly what I need to do to get rid of the security policy erro my app (C# vb.net Framework 1.1) is getting?
This is what I understand I need to do:
1. Create a command prompt for .net
Execute the following line:
sn.exe -k KeyFile.snk
Put KeyFile.snk in a folder my app can access.
2. Add this to my AssemblyInfo.cs file:
[assembly: AssemblyKeyFile("KeyFile.snk")]
3. Rebuild my app.
4. Redeploy my app on network server.
Copy KeyFile.snk to folder my apps expects it in.
5. On network server:
Add new code group - "AnyName"
Choose "Strong Name" as condition.
Import my exe and give it full trust.
Now my app should work?
Please let me know if I left anything out.
I am only a mere developer not a network guru and I need to get my app working quickly.
mccalla
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,....... and so on
Can you please step me thru exactly what I need to do to get rid of the security policy erro my app (C# vb.net Framework 1.1) is getting?
This is what I understand I need to do:
1. Create a command prompt for .net
Execute the following line:
sn.exe -k KeyFile.snk
Put KeyFile.snk in a folder my app can access.
2. Add this to my AssemblyInfo.cs file:
[assembly: AssemblyKeyFile("KeyFile.snk")]
3. Rebuild my app.
4. Redeploy my app on network server.
Copy KeyFile.snk to folder my apps expects it in.
5. On network server:
Add new code group - "AnyName"
Choose "Strong Name" as condition.
Import my exe and give it full trust.
Now my app should work?
Please let me know if I left anything out.
I am only a mere developer not a network guru and I need to get my app working quickly.
mccalla