Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

.NET SecurityPermissions error

 

I have an application installed on about 30 machines and all is running fine except for one PC which has shown an error :

 

"The application tried to perform an operation not allowed by the security policy. The operation required the SecurutyException To grant this application the required permissions please contact your system administrator, or use the Microdoft .NET security policy adminstrator tool.

 

click continue, yadda yadaa type message

 

Request for the permission of type

System.Security.Permissions.SecurityPermissions, mscorlib,

Version=1.0.5000.0, Culture=neutral,

PublicKeyToken=b77a5c561924e089 failed"

 

Now this happens when I am trying to get the users login name with

 

System.Username (I think that's right I'm at home right now but that'll be close)

 

Any ideas how to either find the security policy editor or resolve the problem without it ?

Edited by DWright
Posted

Okay solved it.

 

It would appear that for some reason it wasn't running the local .NET application and instead the shortcut was now pointing at the server to run the .EXE, which I've now found out does need additional security setting up. But change the shorcut to point to the local copy and hey-presto it all works fine :)

 

And yes all machines have .NET installed, it's another error message if .NET isn't installed which I can't remember off the top of my head

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...