ASP .NET 开发服务器端口
假设在使用 VWD 进行调试时,ASP .NET 开发服务器在端口 4754 上运行。(托盘图标)。
调试页面在 http://localhost:4750 打开,每次我必须在地址栏中输入正确的地址。 http://localhost:4754
换句话说 http://localhost 端口, 始终是 ASP .NET 开发服务器端口减 4
为什么调试页面未在与托盘图标中显示的端口相同的端口中打开?
Supposing that while debugging with VWD the ASP .NET Development server runs at port 4754. (tray icon).
The page for debug is opening at http://localhost:4750 and every time i have to type in the address bar the correct address. http://localhost:4754
In other words the http://localhost port,
is always the ASP .NET Development server port minus 4
Why the page for debug is not opening in the same port with the one shown in the tray icon?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您使用 ESET 安全软件吗?
我遇到了这个问题,但我一直无法解决它。 不过我发现了这个链接,也许它会对您有所帮助。 另外,请务必检查该页面上的评论,以防主要文章无法解决问题。
Are you using ESET security?
I had this problem, but I never was able to fix it. I came across this link though, maybe it will help you. Also be sure to check the comments on that page in case the main article didn't resolve the issue.
默认情况下,Visual Studio 将自动分配端口。 我不确定为什么你的页面没有与 cassini 服务器同步,但我知道你可以将 Visual Studio 配置为使用静态端口。 转到项目的选项页面并查找
Web
选项卡。 应该有一个Servers
部分,其中包含一个使用 Visual Studio Development Server
选项,并且在其中您可以选择自动分配端口
或>特定
端口。 您可以尝试设置特定端口,看看是否会获得更好的结果。 (这些说明是使用 VS2005 和 VB 项目作为指南编写的 - ymmv)。By default Visual Studio will auto-assign the port. I'm not sure why yours is not syncing the page with the cassini server, but I do you can configure Visual Studio to use a static port instead. Go to your project's options page and look for the
Web
tab. There should be aServers
sections with an option toUse Visual Studio Development Server
and inside of that you can chooseAuto-assign Port
orSpecific
port. You could try setting a specific port and see if you get any better results. (These instructions were written using a VS2005 and VB project as a guide- ymmv).网站的项目设置(使用什么端口和打开什么页面)是什么? 是否有多个站点可以调用另一个端口来使用?
What are the project settings for the web site in terms of what port to use and what page to open? Are there multiple sites for which another port may be called in to be used?