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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Security Exception - File IO Permissions errorSecurity Exception - File IO Permissions error
Previous
 
Next
New Post
11/5/2006 1:51 AM
 

Hi everyone, installed 4.3.5 (install kit) on a commercial host - installation reported no errors. The hosting org also says all folder permissions are OK.

Now when I login as Host and try to do almost anything, I get the following error. The error is intermitant and not reproducable, i.e. it happens doing different things each time, but always eventually. /DDNtest is the folder in the root directory where I have done the installation. Any ideas?

Kind regards, JP

Server Error in '/DNNtest' Application.

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.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +59
   System.IO.Path.GetFullPath(String path) +98
   System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) +50
   System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) +23
   System.Web.CachedPathData.GetConfigPathData(String configPath) +465
   System.Web.CachedPathData.GetConfigPathData(String configPath) +243
   System.Web.CachedPathData.GetConfigPathData(String configPath) +243
   System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +132
   System.Web.HttpContext.GetFilePathData() +27
   System.Web.HttpContext.GetConfigurationPathData() +26
   System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey) +36
   System.Configuration.ConfigurationManager.GetSection(String sectionName) +107
   System.Configuration.ConfigurationManager.get_AppSettings() +29
   System.Web.Configuration.WebConfigurationManager.get_AppSettings() +5
   DotNetNuke.Common.Globals.GetDomainName(HttpRequest Request) +60
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +4051
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
New Post
11/5/2006 7:26 AM
 

I am not exactly sure what you are doing that exposes this but:

This problem really looks like something the host has to change.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
11/18/2006 6:32 PM
 
I get the same error on a clean install of dnn 4.5.6. Installation goes well. The homepage is missing all content and after logging in once as host, I get this error. I am using Discount ASP.net as the isp. I have previosely installed dnn 4.03 successfully on this host as well as locally. Anyone else come up against this and developed a solution.

Thanks,
Dan

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.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.IO.Path.GetFullPath(String path) +98
System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) +50
System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) +23
System.Web.CachedPathData.GetConfigPathData(String configPath) +465
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +132
System.Web.HttpContext.GetFilePathData() +27
System.Web.HttpContext.GetConfigurationPathData() +26
System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey) +36
System.Configuration.ConfigurationManager.GetSection(String sectionName) +107
System.Configuration.ConfigurationManager.get_AppSettings() +29
System.Web.Configuration.WebConfigurationManager.get_AppSettings() +5
DotNetNuke.Common.Globals.GetDomainName(HttpRequest Request) +60
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +4051
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
 
New Post
11/19/2006 4:53 AM
 

I decided to scrap the previous installation and do a fresh install of 4.3.6. I deleted all the files in the folder and cleaned out the database. The installation reported no errors, but I didn't have a blank initial page (like Rothschildd) - all the containers were there and the graphics, as expected. I thought great it's gunna work this time, but nope. I was able to login on but when I tried to change the passwords the same error came up. I was able to change one (viz. admin) and it seemed to fail when trying host.

Previously (with 4.3.5) the same error happened unpredictably, but usually within a few minutes of accessing and doing stuff on the site. Prior to the fresh install this time, almost out of desparation, I renamed the folder to be all lower-case (previously it was mixed case) and got my host to update the IIS (application root) too. Didn't appear to make any difference. My hosting provider is Webcentral, if that is important to anyone thinking about this error.

This is getting pretty serious for me now - any hints anyone? The error message talks about trust levels - is there something in this? Or perhaps the pathTooLong reference?

FYI, if I try and access the site immediately after the error, the URL is converted to:
http://www.mydomain.com/dnntest/Default.aspx?tabid=36&error=Request+for+the+permission+of+type+'System.Security.Permissions.FileIOPermission%2c+mscorlib%2c+Version%3d2.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db77a5c561934e089'+failed.&content=0

and the following is displayed in the browser window:

An error has occurred.
An error has occurred.
--- Edited to remove actual domain to stop Google displaying as a search result.


When I wait awhile and access the site, the same thing happens - I can usually login and navigate around doing stuff, but always within minutes the error occurs and the site is not usable again. That is until, something closes down and is restarted when access is made again to the site - after 15-20 minutes or so.

Is it something to do with caching?

I'm getting a little desparate - as we'll have our new skin on Monday and I don't have a live site to put it up on!!

 
New Post
11/19/2006 9:40 AM
 
Hey Jeff,
I hear you man. I had to go to an old static version of my site while the dnn version is down. I think this is a bug in the install process somewhere. I will try installing version 4.03; the last stable version I had running later today.
I'll post how that goes. If you come up with anything to resolve this drop a line.

Dan
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Security Exception - File IO Permissions errorSecurity Exception - File IO Permissions error


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