Sha*_*ean 8 asp.net dns iis-7 localhost visual-studio
所以我正在尝试设置本地测试域,以便我可以使用本文创建一个子域.我的问题是我可以在IIS中设置好网站并浏览到那里的文件.但在尝试设置visual studio以使用该网站时,例如.在Project Url中:http://localtest.me
当我单击Create VirtualDriectory时,我收到以下错误:Unable to create virtual directory. The URL 'http://localtest.me' is already mapped to a different folder 'C:\Websites\site'
.
如果我从IIS中删除该站点并允许visual studio尝试创建它,我会收到以下错误:Unable to create the virtual directory. Could not find the server 'http://localtest.me' on the local machine. Creating a virtual directory is only supported on the local IIS server
.但网站localtest.me下载到127.0.0.1,这是我的本地机器吗?
那么如何在我已经在IIS中创建网站的场景中设置调试?
我总是选中“使用自定义 Web 服务器”并将其指向我的本地 url,而不是在 Visual Studio 中使用“使用本地 IIS Web 服务器”设置。对于您的示例 localtest.me,上面的起始 url 设置为 localtest.me
如果仍然遇到问题,您始终可以进入调试模式,但执行附加到进程而不是 F5 并选择 IIS 进程。
归档时间: |
|
查看次数: |
7508 次 |
最近记录: |