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...Constant Errors on Portal, Requiring IIS ResetConstant Errors on Portal, Requiring IIS Reset
Previous
 
Next
New Post
3/13/2008 3:47 PM
 

I get several different error pages when the site has crashed. I know that the web.config has this in it:

<!-- permits errors to be displayed for remote clients -->
      <customErrors mode="Off" />
<!-- Forms or Windows authentication -->
<authentication mode="Forms">
      <forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />

Yet 50% of my error pages post-crash refer to this line instructing me to set customErrors to Off. This makes me think there are permissions issues? Maybe the web.config is locking up?? We've looked a few times after it crashed and found no obvious issues.


The most common 4 errors I see in the Event Viewer are below. Sometimes I see these about 50 times within 1-2 hours of each other. (Generally the same error repeated.)

AssemblyVersion: 04.06.02
PortalID: 0
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Home
RawURL: /Stores/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
AbsoluteURL: /Stores/Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
DefaultDataProvider:
ExceptionGUID: f68080a5-0b11-44a1-a258-fd270252b0bb
InnerException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Security.CodeAccessSecurityEngine.Check
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Path.GetFullPath(String path) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) at System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) at System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) at System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection(String sectionName) at DotNetNuke.Framework.Providers.ProviderConfiguration.GetProviderConfiguration(String strProvider) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) at DotNetNuke.Modules.NavigationProvider.NavigationProvider.Instance(String FriendlyName) at DotNetNuke.UI.Skins.NavObjectBase.InitializeNavControl(Control objParent, String strDefaultProvider) at DotNetNuke.UI.Skins.Controls.Nav.OnInit(EventArgs e) in d:\Inetpub\gostores\website\Admin\Skins\Nav.ascx.vb:line 177 at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.Framework.DefaultPage.Page_Init(Object sender, EventArgs e) in d:\Inetpub\gostores\website\Default.aspx.vb:line 589 at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Page.OnInit(EventArgs e) at DotNetNuke.Framework.PageBase.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---

Several Errors involving the SolPart Menu:

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 04.06.02
PortalID: 0
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Home
RawURL: /stores/Default.aspx
AbsoluteURL: /stores/Default.aspx
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID: 9fe15268-1298-4eb7-83a9-b580bbd7308d
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.WebControls.SolPartActions.get_ExpandDepth
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.WebControls.SolPartActions.get_ExpandDepth() at DotNetNuke.UI.WebControls.SolPartActions.Page_PreRender(Object sender, EventArgs e) --- End of inner exception stack trace ---

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 04.06.02
PortalID: 0
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Home
RawURL: /stores/Default.aspx
AbsoluteURL: /stores/Default.aspx
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID: 65488c64-411d-44d9-82b0-a2961d2edd9b
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.WebControls.SolPartActions.SetMenuDefaults
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.WebControls.SolPartActions.SetMenuDefaults() --- End of inner exception stack trace ---
Source:


And MapPathCaching:

AssemblyVersion: 04.06.02
PortalID: 0
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: Home
RawURL: /stores/Default.aspx
AbsoluteURL: /stores/Default.aspx
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID: 83ab45d8-28e9-4015-91ff-893c3fc44662
InnerException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.Configuration.MetabaseServerConfig.MapPathCaching
StackTrace:
Message: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) at System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) at System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection(String sectionName) at DotNetNuke.Framework.Providers.ProviderConfiguration.GetProviderConfiguration(String strProvider) at DotNetNuke.Services.Exceptions.BasePortalException.InitilizePrivateVariables() The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer
Source:

 
New Post
3/13/2008 5:27 PM
 

THese do all appear to be related to File IO Permissions.

You will want to make sure that the ASP.NET Worker process has FULL permissions to the entire DNN site.  This is the ASPNET account on Windows 2000 and XP and the NETWORK SERVICE account on Windows Server2003/2008 and Vista.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
3/14/2008 9:35 AM
 

You're right. The first and last error definitely seem related to that. I will go through all of the permissions again and hopefully rectify those issues.

What about the errors in relation to the SolPart Menu? The ModuleID and ModuleDef are both -1... and the error states there was a null reference.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Constant Errors on Portal, Requiring IIS ResetConstant Errors on Portal, Requiring IIS Reset


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