使用错误端口的 Visual Studio 开发服务器 [英] Visual Studio Development Server using wrong port

查看:27
本文介绍了使用错误端口的 Visual Studio 开发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以前的问题 我以为已经解决了,但实际上并没有...

Related to a previous issue that I thought was resolved and actually isn't...

我认为我的 Visual Studio 2008 安装可能有点混乱.

My Visual Studio 2008 installation may be a bit messed up, I think.

  1. 当我的 ASP.NET 项目设置为使用具有固定端口的 VS Dev Server 时,我收到 链接问题.
  2. 当我的项目设置为使用随机(自动分配)端口号时,它可以工作,但它使用比实际开发服务器端口号少 3 的端口号启动浏览器(例如,如果端口号是 1903,浏览器启动到 http://localhost:1900/)
  3. 如果我对项目设置进行了更改,则在我保存并重新启动 Visual Studio 之前,它们不会生效".

任何想法如何追踪这个?

Any ideas how to track this one down?

谢谢!

推荐答案

我遇到了一个类似的问题,它同时影响了我的 2 台主机.在调查时,我发现它与 Eset 个人安全有关(猜测最近的更新搞砸了).为了解决这个问题,我从活动浏览器过滤中排除了 VS2008 - 这是在:设置 -> 高级防火墙设置 -> 防病毒 &反间谍软件 -> Web 访问保护 -> HTTP -> 网络浏览器

I had a similar problem which hit my 2 main machines at the same time. On investigating I found it to be related to the Eset personal security (guessing a recent update messed something up). To solve it I excluded VS2008 from the active browser filtering - this is in: setup -> advanced firewall setup -> antivirus & anti spyware -> web access protection -> HTTP -> webbrowsers

在此处取消选择 vsdev 解决了问题 - 有趣的是,禁用防火墙和防病毒/反间谍软件并没有解决问题,因此如果您正在运行不同的安全软件,则值得寻找类似的设置

Deselecting vsdev in here fixed the problem - interestingly enough disabling the firewall and antivirus / antispyware did not solve the issue, so it is worth looking for a similar setting if you are running different security software

这篇关于使用错误端口的 Visual Studio 开发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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