Share via


Location of Temporary ASP.net Files

Question

Wednesday, March 18, 2009 1:03 PM | 1 vote

Why is Visual Studio using my temp directory to store compiled Temp ASP.NET files?
**
c:\Users\myuserid]\AppData\Local\Temp\Temporary ASP.NET Files

**Shouldn't it be using:

**C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

**VSTS 2008 SP1
Vista Enterprise 64bit SP1

All replies (6)

Friday, March 27, 2009 2:17 AM âś…Answered | 2 votes

Hi Eric1829,

One possibility is we have enhanced the security in Vista, normally the applications should not be running under administrator privilege, for your issue, the visual studio cannot access %SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files without administrator privilege by default.
No matter where the compiled files stored, the function of the web application will not be affected.

Hope the information can be helpful.

ThanksPlease remember to mark the replies as answers if they help and unmark them if they provide no help.


Friday, March 20, 2009 9:04 AM

Hi Eric1829,

It is by design.

By default, when you compile a Web application the compiled code is placed in the Temporary ASP.NET Files folder. This folder is a subdirectory of the location where you installed the .NET framework. Typically, the location is the following:
%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files
This feature can be applied in the earlier OS like XP. From Vista, the path of the temporary files has been changed to the following:
**c:\Users\myuserid]\AppData\Local\Temp\Temporary ASP.NET Files.
**
ThanksPlease remember to mark the replies as answers if they help and unmark them if they provide no help.


Friday, March 20, 2009 12:36 PM

Thanks for the reponse YiChun...

I have at least one Dev that has the same machine config (built from the same OS image & software deployment script) where the active location of Temp Asp.net files is still the %SystemRoot%\Microsoft.net\framework\versionNumber\Temporary ASP.NET Files.  The dev does not even have the a folder for temp asp.net files at **c:\Users\myuserid]\AppData\Local\Temp\Temporary ASP.NET Files.
**
Any ideas??

Thanks...


Monday, March 23, 2009 11:15 AM

Hi Eric1829,

In the later OS like Vista, the path c:\Users\myuserid]\AppData\Local\Temp\Temporary ASP.NET Files can be created when the project is compiled on the Server. If the project is compiled on the Client, the location is %SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files.

Thanks


Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Thursday, March 26, 2009 8:39 PM

YiChun,

I'm not sure what you mean when you say the project is compiled on the Client or on the Server.  Are you by chance referring to the difference between local build vs on a build server?

In our case, we have two identical Vista 64 machines being used as ASP.net development machines via Visual Studio Team System 2008.  One of us has Temporary ASP.net files at c:\Users\myuserid]\AppData\Local\Temp\Temporary ASP.NET Files and the other has them at %SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files

Thanks.


Friday, January 3, 2014 8:11 AM

You Will Get the "Temporary ASP.net Files" Folder From %temp%
If you are using Window 7 or earlies go through Search, if there is Windows XP then Go through RUN.

and Type %temp% then Enter .... :)

Folder Exist In User -> App Data -> Local -> Temp