473,320 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

System.UnauthorizedAccessException: Access to the path ...Temporary ASP.NET Files.. is denied.

Hi all,

I have developed an application in VS .NET 2003 (framework 1.1) on a XP
platform. It is working fine in that PC.

Now, I setup new PC with same configuration for another develper.
Whenever I execute the application it gives, Unauthorize Exception
error and it's not execting the application property.

The Error message is as follows,
================================================== =============

Server Error in '/myApp' Application.
--------------------------------------------------------------------------------

Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\myApp\dc572ed2\cf08d790\hash.web" is denied.
Description: An unhandled exception occurred during the execution of
the current web request. 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:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\myApp\dc572ed2\cf08d790\hash.web" is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically IUSR_MACHINENAME) or the authenticated request user.

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 appropriate user or group. Highlight the ASP.NET account,
and check the boxes for the desired access.
================================================== =============

During the investigation I found that there is no folder called myApp
created under the "Temporary ASP .NET Files". I have set full privilege
to the ASPNET user account and to the Developer.

Nothing has been changed in the Web.Config also.

How can I solve the problem? TIA.

Feb 24 '06 #1
4 28920
Hi Anbu,
Go to the C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
Files
And give the folder "ASPNET acct" at leasr read and right permissions.
Since you are using WIN XP you might not see the SECURITY OPTIONS if you
right clcik
If thats the case just go to TOOLS in your Explorer >Folder Options > View
and uncheck "Use simple file sharing(recommended)"
Hope that helps
Patrick
"Anbu" <t_**************@yahoo.co.in> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Hi all,

I have developed an application in VS .NET 2003 (framework 1.1) on a XP
platform. It is working fine in that PC.

Now, I setup new PC with same configuration for another develper.
Whenever I execute the application it gives, Unauthorize Exception
error and it's not execting the application property.

The Error message is as follows,
================================================== =============

Server Error in '/myApp' Application.
--------------------------------------------------------------------------------

Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\myApp\dc572ed2\cf08d790\hash.web" is denied.
Description: An unhandled exception occurred during the execution of
the current web request. 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:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temp orary ASP.NET
Files\myApp\dc572ed2\cf08d790\hash.web" is denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically IUSR_MACHINENAME) or the authenticated request user.

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 appropriate user or group. Highlight the ASP.NET account,
and check the boxes for the desired access.
================================================== =============

During the investigation I found that there is no folder called myApp
created under the "Temporary ASP .NET Files". I have set full privilege
to the ASPNET user account and to the Developer.

Nothing has been changed in the Web.Config also.

How can I solve the problem? TIA.

Feb 25 '06 #2
Patrick,

Thanks for your reply. I was not working properly. I'm replacing the
fresh image on the system, to try from scratch.

Feb 27 '06 #3
All the privileges given to the user ASPNET and the developer. No idea
why it's not working...

Even I tried to replace the system with the new image as in the
previous post. I desperately require some help

Feb 27 '06 #4
Since I used impersonate=true, i had to set access privilege to the
impersonated user. It's working fine now.

Mar 9 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bill Nguyen | last post by:
I got this error emssage trying to run an ASP.NET application on my Win2003/IIS6.0 server: Exception Details: System.UnauthorizedAccessException: Access to the path...
2
by: genc_ymeri | last post by:
Hi, I'm getting constatly an error and I'm not sure where it is coming from. From the message it seems like ASP.Net build in account does not have all the rights but I manually added all possible...
0
by: Efi | last post by:
Hi, We have a simple 3 tier application which its core application is VC++ 6.0 ATL COM running as a server application in the COM+. An asp pipe is in charge of handling the requests and passes it...
7
by: Peter Afonin | last post by:
Hello, I'm using this code to access a network share from an asp.net page: Dim dir As DirectoryInfo = New DirectoryInfo("\\10.0.0.150\FormLib\") Dim files() As FileInfo = dir.GetFiles("*.eps")...
0
by: masago | last post by:
Hi....how are you ?? they can help me to solve this problem ?? Access to the path = "c:\windows\microsoft.net\framework\v1.1.4322\Temporary ASP.NET = Files\reports\06639073\bbab30a7" is...
0
by: camp | last post by:
Hi, The question bellow was posted on .NET 247 with no resolve (issue seems to be extremly difficult) I am having exactly the same problem, so I copied the question and pasted it bellow for...
5
by: Max | last post by:
hi i have file browser control to select any file and a button to upload file on my web page now when i select any file. now on click of upload button i have check that file exist or no if...
2
by: job | last post by:
In a sharepoint setup using smartpart to load our user controls using enterprise blocks (data) we are getting some strange errors (logged to the event log). We dont get the error all the time. When...
1
by: nygiantswin2005 | last post by:
Hi I am trying to resolve this bug that I have in this application. The code is below. It will generate this Exception System.UnauthorizedAccessException: Access to the path is denied. at...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.