S
Sunny
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.
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.