When I compile my Visual C++ .NET project under a shared drive, I get the following error:

"An unhandled exception of type 'System.Security.Policy.PolicyException' occurred in Unknown Module."

What do I need to configure to allow shared drives to be fully trusted?

Thanks.

The solution is to run mscorcfg.msc (.NET Framework Configuration Tool) and elevate the trust level of <Local Intranet> to Full Trust.

The solution is to run mscorcfg.msc (.NET Framework Configuration Tool) and elevate the trust level of <Local Intranet> to Full Trust.

How would I go about doing that? (dealing with the same problum now)

Go to C:\WINNT\Microsoft.NET\Framework\v1.1.4322 and run mscorcfg.msc

Select <Runtime Security Policy> => Select <Adjust Zone Security> => Select <Local Intranet> and elevate arrow to <Full Trust>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.