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 ...Permissions Issue?Permissions Issue?
Previous
 
Next
New Post
2/11/2006 4:01 PM
 
Hi - I was wondering if anyone out there has had similar problems or any suggestions to the error I'm experiencing very regularly (almost constantly) basis...

My 4.0.1 installation was working fine until 31st Jan then I've been getting the very regular but intermittent error detailed at the bottom of this post for no apparent reason ever since. Contacting my hosting provider they recommended upgrading to 4.0.2 as they said this version works better in a medium trust environment (the web server is Windows 2003 and the database is sitting on SQL Server 2005). I upgraded without a hitch but the problem still occurs. I find that when the problem occurs if I keep refreshing the page eventually the page will display without an error?!? But it's not long before the error's hitting again.

I'm on a cheap hosting plan with aspnix.com so am sharing the server with many other web sites and databases so I'm wondering if some other web site or sites is using up all the resources. My site is gavinharriss.com, but I doubt this detail will help much here.

The hosting provider claims to have numerous other 4.0.2 installations present that don't have problems on the same server. However they believe they are all fresh installs straight to 4.0.2 rather than starting life as version 4.0.1 then being upgraded to 4.0.2 (though remember my problem has persisted over both versions through an successful upgrade).

Sometime after I installed 4.0.1 the hosting provider bumped up to medium trust level as there had been a severe hack of the server where all sites were deleted from the server (I had made a local backup thankfully). This wouldn't be an issue that DotNetNuke was installed before the medium trust level was imposed would it?

The log viewer is almost wall to wall errors of the variety shown here...

2/11/2006 1:33:32 PM   General Exception       AssemblyVersion: 04.00.02; Method: System.Security.CodeA ...
AssemblyVersion: 04.00.02
Method: System.Security.CodeAccessSecurityEngine.Check
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
AbsoluteURL: /dnn/Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: 0f50be30-3ad0-4348-a4d8-b9758a6b508e
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: Unhandled Error:
Message: System.Exception: Unhandled Error: ---> 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.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) at System.Web.HttpContext.GetFilePathData() at System.Web.HttpContext.GetConfigurationPathData() at System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String configKey) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at System.Configuration.ConfigurationManager.get_AppSettings() at DotNetNuke.Common.Utilities.DataCache.get_CachePersistenceEnabled() at DotNetNuke.Services.Cache.FileBasedCachingProvider.FBCachingProvider.Insert(String CacheKey, Object objObject, Boolean PersistAppRestart) at DotNetNuke.Entities.Host.HostSettings.GetHostSettings() at DotNetNuke.Common.Globals.get_PerformanceSetting() at DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsByPortal(Int32 PortalID) at DotNetNuke.Entities.Tabs.TabController.FillTabInfo(IDataReader dr, Boolean CheckForOpenDataReader) at DotNetNuke.Entities.Tabs.TabController.GetTab(Int32 TabId) at DotNetNuke.Entities.Portals.PortalSettings.GetPortalByTab(Int32 TabID, String PortalAlias) at DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 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 ---
StackTrace:
Source:
Server Name: ANAXASVR11

Any help, insights, theories or solutions would be most appreciated as the hosting provider seems to be a bit stumped as well as myself.

Gavin
Portfolio: www.gavinharriss.com


 
New Post
2/12/2006 12:29 PM
 
Since I posted this issue I've since found the following post http://forums.asp.net/1195386/ShowPost.aspx where someone else seems to be experiencing the same problem...

Apparently my problem stems from the fact that my DotNetNuke installation lives as a sub application in my site (gavinharriss.com/dnn/) under a medium trust environment.

Anyone have any suggestions?

Gavin
Portfolio: www.gavinharriss.com


 
New Post
2/15/2006 10:20 PM
 
Gavin,

I notice that your site is now running at a sub application: what made it work?

thanks,

Hank
 
New Post
2/16/2006 8:15 AM
 
Hi Hank,

Nothing has been resolved, my web site still has an intermittent error unfortunately. Seems most stable after the application has restarted then slowly gets worse and worse until it's restarted again unfortunately.

Not had any feedback regarding my problem so I think I'll re-install DNN in the root of my web site as a fresh install when I get some free time. It's a pity as I like having the option to add independent web applications if required (maybe I can still do this with a little tweaking of siteurls.config, I'll have to have a play and find out).

Gav :)

Gavin
Portfolio: www.gavinharriss.com


 
New Post
3/1/2006 6:50 PM
 

I am experiencing exactly the same problem.

I completed a fresh installation of DNN 4.0.2 on GoDaddy.  DNN was installed into a virtual directory. (example:  domain.com/portal).  There were no errors during the installation and the site was working without any problems.  However, after I started the process of adding some content, I would randomly receive a Security Exception (see bottom of post).  When I say random, I mean there is no recognizable pattern to the cause or timing of the exceptions.  For example, clicking the Edit Text link of an Html/Text module and then clicking the Cancel link in the editor would work for x number of times.  It might work 2 times or it might work for 10 minutes.  It appears to be completely random.

I have tested the same scenario on an ASPNix account as well with the same results.

I have verified over and over again that permissions are set correctly, web.config is correct, and the virtual directory is configured to run as an application.  The extremely frustrating part about all of this is that the site works part of the time.  You can actually go through the process of adding/editing content (sometimes as long as 10 minutes).  Then, at a random moment, I start getting Security Exceptions that continue until the web application is restarted.  Once the web application is restarted, the exceptions discontinue again for a random amount of time.  Again, this is not tied to a specific module.  I cannot determine a distinguishable pattern other than restarting the web application will temporarily resolve the problem.

I have unsuccessfully attempted to duplicate this problem on my local machine.  I requested that ASPNix send me the machine.config for my server for testing purposes.  However, after explaining to them the error, they responded by telling me "You must run it in a full sub domain or full domain meaning it must be seperate site in IIS for sure results!".  This is, of course, not true.  I have two co-workers that are running successful installations of DNN 4.0.2 on GoDaddy without this problem.  I have even compared my configuration and permissions to their sites and we are still unable to find a discrepancy.

If there is anyone who can shed some light as to some possible solutions or how to further diagnose the problem, it would be greatly appreciated.  I have been pulling my hair out over this for the last two days. 

Here is the exception information:

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.Entities.Host.HostSettings.GetHostSettings() +250
   DotNetNuke.Common.Globals.get_PerformanceSetting() +6
   DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsByPortal(Int32 PortalID) +31
   DotNetNuke.Entities.Tabs.TabController.FillTabInfo(IDataReader dr, Boolean CheckForOpenDataReader) +2571
   DotNetNuke.Entities.Tabs.TabController.GetTab(Int32 TabId) +54
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalByTab(Int32 TabID, String PortalAlias) +32
   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

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Permissions Issue?Permissions Issue?


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