I too am having these same issues on a 1and1.co.uk hosting account in the United Kingdom. All was fine for a few months with DNN 4.0.3 setup in a sub directory (application) and now im getting these intermittent errors. It would seem to me that due to its intermittent nature it will be an accumulative bug in some aspect of the core ASP .NET 2.0 code or some thrird party managment code that is causing some kind of error to occur during high load times on the server. Sometimes my DNN sites work fine and on other occassions they are almost always failing with a security exception....and sometimes working fine (on refresh).
This is a VERY frustrating issue as in bassically makes it impossible to rely on hosting any web site in DNN 4.0.3. I have not yet tried hosting in the root as suggested by others but may try that soon.
Please if ANYONE can help shed some more light on this issue it would be greatley appreciated as it seems to be stiffling the use of DNN in shared hosting environments.
Thanks, Rod.
Server Error in '/dnn' 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
DotNetNuke.Common.Utilities.DataCache.get_CachePersistenceEnabled() +4
DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, Boolean PersistAppRestart) +60
DotNetNuke.Common.Utilities.CBO.GetPropertyInfo(Type objType) +191
DotNetNuke.Common.Utilities.CBO.CreateObject(Type objType, IDataReader dr) +56
DotNetNuke.Common.Utilities.CBO.FillCollection(IDataReader dr, Type objType) +53
DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsByPortal(Int32 PortalID) +166
DotNetNuke.Entities.Tabs.TabController.FillTabInfo(IDataReader dr, Boolean CheckForOpenDataReader) +2594
DotNetNuke.Entities.Tabs.TabController.GetTab(Int32 TabId) +55
DotNetNuke.Entities.Portals.PortalSettings.GetPortalByTab(Int32 TabID, String PortalAlias) +33
DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2309
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