Visual Studio development web server dynamic port numbering problem

本文解决了一个在使用VisualStudio2005及VisualWebDeveloper2008ExpressEdition时遇到的问题:调试Web应用程序时,开发Web服务器使用的动态端口与VisualStudio启动的Web浏览器所使用的端口不一致。文章详细介绍了如何通过调整ESETSmartSecuritySuite防火墙设置来解决此问题。

The problem 

 

I had this problem in Visual Studio 2005 and now I have it in Visual Web Developer 2008 express edition where when debugging a web application using the development web server the dynamic port number used by the server didn’t match what Visual Studio had used for the web browser. It was always wrong and normally out by two or three port numbers.

 

For example the cassini web development server starts and I can see in the notification area what port number it uses

 

However the web browser started by Visual studio looks like this

 Clearly that isn’t going to work.

The Solution

I managed to track down the problem to my firewall software part of the ESET Smart Security Suite. Now, I am pretty sure that when I was using Visual Studio 2005 and had the problem that I was using either McAfee, Norton/Symantec or possibly even the Outpost firewall software. My solution won’t work if you aren’t using Eset but hopefully it will help you to look in the right area. 

  1. If you are using ESET Smary Security Suite then I bet you are using the Protocol Filtering (you can tell by looking in the Advanced Firewall Setup).You could just turn it off and ignore the rest of my blurb but you probably want to keep Protocol Filtering enabled so goto step 2.
  2. In the Advanced setup you need to locate the section shown in the image below and uncheck the web development server.
  3. Make sure you stop the web development server if it’s still running and then try debugging from Visual Studio again.

Feedback

 

Please let me know if this helps you or if you think the instructions can be improved. Equally if you using a different firewall and found the solution please let me know.

 

转载于:https://www.cnblogs.com/love_study/archive/2011/04/06/2006394.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值