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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...6.0.0 to 6.1.0 EnvironmentPermission Error6.0.0 to 6.1.0 EnvironmentPermission Error
Previous
 
Next
New Post
11/13/2011 5:55 PM
 
Hi,<br /> <br /> I have been using DotNetNuke 6.0.0 hosted on 1and1 running in Medium Trust. When I upgraded the upgrade page showed a successful upgrade across the board but when I access the site after this I get:<br /> <br /> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br /> <br /> Digging further by turning debugging on the error seems to come from the ClientResourceLoader in DotNetNuke.Web.Client.dll. (Full exception details below).<br /> <br /> Any help anyone can lend would be extremely helpful!<br /> <br /> Thanks,<br /> <br /> Alex.<br /> <br /> <h1>Server Error in '/' Application.<hr width="100%" size="1" color="silver" /> </h1> <h2> <i>Security Exception</i> </h2> <b> Description: </b>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. <br /> <br /> <b> Exception Details: </b>System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br /> <br /> <b>Source Error:</b> <br /> <br /> <table width="100%" style="background-color: #ffffcc;"> <tbody> <tr> <td><code> <pre>Line 39: </dnn:Form><br />Line 40: <asp:placeholder runat="server" id="ClientResourceIncludes" /><br /><strong>Line 41: <dnncrm:ClientResourceLoader runat="server" id="ClientResourceLoader"<br /></strong> Line 42: <Paths><br />Line 43: <dnncrm:ClientResourcePath Name="SkinPath" Path="<%# this.CurrentSkinPath %>" /></pre> </code></td> </tr> </tbody> </table> <br /> <b> Source File: </b> [EDIT]\www\Default.aspx<b> Line: </b> 41 <br /> <br /> <b>Stack Trace:</b> <br /> <br /> <table width="100%" style="background-color: #ffffcc;"> <tbody> <tr> <td><code> <pre>[SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]<br />System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0<br />System.Security.CodeAccessPermission.Demand() +61 System.Environment.get_MachineName() +66<br />ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.GetXmlMapPath() +31<br />ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.Initialize(HttpContextBase http) +114<br />ClientDependency.Core.Config.ClientDependencySettings.LoadDefaultFileMapConfig(ClientDependencySection section, HttpContextBase http) +124<br />ClientDependency.Core.Config.ClientDependencySettings.LoadProviders(ClientDependencySection section, HttpContextBase http) +415<br />ClientDependency.Core.Config.ClientDependencySettings..ctor() +94<br />ClientDependency.Core.Config.ClientDependencySettings.get_Instance() +78<br />ClientDependency.Core.Controls.ClientDependencyLoader..ctor() +97<br />DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader..ctor() +5<br />ASP.default_aspx.__BuildControlClientResourceLoader() in [EDIT]\www\Default.aspx:41<br />ASP.default_aspx.__BuildControlBody() in [EDIT]\www\Default.aspx:30<br />ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in [EDIT]\www\Default.aspx:1<br />ASP.default_aspx.FrameworkInitialize() in [EDIT]\www\Default.aspx.cs:912308<br />System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +56<br />System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21<br />System.Web.UI.Page.ProcessRequest(HttpContext context) +49<br />ASP.default_aspx.ProcessRequest(HttpContext context) in App_Web_ird_wpts.2.cs:0<br />System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181<br />System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 </pre> </code></td> </tr> </tbody> </table> <br /> <hr width="100%" size="1" color="silver" /> <b>Version Information:</b> Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420
 
New Post
11/14/2011 11:24 AM
 
