错误 1)无法连接Asp.net开发服务器? 答案:没有办法找到该错误
尝试1) 步骤1:在VS或Visual Web Developer中选择“工具 - >外部工具”菜单选项。这将允许您配置和添加新的菜单项到您的工具菜单。
Step 2: Click the “Add” button to add a new external tool menu item. Name it “WebServer on Port 8010” (or anything else you want).
Step 3: For the “Command” textbox setting enter this value: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\WebD ev.WebServer.EXE (note: this points to the
VS通常会自动运行的网络服务器)。
Step 4: For the “Arguments” textbox setting enter this value: /port:8010 /path:$(ProjectDir) (or any port you like)
Step 5: Select the “Use Output Window” checkbox (this will prevent the command-shell window from popping up.
Once you hit apply and ok you will now have a new menu item in your “Tools” menu called “WebServer on Port 8010”. You can now select any web project in your solution
然后再选择此菜单选项来启动该对端口8010(或任何其他端口你想要的)该项目的根网站的web服务器。
You can then connect to this site in a browser by simply saying http://localhost:8010/. All root based references will work fine.
Step 6: The last step is to configure your web project to automatically reference this web-server when you run or debug a site instead of launching the built-in
网络服务器本身。要做到这一点,请在解决方案资源管理器中选择您的Web项目,右键单击并选择“属性页”。选择“启动选项”左边设置,并在服务器改变
从默认的单选按钮值(这是使用内置的Web服务器),而不是被“使用自定义服务器”。然后设置基本URL值是:因为它已被其他网络服务器
http://localhost:8010/
Obviously I don't know if this is the problem you had but definitely it is something similar, essentially the problem should be that the same port used by your
开发服务器不可用。
尝试2)
Here are the steps
1. 'Website' Menu in your visual studio ide.
2. select 'Start Options'
3. enable 'Use Custom Server' radio button.
4. Enter any URL you desire similar to 'http://localhost:8010/MyApp'
Note1: you can use any port number not only '8010' but not designated port numbers like 8080(tcpip),25(smtp),21(ftp) etc.,
Note2: you can use any name not only 'MyApp'
This solution works for sure unless your WebDev.Webserver.exe is physically corrupted.
双方的的Windows修复选项后没有工作仍然
您是否在IIS上托管过该项目?还是直接从文件系统运行它? – Kirtan 2009-06-13 05:35:39
我刚刚按了F5,我想我应该从文件系统运行它? – George2 2009-06-13 06:02:17
我在这里解决了这个问题:http://stackoverflow.com/questions/2096628/setting-up-development-environment-for-asp-net-mvc – claws 2010-01-20 03:26:27