You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied" while trying to debug or browse your ASP.NET Applications.

This may occur if the ASPNET account doesnt have sufficient priveleges on the 'C:\WINDOWS\TEMP' folder, in windows versions prior to Windows Server 2003.

In Windows Server 2003, it is the Network Service account that needs to have the necessary rights for that folder.

Even if you assign rights for EVERYONE it wont work since these accounts do not form a part of the EVERYONE account.

The error can be resolved by explicitly assigning MODIFY rights to ASPNET User account (prior to Windows Server 2003) and NETWORK SERVICE account in case of Windows Server 2003.

That should solve the problem.

Cheers and Happy Programming !!!

Print | posted on Friday, May 13, 2005 7:30 AM

Comments on this post

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
I am running Windows XP and that did not work. I right-clicked in Properties, Sharing and Security... , and found no way to specify users. What should I do?
Left by Dan Parrell on Oct 07, 2005 1:06 AM

# I still receive this error "BC30138"

Requesting Gravatar...
I did what you told, but didn't solve my problem, I use windows 2003 server.
I still got this error, and I think this caused by my norton antivirus still tied this directory up, but I don't want to disable this antivirus, cause if I disable it then all the viruses can infect my files.
So, what should I do.
Thank you for your reply.
Left by Dedy on Dec 19, 2005 1:25 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Hey man, we got it fixed! I've written up some instructions and took a screen shot that should be helpful.
Left by Wizard_Yo on Dec 28, 2005 1:43 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Thanks man!! it really worked ... i have presentation after few mins!!! and suddenly i got this error!
Wicked!
Regards;
Aiman Tamimi
Left by Aiman Tamimi on Jun 18, 2006 12:42 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Thanks Guys !!! You saved me , this really works :-)

Regards
Nick
Left by Nick on Jun 23, 2006 8:00 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Another satisfied customer. Can you take penalties too?
Left by Peter Corr on Jul 04, 2006 12:23 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
I have been searching for about 2 hours for a solution to this problem and after reading various solutions (none of which worked) i found a solution.

1. Go to control panel and open system properties
2. Click the advanced tab and then environment variables
3. In the system variables text area scroll find the temp and tmp variables
4. Create a new folder called "temp" anywhere you wish on your hard drive
5. For the temp and tmp variables change the paths to the path of this newly created folder
6. Close visual studio and any other development resources you are running
7. Go to start then run and type iisreset

You should be right and alot happier :)
Left by Aaron on May 07, 2007 2:00 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
it works for me :D, thanks!
Left by alf tanner on Nov 26, 2008 12:48 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Hey Guys Great Work there!!!!

You actually made my day.

My problem actually arose from compatibilty problems when running vs 2003 on Vista home premium.

Thanks a lot n greeting from Ghana Geeks (os should I say Geeks in Ghana!!!
Left by ghanadevil on Jan 02, 2009 4:28 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Hi.. Thanks very much.

My prob: sovled ready..


Great..
Left by Soe on Feb 03, 2009 7:17 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Hello
I have same problem and when i change it to domain user then I am trying to get started with Reporting Services, and I am trying to configure the report server on my local server 2003 and sql server 2008.

ReportServicesConfigUI.WMIProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 800708AC
at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.SetWebServiceIdentity(String applicationPool)

how to fix this one?
Left by Awan on Mar 03, 2009 6:06 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
find solution need to change .config file as
1:Locate the folder that contains the Rsreportserver.config file. By default, this file is in the following folder:
Drive:\Program Files\Microsoft SQL Server\MSSQL.x\Reporting Services\ReportServer
Notes
Drive is a placeholder for the hard disk of your computer.
MSSQL.x is a placeholder for the corresponding instance ID for the system. To determine the instance ID for the system, follow these steps:
Connect to the instance of the SQL Server Reporting Services service by using the Reporting Services Configuration tool.
Click to open the Report Server Status page.
On the Report Server Status page, note the instance ID information.
In Notepad, open the Rsreportserver.config file.
Locate the line that contains the <WebServiceAccount></WebServiceAccount> tag.
Add the IWAM_ComputerName account to the WebServiceAccount setting. The following example illustrates the syntax that you must use:
<WebServiceAccount>domain_Name\user</WebServiceAccount>
Save and then close the RSreportserver.config file.
Restart the SQL Server Reporting Services service.
Left by Awan on Mar 03, 2009 6:31 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
access is denied c:\windows\temp\nos 00892 in vista
Left by DJ on Mar 20, 2009 11:22 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
you actually need to give rights to the temp folder in your windows directory...

there is a special user IIS_IUSRS you need to grant write access to this user for temp folder.

Right click temp folder and click Properties -> Security-> Groups -> IIS_IUSRS -> Assign write access.

Thaat's it. you will be able to do whatever you want now.
Left by gaurav on Apr 09, 2009 2:22 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
My problem actually arose from compatibilty problems when running vs 2003 on Vista home premium.
Left by mario oyunları on Sep 21, 2009 10:49 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Cool,

thanks for this quick and easy to understand article, i finally have a resoultion

Keep up the good work
Left by software development company on Oct 19, 2009 9:33 PM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
plz help me !
my computer can't set up or remove any programe & idon't know what is the wrong with it
if anybody know > plz help me
Left by sara on Dec 01, 2009 2:07 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
What a typical windows annoyance...
Thanks for sharing the workaround.
Left by Bradley on Apr 15, 2010 9:05 AM

# re: You may receive the error "BC30138: Unable to create temp file in path 'C:\Windows\TEMP\:' Access is denied"

Requesting Gravatar...
Thanks so much. I'm wondering if a sudden change in NETWORK SERVICE permission to TEMP folder could be user related. I didn't touch my .NET website and the problem just suddenly occurred. Is it possible this is user tampering?
Left by Frank Cao on Jun 24, 2010 6:27 AM

Your comment:

 (will show your gravatar)