Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +688
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +173
System.Web.CachedPathData.GetConfigPathData(String configPath) +398
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +329
System.Web.HttpContext.GetFilePathData() +27
System.Web.HttpContext.GetConfigurationPathData() +27
System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) +136
System.Web.HttpRequest.get_Browser() +115
System.Web.ErrorFormatter.RequiresAdaptiveErrorReporting(HttpContext context) +102
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
I get the above error with 4.3.5 after I have set everything up for a dotnetnuke on a particular Win 2003 server.
On other Windows 2003 servers I do net get the error. But on this server whatever I try I keep getting the error.
I've follwed all the steps:
- unzip the install package
- setup the database
- setup database login
- set permissions on the folder
- configure IIS (i've tried virtual directory and a directory under c:\inetpub\wwwroot
- configure web.config (connectionstring settings at 2 locations)
- perform the installation on http://localhost/dotnetnuke
I've given full rights to asp.net and to network service account. But keep on getting the error on this particular server. The only difference I can see is that I have used remote desktop to install everything on that server.
Any suggestions are welcome.