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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Help with random Security Exception errorsHelp with random Security Exception errors
Previous
 
Next
New Post
8/17/2006 7:49 AM
 

Dear Experts:

After I successfully deployed a DNN434 portal on my 1and1 host site, I periodicially receive the following error message.  This particular error occurred when I tried to move a containter to another page.  But similar errors have occured during other Web operations. 

Any ideas would be appreciated.

Thank you in advance.

Chris


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.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
8/18/2006 4:42 AM
 

The applications trust level is controlled via the hosting provider, they are probably using Medium Trust. This means something is not allowed the permissions on the files it needs based on a defined set of rules (trust level). Contact your hosting provider to find out if they are running your dnn application under medium trust. My guess is yes. Now, the DotNetNuke core itself is configured to run in the medium trust level by default. When you start adding third party modules, this may not necessarily be the case. What non-core things are you running? As for moving a container to another page, this is not possible. I assume you mean moving a module to another page via the container. (I am guessing we are accomplishing the same thing here, just different verbage). I don't see how anything here would (moving a module) would cause this.

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Help with random Security Exception errorsHelp with random Security Exception errors


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