使用Windows 7,我已安装了IIS Express 7.5,但我无法找到系统上的
谢谢。
wwwroot
目录!我的C盘中也没有"inetpub
"文件夹。
请问我该把像hello.aspx这样的文件放在哪里才能运行?谢谢。
wwwroot
目录!我的C盘中也没有"inetpub
"文件夹。
请问我该把像hello.aspx这样的文件放在哪里才能运行?通过第一手经验和此其他SO答案,通常IISExpress会在以下目录下保存其自己的数据文件:C:\Users\<username>\Documents\IISExpress
。
在那里,您可以找到每个网站日志文件(Logs\
和TraceLogFiles\
)的默认目录,并且尤其是在文件config\applicationhost.config
中找到所有网站配置。其中有一个<sites>
部分,其中包含为每个网站创建的<site>
节点。
对于每个网站,它的<virtualDirectory>
节点在physicalPath
属性中指定实际根位置:
<site name="YourWebSiteName" id="12345">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="D:\Physical\path\to\your\website\root"/>
</application>
...
</site>
<solutionDir>\.vs\config\applicationhost.config
。 - Leo BartkusC:\Users\你的用户名\Documents\My Web Sites\web-Site1
一个简单的测试方法是在你的网站根目录中输入一个测试文件,例如http://localhost:1714/test.txt
通常它位于您的主目录下。类似于c:\ Users \ <yourname> \ Documents \ IISExpress
你会看到一个路径,类似于下面这样
C:\Users\YOURUSERSNAME\AppData\Local\Temp\Temporary ASP.NET Files