The ~\paths work relative to the virtual directory when running for the web.config file, and relative to the EXE when running inside of Web Connection (ie. in YourApp.ini). So in your code the EXE would have to have to live in <virtual folder path>\webconnection.deploy and in the YourApp.ini it would be ~\temp\wc\. In your web.config it has to be ~\webconnection.deploy\temp\wc\. Note that you should specify the trailing backslash.
The easiest way to see this for the module is on the Web COnnection Module Status page which will show you the expanded path for the temp folder and exe file.
+++ Rick ---
Hi Rick,
I'm just trying to understand how to setup for xcopy in iis7 on windows7. I've listed below the: virtual directory path; and the issues I'm having with the Relative Pathing using ~\ with hard pathing being the only way I can get the test application to run on my windows7 machine. Thanks for any comments you might have...
Greg
xcopy file paths: C:\web\UserNamed\htdocs\webconnection.deploy\temp\wc
1. created virtual directory for test website in : C:\web\UserNamed\htdocs ~ **works!
2. win7test.ini ( located in C:\web\UserNamed\htdocs\webconnection.deploy\ )
TempFilePath="C:\web\UserNamed\htdocs\webconnection.deploy\temp\wc\" **works!
TempFilePath="~\temp\wc\" **fails!
3. web.config (located in C:\web\UserNamed\htdocs) settings:
<add key="TempPath" value="C:\web\UserNamed\htdocs\webconnection.deploy\temp\wc\" /> **works!
<add key="TempPath" value="~\webconnection.deploy\temp\wc\" /> **fails!
<add key="ExeFile" value="C:\web\UserNamed\htdocs\webconnection.deploy\win7test.exe" /> **works!
<add key="ExeFile" value="~\WebConnection.deploy\win7test.exe" /> **fails!
Rick Strahl West Wind Technologies Where do you want to surf today? | Reader Version: 5.0 |
from Maui, Hawaii