Click to See Complete Forum and Search --> : Project location is not fully trusted


Suzi
January 26th, 2005, 07:15 AM
Donīt know if Iīm in the right forum but I hope so :)

When I create a C++ Empty Project in Visual Studio .NET 2003 I get this message that says: "The Project location is not fully trusted by the .NET-runtime..." (see attached file for the whole message).

If I ignore the message and creates the project I canīt run the program, if I try I get the following error: "Unhandled Exception: System.Security.Policy.PolicyException: Unverifiable assembly 'z:\C_plusplus\test2\Debug\test2.exe' failed policy check."

In Visual Studio 6.0 the same works perfectly fine so I guess thet .NET 2003 has better security?

Is there any simple way to get around the problem without moving the project to the local drive?

Thanks
/Suzi

Mick
January 26th, 2005, 09:13 AM
You have to set the security policy

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/entsecpoladmin.asp

The simple example would be going to the control panel->.net framework wizard->adjust .net secuirty and give full trust to the particular zone.