Hi,I have been using DotNetNuke 6.0.0 hosted on 1and1 running in Medium Trust. When I upgraded the upgrade page showed a successful upgrade across the board but when I access the site after this I get System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Digging further by turning debugging on the error seems to come from the ClientResourceLoader in DotNetNuke.Web.Client.dll. (Full exception details below).Any help anyone can lend would be extremely helpful! Thanks, Alex. Server Error in '/' Application. Security ExceptionDescription: 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.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Source Error: Line 40: <asp:placeholder runat="server" id="ClientResourceIncludes" />Line 41: <dnncrm:ClientResourceLoader runat="server" id="ClientResourceLoader"Line 42: <Paths>Line 43: <dnncrm:ClientResourcePath Name="SkinPath" Path="<%# this.CurrentSkinPath %>" />Source File: [EDIT]\www\Default.aspx Line: 41Stack Trace:[SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, ersion=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +61 System.Environment.get_MachineName() +66 ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.GetXmlMapPath() +31 ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.Initialize(HttpContextBase http) +114 ClientDependency.Core.Config.ClientDependencySettings.LoadDefaultFileMapConfig(ClientDependencySection section, HttpContextBase http) +124 ClientDependency.Core.Config.ClientDependencySettings.LoadProviders(ClientDependencySection section, HttpContextBase http) +415 ClientDependency.Core.Config.ClientDependencySettings..ctor() +94 ClientDependency.Core.Config.ClientDependencySettings.get_Instance() +78 ClientDependency.Core.Controls.ClientDependencyLoader..ctor() +97 DotNetNuke.Web.Client.ClientResourceManagement.ClientResourceLoader..ctor() +5 ASP.default_aspx.__BuildControlClientResourceLoader() in [EDIT]\www\Default.aspx:41 ASP.default_aspx.__BuildControlBody() in [EDIT]\www\Default.aspx:30 ASP.default_aspx.__BuildControlTree(default_aspx __ctrl) in [EDIT]\www\Default.aspx:1 ASP.default_aspx.FrameworkInitialize() in [EDIT]\www\Default.aspx.cs:912308 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +56 System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) in App_Web_ird_wpts.2.cs:0 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420
 
New Post
11/23/2011 11:44 PM
 

I was upgrading from version 05.06.02 to version 06.01.01. Tested everything local and worked fine, but when I wanted to upgrade on my hosting environment, I got the same problem.

I worked around the UpgradeWizard by surfing directly to Install/Install.aspx?mode=upgrade
Updated smoothly, but got the error when returning to my portal. Somebody who can help? Thx

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.EnvironmentPermission, mscorlib, Version=4.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
t
he exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] 
System.Security.CodeAccessSecurityEngine.Check(Object demand,
StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap,
StackCrawlMark& stackMark) +31
System.Security.CodeAccessPermission.Demand() +46
System.Environment.get_MachineName() +66
ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.GetXmlMapPath() +34
ClientDependency.Core.CompositeFiles.Providers.XmlFileMapper.Initialize(HttpContextBase http) +117
ClientDependency.Core.Config.ClientDependencySettings.LoadDefaultFileMapConfig(ClientDependencySection section, HttpContextBase http) +130
ClientDependency.Core.Config.ClientDependencySettings.LoadProviders(ClientDependencySection section, HttpContextBase http) +495
ClientDependency.Core.Config.ClientDependencySettings..ctor() +135
ClientDependency.Core.Config.ClientDependencySettings.get_Instance() +78
ClientDependency.Core.Module.ClientDependencyModule.LoadFilterTypes() +37
ClientDependency.Core.Module.ClientDependencyModule.System.Web.IHttpModule.Init(HttpApplication app) +79
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +517
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253
 
New Post
11/24/2011 1:23 AM
 

Correction: I got this error when upgrading to 6.1.1.

Other DNN sites (version 6.0.1 or lower) on the same hosting environment don't have this error. When I check the Permissions in the Host Settings of these working sites, I see: WebPermissions.

Any suggestions would be extremely appreciated.

 
New Post
11/24/2011 5:19 AM
 

Ok, seems like since version 6.1.x DNN is using DotNetNuke.Web.Client.ClientResourceManagement.

Problem occurs since this version in Medium Trust environments.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...6.0.0 to 6.1.0 EnvironmentPermission Error6.0.0 to 6.1.0 EnvironmentPermission Error


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