|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Unable to run c++ .net executable from a network drive hooked to serverwhen i try to run a C++ .net executable from a network drive hooked to
server it throws the following execption SYSTEM.SECUTRITY.POLICY.POLICYEXECPTION. i have tried copying the project in to the network drive and running it from there but it shows the same error...any suggestions!!! your help will be appreciated See http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx for an
explanation of why the problem occurs and what you can do to avoid it. In your case, the missing permission is very likely to be SecurityPermission\SkipVerification since your application is written in C++ and the problem manifests as a PolicyException rather than a SecurityException. <kamiset***@gmail.com> wrote in message Show quoteHide quote news:1126810741.640398.150500@g14g2000cwa.googlegroups.com... > when i try to run a C++ .net executable from a network drive hooked to > server it throws the following execption > SYSTEM.SECUTRITY.POLICY.POLICYEXECPTION. > i have tried copying the project in to the network drive and running it > from there but it shows the same error...any suggestions!!! > > your help will be appreciated > thank you for your help.
using strong name works. but i am running the executable from a network drive mounted to the server. i cannot change the security policy in the server to trust this strong name. is there any other of doing this. Thanks Show quoteHide quote "Nicole Calinoiu" wrote: > See http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx for an > explanation of why the problem occurs and what you can do to avoid it. In > your case, the missing permission is very likely to be > SecurityPermission\SkipVerification since your application is written in C++ > and the problem manifests as a PolicyException rather than a > SecurityException. > > > <kamiset***@gmail.com> wrote in message > news:1126810741.640398.150500@g14g2000cwa.googlegroups.com... > > when i try to run a C++ .net executable from a network drive hooked to > > server it throws the following execption > > SYSTEM.SECUTRITY.POLICY.POLICYEXECPTION. > > i have tried copying the project in to the network drive and running it > > from there but it shows the same error...any suggestions!!! > > > > your help will be appreciated > > > > > Code running from a network will be assessed as coming from the intranet
zone. The default CAS policy does not grant SecurityPermission\SkipVerification to intranet code. You really have only three main options for avoiding the resulting PolicyException: 1. Distribute code that doesn't require SkipVerification. (Presumably a bit late in the game to make this choice given that you've already developed your application.) 2. Change the CAS policy on the machine on which the code will run so that your application is granted the additional permissions it needs. 3. Copy the application to the machine on which it will run so that it is assessed as running from the local zone rather than the intranet zone. Since locally run code is granted an unrestricted permission set under default CAS policy, this should avoid the problem unless the CAS policy has been modified to use non-default settings for the local zone. Show quoteHide quote "dotnetbaby" <dotnetb***@discussions.microsoft.com> wrote in message news:210E291D-0C68-487D-B0F7-83DDDF152BB5@microsoft.com... > thank you for your help. > > using strong name works. but i am running the executable from a network > drive mounted to the server. i cannot change the security policy in the > server to trust this strong name. is there any other of doing this. > > Thanks > > > "Nicole Calinoiu" wrote: > >> See http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx for an >> explanation of why the problem occurs and what you can do to avoid it. >> In >> your case, the missing permission is very likely to be >> SecurityPermission\SkipVerification since your application is written in >> C++ >> and the problem manifests as a PolicyException rather than a >> SecurityException. >> >> >> <kamiset***@gmail.com> wrote in message >> news:1126810741.640398.150500@g14g2000cwa.googlegroups.com... >> > when i try to run a C++ .net executable from a network drive hooked to >> > server it throws the following execption >> > SYSTEM.SECUTRITY.POLICY.POLICYEXECPTION. >> > i have tried copying the project in to the network drive and running it >> > from there but it shows the same error...any suggestions!!! >> > >> > your help will be appreciated >> > >> >> >>
Importance of salt
Anonymous access + Windows Authentication X.509 "Bad Key" error - EnvelopedCms.Decrypt() Strong Names Secure??? RSACryptoServiceProvider Sending raw sockets without administrative privileges? Windows authentication only xml based AzMan and ActiveDirectory Windows Security pops up when executing javascript in an asp.net p .NET 2.0: code access security / authentication |
|||||||||||||||||||||||