Partially trusted???

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top