Re: Authorization Problem

From: Hernan de Lahitte (hernan_at_lagash.com)
Date: 01/05/04


Date: Mon, 5 Jan 2004 11:04:44 -0300

Hi,

You should need full control ACL for the ASPNET account or whaever account
you use in C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary
ASP.NET folder. For more details see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT01.asp?frame=true

Regards,
Hernan.

-- 
Eng. Hernan de Lahitte - MSDE
Lagash Systems S.A. - Buenos Aires, Argentina
http://www.lagash.com
"Sunny" <sunil@nospam.net> wrote in message
news:exZldm30DHA.2972@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> I have an ASP.NET application which worked fine on the live site. We
> performed a recent upgrade and have a strange problem. When I access the
> home page (default.aspx) it pops up an authentication dialog box. I click
ok
> or cancel 3 times and get the following error:
>
> ====
> Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary
> ASP.NET Files\root\ec99ce5e\f59722f\xifdaakl.0.vb" is denied.
> Description: An unhandled exception occurred during compilation using the
> CodeDomProvider 'Microsoft.VisualBasic.VBCodeProvider'. Please review the
> stack trace for more information about the error and where it originated
in
> the code.
>
> Exception Details: System.UnauthorizedAccessException: Access to the path
> "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET
> Files\root\ec99ce5e\f59722f\xifdaakl.0.vb" is denied.
>
> The ASP.NET process is not authorized to access the requested resource.
For
> security reasons the default ASP.NET process identity is
> '{machinename}\ASPNET', which has limited privileges. Consider granting
> access rights to the resource to the ASP.NET process identity.
>
> To grant ASP.NET write access to a file, right-click the file in Explorer,
> choose "Properties" and select the Security tab. Click "Add" to add the
> "{machinename}\ASPNET" user. Highlight the ASP.NET account, and check the
> Write box in the Allow column.
>
> 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:
>
> [UnauthorizedAccessException: Access to the path
> "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\Temporary ASP.NET
> Files\root\ec99ce5e\f59722f\xifdaakl.0.vb" is denied.]
>    System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
>    System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access,
> FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath,
Boolean
> bFromProxy) +859
>    System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access,
> FileShare share) +45
>    System.CodeDom.Compiler.CodeCompiler.FromDomBatch(CompilerParameters
> options, CodeCompileUnit[] ea) +272
>    System.CodeDom.Compiler.CodeCompiler.FromDom(CompilerParameters
options,
> CodeCompileUnit e) +90
>
>
System.CodeDom.Compiler.CodeCompiler.System.CodeDom.Compiler.ICodeCompiler.C
> ompileAssemblyFromDom(CompilerParameters options, CodeCompileUnit e) +37
>    System.Web.Compilation.BaseCompiler.GetCompiledType() +250
>
>
>
> --------------------------------------------------------------------------
--
> ----
> Version Information: Microsoft .NET Framework Version:1.0.3705.288;
ASP.NET
> Version:1.0.3705.288
> ====
>
>
> Everything seems to work fine when I browse into mysite/admin (I dont get
> any authentication popup over here).
> The hosting guys say everything is fine with the security of the ASPNET
> user. What could be the problem?
>
>
> Thanks,
> Sunny.
>
>
>


Relevant Pages

  • Re: Sql Reporting Serviced - > ASP.NET ACCESS DENIED!
    ... The account you are logging in to when on the server doesn't have the ... do you have <Impersonate> set to True? ... > Exception Details: System.UnauthorizedAccessException: Access to the path ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Security Exception Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
    ... by default the asp.net system account does not have network access, ... I am struggling with a website on a W2K3 server which has the actual ... Exception Details: System.Security.SecurityException: Request for the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: No rights to report server bin folder
    ... Run filemon from www.sysinternals.com and determine which account is being ... "Bob" wrote in message ... :>: current web request. ... :>: Exception Details: System.UnauthorizedAccessException: Access to the ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP.NET 2.0 with ADAM - problem
    ... > under which account does your web app run - does this account have access ... An unhandled exception has occurred. ... bindingFlags, Binder binder, Object target, ObjectprovidedArgs, ... at _Default.Page_Load(Object sender, EventArgs e) ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Problems accessing the ASPNETDB.MDF file
    ... I would guess it was running under NetworkService or aspnet account, ... Nicole Calinoiu wrote: ... development machine, but after deployment I can't log in anymore. ... the exception can be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.security)