IIS不会列出与启动网址匹配的网站 [英] IIS does not list a website that matches the launch url

查看:125
本文介绍了IIS不会列出与启动网址匹配的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要调试我在IIS7(Vista Home)中开发(ASP.NET MVC3,Razor,.NET 4,VS2010 SP1
(作为管理员))的网站,并得到错误:



IIS不列出与启动网址匹配的网站。



要测试是否必须使用设置的应用程序,我从头开始创建一个空的新的ASP.NET MVC3网站,设置为IIS,创建虚拟目录,推出与F5和我工作正常!



我再次确实创建了一个具有完全相同设置的第二个网站项目(仅供参考),并且也按预期启动。



这导致我认为我有一些配置问题!?但是什么?在过去我使用IIS非常罕见,所以我的知识在某种程度上受到限制。



任何提示?

解决方案

我讨厌回答我的问题:在我的问题中,我表示我在管理员帐户下运行VS。 这不是真的



所以解决方案(对我来说)是以管理员身份运行VS2010(开始 - >在Vista菜单中点击 - >以管理员身份运行)...如此简单。



作为副作用:VS2010让我也创建虚拟目录没有任何问题(之前我有错误消息说我必须手动调整这些)


I need to debug the website i 'm developing (ASP.NET MVC3, Razor, .NET 4, VS2010 SP1 (as administrator)) in IIS7 (Vista Home) and getting the error:

IIS does not list a website that matches the launch url.

To test if it has to do something with the settings of the app, i did create from scratch an empty new ASP.NET MVC3 website, set for IIS, created virtual directory, launched with F5 and i worked fine!

I again did create a second website project with the exact same settings (just to be sure) and this also launched as expected.

This leads my to think that i have some configuration problem!? But what? In the past i used IIS very rare, so my knowledge is somehow limited in this direction.

Any hints?

解决方案

I hate answering my questions: in my question i stated that i was running VS under the administrator account. This was not true!!!

So the solution (for me) was to run VS2010 as administrator (Start->In Vista menu right click-> Run as administrator)...so simple.

As a side effect: VS2010 let me also create Virtual Directories without any problems (prior to that i got error messages stating that i have to manually adjust these)

这篇关于IIS不会列出与启动网址匹配的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