Last post Oct 17, 2013 09:26 AM by gmcollins
Oct 15, 2013 04:13 PM|gmcollins|LINK
I am trying to set the attribute "tempDirectory" on a per website basis. When I run the following command on website MYSITE_1.0 , I can see the "compilation" section in web config is updated with the new attribute "tempDirectory" and the file path.
CMD = appcmd set config "MYSITE_1.0" -section:compilation -tempDirectory:"<path>\TemporaryFiles\MYSITE_1.0" /COMMIT:MACHINE/WEBROOT/APPHOST/MYSITE_1.0
However, the temp files are not written to the directory above, even after a reboot of the MYSITE_1.0 website. Any thoughts?
Oct 17, 2013 12:37 AM|Starain chen - MSFT|LINK
Thanks for your post!
I can see the "compilation" section in web config is updated with the new attribute "tempDirectory" and the file path.
Whether the value of tempDirectory is \TemporaryFiles\MYSITE_1.0
in the web.config file?
Based on my test, the value of tempDirectory should be a absolute path. (We will get this error
The 'tempDirectory' attribute must be set to a valid absolute path if we set the error path, such as
So, if the value of tempDirectory is \TemporaryFiles\MYSITE_1.0, please check whether it's in
C:\\TemporaryFiles\MYSITE_1.0. (C dise is my System disc)
On the other hand, please check whether it's still in the default path. (%FrameworkInstallLocation%\ Temporary ASP.NET)
Oct 17, 2013 09:26 AM|gmcollins|LINK
Thansk for the response! I stopped both the website and the associated Application Pool which seemed to help! Problem solved!