Unexpected PolicyException thrown on System config file

From: Andrew Ressler (andrew@microoutsource.com)
Date: 07/03/02


From: "Andrew Ressler" <andrew@microoutsource.com>
Date: Wed, 3 Jul 2002 08:18:53 -0700


While running an ASP.NET application in Visual Studio, I
frequently get the following error:

System.Security.Policy.PolicyException occurred in
mscorlib.dll
Additional information:
Policy level User cannot be saved.

Security.Policy.PolicyLevel.GenerateConfigFile

Of course, it screws up everything and loses my session.

So what file is it trying to save? Where is it trying to
save it? Why doesn't this just work. It certainly isn't
any of my code doing this. What security settings need
to be changed.

I have a straight-forward install of Visual Studio.NET on
Windows XP.

BTW, I consider this a bug in .NET. It shouldn't require
me to have to make changes unless it it is well
documented and I can find no documentation that helps me
here. I have already search MSDN quite a bit on this one.

Thanks,



Relevant Pages

  • Re: Common Library .NET and CF.NET
    ... > SolidBrush implements Dispose but does not seem to implement IDisposable. ... >> in your libraries, too. ... >> as a Class Library project (always assuming you will use Visual Studio). ... >> documentation of the .NETCF. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Call to MS Access parametrized query from ADO .NET
    ... with Visual Studio contains several examples of using an OleDbCommand object ... If you don't have Visual Studio, ... the same documentation can be found at msdn.microsoft.com/library. ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.db)
  • Re: No explicit directions.
    ... That documentation did NOT say how to build it so I was ... > Setting environment for using Microsoft Visual Studio .NET 2003 tools. ...
    (microsoft.public.vc.language)
  • RE: Updating the MSDN Library
    ... If I have to re-install the "Visual Studio.Net" documentation, ... Just reinstall product documentation from the Visual Studio .Net DVD? ... > Specifying a Preferred Help Collection ... > Using the Combined Help Collection Manager ...
    (microsoft.public.vsnet.setup)
  • Are the but standard C++ functions such as itoa(int,char*) supported or not???
    ... itoais still a standard c++ function. ... Visual Studio .Net 2003 does not show it in any normal way - it is ... the function altogether but claims that the function does not take 2 ...
    (microsoft.public.vc.language)