|
|
|
|
Joined: 3/9/2010
Posts: 2
|
|
|
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
|
|
|
|
| |
|
|
|
Joined: 3/9/2010
Posts: 2
|
|
|
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
|
|
|
|
| |
|
|
|
www.jumik.be Joined: 10/29/2007
Posts: 11
|
|
|
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
|
|
|
|
|
| |
|
|
|
www.jumik.be Joined: 10/29/2007
Posts: 11
|
|
|
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.
|
|
|
|
| |
|
|
|
www.jumik.be Joined: 10/29/2007
Posts: 11
|
|
|
Ok, seems like since version 6.1.x DNN is using DotNetNuke.Web.Client.ClientResourceManagement.
Problem occurs since this version in Medium Trust environments.
|
|
|
|
| |