[英]strange behavior of Visual studio 2010 ASP.NET test server
I mainly use VS2010 and C# to develop ASP.NET web apps, although its test server is a great tool for developing web applications but sometimes I get strange behaviors, for instance sometimes I press F5 to run app, and my browser window opens (firefox is my default web browser in VS), some controls are displayed in page and suddenly I get an error, I understand that test server is not run! 我主要使用VS2010和C#来开发ASP.NET Web应用程序,虽然它的测试服务器是开发Web应用程序的一个很好的工具,但有时我会遇到奇怪的行为,例如有时我按F5运行应用程序,我的浏览器窗口打开(firefox)是我在VS中的默认Web浏览器,一些控件显示在页面中,突然我收到错误,我明白测试服务器没有运行! when I switch to visual studio I see that blue triangle icon is still active and stop/pause icons are disable (so that it may seem my program has never run!), it seems that sometimes program runs (HTML is displayed on browser) but my server is not running, what is going wrong here?
当我切换到visual studio时,我看到蓝色三角形图标仍处于活动状态,停止/暂停图标被禁用(因此看起来我的程序似乎从未运行过!),似乎有时程序运行(HTML显示在浏览器上)但是我的服务器没有运行,这里出了什么问题?
I should tell that this problem occurs in rare cases (for example once in 40 runs) and often I have several visual studio windows open (each for a separate project) 我应该告诉这个问题在极少数情况下发生(例如在40次运行中发生一次)并且我经常打开几个可视工作室窗口(每个窗口用于一个单独的项目)
thanks 谢谢
Does this offer any joy? 这会带来什么快乐吗? http://blog.syntaxc4.net/post/2010/06/15/Having-Cassini-Crash-while-using-ASPNET-MVC.aspx
http://blog.syntaxc4.net/post/2010/06/15/Having-Cassini-Crash-while-using-ASPNET-MVC.aspx
Or this http://asp.net.bigresource.com/-net-Cassini-VS-WebDev-executing-BeginRequest-and-EndRequest-on-different-threads--02qr8lrLl.html 或者这个http://asp.net.bigresource.com/-net-Cassini-VS-WebDev-executing-BeginRequest-and-EndRequest-on-different-threads--02qr8lrLl.html
Can you try switch to IIS or IIS Express as your debugging platform and see if that helps out? 您可以尝试切换到IIS或IIS Express作为调试平台,看看是否有帮助? Just as a proof of concept?
就像一个概念证明?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.