Access denied while trying to load an ASP.NET page

Analyzes .NET assemblies for types of exceptions

Access denied while trying to load an ASP.NET page

Postby rdezell » Wed Mar 31, 2010 2:14 pm

I'm trying to load an ASP.NET page into Exception Hunter 2.1 and get the following error:

An exception was encountered while trying to load the assembly C:\\ProjectsTFS2008\\Organizational Management (Admin Codes)\\V1.0\\OrgManager\\OrgManagerWeb\\Default.aspx.
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Exception )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(Boolean )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly.a(String )
at RedGate.ExceptionHunter.Logic.CecilSPI.DotNetAssembly..ctor(IExceptionHunterSession session, String fullPathname)
at y.GetPE(String fullPathname)
at v.AddSessionAssembliesAndReferences(IEnumerable`1 filenames)
at RedGate.ExceptionHunter.UI.MainForm.<>c__DisplayClass21.<AddAssemblies>b__1d()

Caused by:

Compilation of ASP.NET pages did not succeed: Utility to precompile an ASP.NET applicationCopyright (C) Microsoft Corporation. All rights reserved.error ASPRUNTIME: Access to the path 'C:\\Documents and Settings\\rde1\\Local Settings\\Temp\\Red Gate\\b8edfecc-14b1-4e9b-9e93-f59a8cba1f5e\\bin\\App_global.asax.compiled' is denied.
at G.FullNameForAssembly(String filename)
at cB.a(String , Boolean )
at bz.LoadAssemblyFromFile(String filename)
at bs.e.PerformTask()
at bs.a()

I have Full Control access to the folder given in the second part of the message. Why would I get 'access denied'?

Posts: 1
Joined: Wed Mar 31, 2010 2:07 pm

Postby slaphead99 » Wed Jun 09, 2010 3:52 pm

What happens if you manually run the aspnet compiler? Frex:

aspnet_compiler -v /MyVirtualDir -p "c:\\inetpub\\wwwroot\\MyApp" -d -c "c:\\MyExceptionHunterAssemblies"

Posts: 92
Joined: Wed Mar 10, 2010 1:27 pm

Return to Exception Hunter 2

Who is online

Users browsing this forum: No registered users and 0 guests