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 !!!

posted @ Friday, May 13, 2005 7:30 AM

Print

Comments on this entry:

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

Left by Dan Parrell at 10/7/2005 1:06 AM
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?

# I still receive this error "BC30138"

Left by Dedy at 12/19/2005 1:25 AM
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.

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

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

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

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

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

Left by Nick at 6/23/2006 8:00 PM
Gravatar
Thanks Guys !!! You saved me , this really works :-)

Regards
Nick

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

Left by Peter Corr at 7/4/2006 12:23 AM
Gravatar
Another satisfied customer. Can you take penalties too?

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

Left by Aaron at 5/7/2007 2:00 AM
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 :)

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

Left by alf tanner at 11/26/2008 12:48 PM
Gravatar
it works for me :D, thanks!

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

Left by ghanadevil at 1/2/2009 4:28 PM
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!!!

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

Left by Soe at 2/3/2009 7:17 AM
Gravatar
Hi.. Thanks very much.

My prob: sovled ready..


Great..

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

Left by Awan at 3/3/2009 6:06 PM
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?

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

Left by Awan at 3/3/2009 6:31 PM
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.

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

Left by DJ at 3/20/2009 11:22 AM
Gravatar
access is denied c:\windows\temp\nos 00892 in vista

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

Left by gaurav at 4/9/2009 2:22 AM
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.

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

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

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

Left by software development company at 10/19/2009 9:33 PM
Gravatar
Cool,

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

Keep up the good work

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345