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 ...Random security exceptions?Random security exceptions?
Previous
 
Next
New Post
5/24/2006 12:32 PM
 
I installed DNN4.0.3 a couple of days ago and the installation went well. Worked out a couple of kinks in web.config and it worked fine.

But today, I began getting random security exceptions. It mostly happens when I try to add a page or a module. It will give me a security exception, and I will go back and try to do the operation again and it will give me the same error. Then I'll go browse to another page on the site and get the same exception. But then I wait about five or ten minutes and go back and do the exact same thing or create the exact same page, and it will act just like it's supposed to... So it's unrepeatable. I'm not using any modules that are out of the ordinary, either - just the ones that were provided on this site.

The site won't be live for another two or three weeks, so it's not urgent, but I can't have this random instability when it goes live. Here's what it looks like...

----------------------

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
 
New Post
5/24/2006 5:04 PM
 
I have also found that if I hit Refresh enough times (usually 3-5), it will eventually work.
 
New Post
5/27/2006 11:11 AM
 

Hi,

I've had the same problem - and managed to trace it to 2 x user controls that were being cached every 5 minutes.  The caching worked fine on my local machine but as soon as I uploaded it to the server, it threw a security exception error.  I think it's because the server has a security level set that does not allow this function - which is not good for performance.

According to the microsoft site, required permissions are :

  • AspNetHostingPermission  for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
  •  
    Minimal - Indicates that features protected with a demand for the Minimal level will succeed. This level allows code to execute but not to interact with resources present on the system. This level is granted by configuring at least the Minimal trust level using the trust section in a configuration file. 
     
    None - Indicates that no permission is granted. All demands for AspNetHostingPermission will fail.
     
    I'm assuming that this is the problem but am waiting for my hosting company to get back to me - they don't seem to know what's going on either.  I do know that because it is a shared host, security permissions are not high and very little access to server resources is allowed.
     
    Have you found an answer yet?
     
    New Post
    6/1/2006 1:45 PM
     

    Hi everybody,

    I've met the same error! Anybody can help us solving this problem?

     
    New Post
    6/6/2006 12:40 AM
     
    I am also experiencing the same issue (in the last couple of days) with my DNN site on GoDaddy.
     
    Previous
     
    Next
    HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Random security exceptions?Random security exceptions?


    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