Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Security Exception with mscorlib on DNN 4.02 with load balanced serversSecurity Exception with mscorlib on DNN 4.02 with load balanced servers
Previous
 
Next
New Post
7/10/2006 2:38 AM
 

I'm getting a security exception error when trying to run Dotnetnuke 4.02 on load balanced web servers. 

I've tried setting Trust to Full and providing all the appropriate security permissions on the folder to no avail.

Have also tried a clean install of 4.3.2, that was the same.

Does anyone have any idea what this is?

Error is:

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) +3492170
   System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
   System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
   System.Web.CachedPathData.GetConfigPathData(String configPath) +382
   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +132
   System.Web.HttpContext.GetFilePathData() +27
   System.Web.HttpContext.GetConfigurationPathData() +26
   System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) +133
   System.Web.HttpRequest.get_Browser() +134
   System.Web.ErrorFormatter.RequiresAdaptiveErrorReporting(HttpContext context) +104

 

 
New Post
7/14/2006 5:50 PM
 
(bump) similar issue
 
New Post
7/14/2006 6:40 PM
 
I've since found the cause of this.  In my case the files for the website exist on another server and I'm using a unc path in the configuration of the website.  When I copy the files to the local server, ie everything running on the same server, DotNetnUke runs fine.  So it seems to be a security issue with the remote server.  This can be solved by adding a user that has permissions to the unc server on the machine running IIS.  Hope this helps.
 
New Post
8/8/2006 1:59 PM
 
I have this same issue using a web farm on a load balancer.  Everything is fine if the site runs locally but fails with exception errors if running on a unc share on another server.  I have IIS running as a domain account and that account has full access to all of the directories on the remote share.  Even putting the account in the administrator's group doesn't work.  The strange thing is, if you hit refresh on the page, the page eventually loads, but will throw an exception again later.   Anyone have any ideas what is missing?
 
New Post
8/15/2006 6:36 PM
 
I have the same issue. I am using a domain user to connect to the UNC path on another machine. I have given modify rights to the directory for that user. The anonymous user (also a domain account) has read and execute rights. I sometimes get an error on the URLrewrite line of the web.config and other times I get an error on system.security.permissions.fileIOPermision. Both errors indicate that the PublicKeyToken=hexnumbershere ' failed
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Security Exception with mscorlib on DNN 4.02 with load balanced serversSecurity Exception with mscorlib on DNN 4.02 with load balanced servers


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out