Monday, September 15, 2008

Error in Publishing ASP.NET

If you get an error like "Access to the path 'C:\Documents and Settings\username\Local Settings\Temp\~6d4\bin\App_WebReferences.compiled' is denied." when you use the VS2005 | Build menu | Publish Web Site and your site impersonates a user this may help.

Open up Windows Explorer and navigate to the Temp directory specified in the path. In this example, go to "
C:\Documents and Settings\usb00528\Local Settings\Temp". Now right-click on the Temp directory and go to the security tab. Add the user that you are impersonating (usually specified in you web.config) and give the user Read and Write permissions. Now re-try the Publish Web Site menu item and it should publish successfully now. Yeah!

 

 

Regards,

 

Savitur Badhwar

(Computer Systems & Network Administrator)

Custom Control Sensors, Inc.

21111 Plummer Street | Chatsworth, CA 91311

Ph 818.341.4610 x2205 | Fax 818.709.0426

Chatsworth | Burbank | Mexico | http://www.ccsdualsnap.com

 

"Do all the good you can, by all the means you can, in all the ways you can, in all the places you can, to all the people you can, as long as ever you can" ~ John Wesley

 

CAUTION - The information contained in this communication is for the exclusive use of the addressee and may contain confidential privileged and non-disclosable information. If the recipient of this communication is not the addressee, or a person responsible for delivering the communication to the addressee, such recipient is prohibited from using this communication in any way. If you have received this communication by mistake, please notify us immediately. Any information related in the foregoing should be independently confirmed with the sender before reliance thereon including that represented to be from Custom Control Sensors, Inc.