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
3/6/2006 1:30 PM
 

Did anyone get this sorted?

I'm on ASPNix and have permissions problems with System.Security.Permissions.FileIOPermission

Regards, Mark.

Disregard this post. It was my fault not Permissions or ASPNix. FileIO works under medium trust.

 
New Post
6/23/2006 9:41 AM
 

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

 

 

 
New Post
6/23/2006 11:37 AM
 
I too am having the same issue.  Has anyone figured it out?
 
New Post
6/25/2006 9:28 PM
 

I personally am trying to solve this problem (as mentioned in my previous post in this thread) by moving my DNN install into my root.  However I am having other problems and while reading the install notes more thoroughly I noted this highlighted info.  Maybe that is the cause of at least some of our problems???  I havent tried this yet to see if this fixes my issues in an application directory but maybe somebody else is able to try it and see.  Feedback appreciated.

--------------------------------------- An excerpt from the installation documentation Page 35 DNN 4.3.1  ---------------------------------------

Configuring web.config for Installation

While the web.config file for DotNetNuke v4.x differs quite a bit from that used in

DotNetNuke 3.x, most of the differences are due to .NET2 and not to DotNetNuke v4.x.

We will therefore only focus here on differences between v3.x and v4.x. Please refer to

the Chapter on Installing DotNetNuke v3.x for more information on DotNetNuke

specific web.config settings.

As with v3.x, before doing anything else rename release.config to web.config (if you

are required to run under Medium Trust then rather than use release.config, rename

development.config).

--------------------------------------- An excerpt from the installation documentation Page 35 DNN 4.3.1  ---------------------------------------

 

The development.config includes several medium trust compatibility entires and one entry which may need modifying for your url??

    <sectionGroup name="dotnetnuke">
      <!-- the requirePermission attribute will cause a syntax warning - please ignore - it is required for Medium Trust support-->
      <section name="data" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="logging" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="scheduling" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="htmlEditor" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="navigationControl" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="searchIndex" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="searchDataStore" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="friendlyUrl" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="caching" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"/>
      <section name="authentication" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />
      <section name="members" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />
      <section name="roles" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />
      <section name="profiles" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke" />
    </sectionGroup>

    <!-- set code access security trust level - this is generally set in the machine.config -->
    <trust level="Medium" originUrl="
http://localhost/.*" /> 

 
New Post
6/27/2006 2:31 AM
 
I am also with 1and1 and can successfully run DNN 4.0.3 in a sub-folder until the random security exceptions start. I had seen the note re Medium Trust in the Installation Guide and use of the development.config rather than the release.config. I had used the release.config for my installation but, when I checked my web.config, I found that it has the medium trust support section already there. I've left the <trust level="Medium... commented out because I'm assuming 1and1 have it set in the machine.config. Could there be anything else in the development.config that we need that isn't in the release.config?
 
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