In trying to reconnect and reconfigure an existing project on a new machine, I find here (The Web Application Project [...] is configured to use IIS. The Web server [...] could not be found. ), based on the err msg I got on opening the project, that I need to go to IIS Manager (I performed the tasks prior to that in Russ C's answer, installing IIS 7.5 Express and rebooting). However, Russ goes on to write, "Next, go to your IIS Manager..." and that I haven't been able to do/find.
在尝试重新连接和重新配置新机器上的现有项目时,我在这里找到(Web应用程序项目[……]配置为使用IIS。Web服务器[…没有找到。根据我打开项目时收到的err msg,我需要转到IIS Manager(在Russ C的答案中,我在此之前执行了任务,安装了IIS 7.5 Express和重新引导)。然而,Russ继续写道:“接下来,到你的IIS经理那里去……”而我还没能做/找到。
So I found this: http://technet.microsoft.com/en-us/library/cc770472(v=WS.10).aspx, where these instructions are given:
因此我找到了http://technet.microsoft.com/en-us/library/cc770472(v=WS.10).aspx,在这里给出了这些说明:
To open IIS Manager from the Start menu Click Start, and then click Control Panel. Do one of the following: If you are using Windows Vista® or Windows Server® 2008, click System and Maintenance, and then click Administrative Tools. If you are using Windows® 7 or Windows Server® 2008 R2, click System and Security, and then click Administrative Tools. In the Administrative Tools window, double-click Internet Information Services (IIS) Manager. To open IIS Manager from the Search box Click Start. In the Start Search box, type inetmgr and press ENTER.
从“开始”菜单中打开IIS管理器,单击“开始”,然后单击“控制面板”。做以下之一:如果您使用的是Windows Vista®或Windows Server®2008,点击系统维护,然后单击“管理工具”。如果您使用的是Windows®7或Windows®2008 R2服务器,单击系统和安全,然后单击“管理工具”。在管理工具窗口中,双击Internet Information Services (IIS)管理器。要从搜索框中打开IIS管理器,请单击“开始”。在“开始搜索”框中,输入inetmgr并按ENTER。
As this is Windows 7, I tried System and Security | Administrative Tools, but there is no IIS Manager in the list. So I then tried the "inetmgr" route and that, too, failed (it opens a "Search Results" dialog with "No results matched you search" or similar wording).
由于这是Windows 7,我尝试了System和Security |管理工具,但是列表中没有IIS管理器。因此,我尝试了“inetmgr”路由,这也失败了(它打开了一个“搜索结果”对话框,“没有结果匹配你搜索”或类似的字眼)。
So how can I locate the IIS Manager so that I can create anew or reattach the configurations the asp.net is failing to find?
那么,如何定位IIS管理器,以便重新创建或重新附加asp.net未能找到的配置呢?
UPDATE
I had to manually add support for asp.net 4 in IIS Manager for my project to quit whining. Why wouldn't this automatically be configured when installing asp.net 4?!? Anywho, for the benefit of future onreaders, here is what I had to add in its full color glory:
我必须在项目的IIS管理器中手动添加对asp.net 4的支持,才能停止抱怨。为什么在安装asp.net 4时不会自动配置?!?无论谁,为了未来的读者,这里是我必须添加的全部颜色的荣耀:
So here's how it looks at the end:
这是它最后的样子
I don't know why v2 is needed and, if it is, why version 3 is not, but the important thing (for me, now) is having v4 support.
我不知道为什么需要v2,如果需要,为什么版本3不需要,但是重要的是(现在)有v4支持。
UPDATE 2
Right-click solution, there is a "Use IIS Express..." menu item. If you select that, you see:
右键单击解决方案,有一个“使用IIS Express…”菜单项。如果你选择它,你会看到:
...so maybe all that lying on my back, getting oil in my hair was unnecessary - just select this and all that behind-the-scenes stuff would have been taken care of automagically?
…所以,也许所有躺在我背上,把油弄到我头发里的事情都是不必要的——只要选择这个,所有幕后的事情都会自动处理?
2 个解决方案
#1
29
First of all, you need to check that the IIS is installed in your machine, for that you can go to:
首先,您需要检查IIS是否安装在您的机器上,您可以查看:
Control Panel --> Add or Remove Programs --> Windows Features --> And Check if Internet Information Services is installed with at least the 'Web Administration Tools' Enabled and The 'World Wide Web Service'
控制面板——>添加或删除程序——> Windows功能——>,检查互联网信息服务是否至少安装了“Web管理工具”和“万维网服务”
If not, check it, and Press Accept to install it.
如果没有,检查它,并按Accept安装它。
Once that is done, you need to go to Administrative Tools in Control Panel and the IIS Will be there. Or simply run inetmgr (after Win+R).
完成后,您需要到控制面板中的管理工具,IIS将在那里。或者只是运行inetmgr(在Win+R之后)。
Edit: You should have something like this:
编辑:你应该有这样的东西:
#2
-1
You need to make sure the IIS Management Console is installed.
您需要确保安装了IIS管理控制台。
#1
29
First of all, you need to check that the IIS is installed in your machine, for that you can go to:
首先,您需要检查IIS是否安装在您的机器上,您可以查看:
Control Panel --> Add or Remove Programs --> Windows Features --> And Check if Internet Information Services is installed with at least the 'Web Administration Tools' Enabled and The 'World Wide Web Service'
控制面板——>添加或删除程序——> Windows功能——>,检查互联网信息服务是否至少安装了“Web管理工具”和“万维网服务”
If not, check it, and Press Accept to install it.
如果没有,检查它,并按Accept安装它。
Once that is done, you need to go to Administrative Tools in Control Panel and the IIS Will be there. Or simply run inetmgr (after Win+R).
完成后,您需要到控制面板中的管理工具,IIS将在那里。或者只是运行inetmgr(在Win+R之后)。
Edit: You should have something like this:
编辑:你应该有这样的东西:
#2
-1
You need to make sure the IIS Management Console is installed.
您需要确保安装了IIS管理控制台。