I’m trying to publish my website to a local folder. I have two websites in my solution, one of them publishes with no problems, but the other fails and generates this in the output window:
------ Build started: Project: SSODAL, Configuration: Debug Any CPU ------
SSODAL -> D:\SourceCode\Infrastructure\Single Sign On\1.1\Source\SSODAL\bin\Debug\SSODAL.dll
------ Build started: Project: http://localhost:8000/, Configuration: Debug .NET ------
Pre-compiling Web Site
: Publication (web): Access to the path 'C:\Users\bgolden\AppData\Local\Temp\~58f9\' is denied.
Pre-compilation Complete
------ Skipped Publish: Project http://localhost:8000/, Configuration: Debug .NET ------
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========
========== Publish: 0 succeeded, 0 failed, 1 skipped ==========
I’m using Visual Studio 2008. There are few examples of this error on the internet, the closest match suggests it’s something to do with impersonation, but I’m not using impersonation here. Also, I’m running Visual Studio as Administrator.
Has anyone come across this before?
Thanks,
Ben
I fixed this problem myself (or rather worked around it) by moving my temp folder to a different path out side of the user area (such as C:\TMP).
I did this by changing the two user environment variables TMP and TEMP:
(on windows 7)