myLittleTools Community Forum

Welcome Guest Search | Active Topics | Members | Log In | Register

Security Exception Options · View
Caspar
Posted: Monday, August 23, 2010 9:28:13 AM
Rank: Newbie
Groups: Member

Joined: 4/23/2010
Posts: 4
Points: 12
Location: Netherlands
I followed the guide and also the following two topics:
http://www.mylittleadmin.com/yafnet/Default.aspx?g=posts&t=87
http://www.mylittleadmin.com/yafnet/Default.aspx?g=posts&t=444

But i still get the following error:

Quote:
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.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

The logbook gives the following error:
Quote:
Event code: 3006
Event message: A parser error has occurred.
Event time: 8/23/2010 10:15:05 AM
Event time (UTC): 8/23/2010 8:15:05 AM
Event ID: ce5f4e7c12924575994f370822905a43
Event sequence: 4
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/3/ROOT/MSSQL-2-129270249042500000
Trust level: Full
Application Virtual Path: /MSSQL
Application Path: C:\inetpub\COLO-Websites\localuser\DB\MSSQL\
Machine name: WEB-01

Process information:
Process ID: 3240
Process name: w3wp.exe
Account name: IIS APPPOOL\apppooluser

Exception information:
Exception type: HttpParseException
Exception message: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Request information:
Request URL: http://db-01.colo.ppros.nl/mssql/default.aspx
Request path: /mssql/default.aspx
User host address: 212.121.110.210
User:
Is authenticated: False
Authentication Type:
Thread account name: WEB-01\webuser

Thread information:
Thread ID: 5
Thread account name: WEB-01\webuser
Is impersonating: False
Stack trace: at System.Web.UI.TemplateParser.ProcessException(Exception ex)
at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
at System.Web.UI.TemplateParser.ParseReader(StreamReader reader, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
at System.Web.UI.TemplateParser.ParseInternal()
at System.Web.UI.TemplateParser.Parse()
at System.Web.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath)
at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Custom event details:
elian
Posted: Monday, August 23, 2010 10:56:59 AM

Rank: Administration
Groups: Administration

Joined: 9/11/2006
Posts: 605
Points: 649
Location: Enghien Les Bains, France
After several tests during a live chat conversation, it appeared that changing the app pool setting to "Classic .NET" fixed the prob.

To do this you should right click on you application in IIS7 choose Advanced Settings and set the ApplicationTool option to Classic .NET AppPool.

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme created by myLittleTools
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.