Partially trusted???

  • Thread starter Thread starter David N.
  • Start date Start date
D

David N.

Hi All,

I have a C# project that was created using VS.NET 2003. The project is on a shared network drive. When I open the project using VS.NET, I got the following warning message:

"The project locatoin is not fully trusted by the .Net run time because it is either a network share or mapped to a network share not on the local machine. If the output path is under the project location, your code will not execute as fully trusted and you may receive unexpected security exceptions."

When I run the program, I got the following sticky message:

".NET Security Information
This application is runningin a partially trusted context. Some functional in the application may be disabled due to security restriction."

And then if click on one of the menu item, which open a dialog that have code in my library, I got the following error:

"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 administrator tool."

I searched the Internet and got an article about using the mscorcfg.exe to set the trusted location. However, the mscorcfg.exe come with VC.NET 2003 does not have a place where I can enter the location of the shared folder like the article has instructed. And I cannot make the shared drive fully trusted.

Can someone shed a light on this tunnel?

Thanks.
 
Back
Top