简体   繁体   English

Visual Studio 2010 ASP.NET测试服务器的奇怪行为

[英]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.

相关问题 未知服务器标签ASP.NET 2.0 Visual Studio 2010 - Unknown Server tag ASP.NET 2.0 Visual Studio 2010 奇怪的行为:ASP.NET到Sql Server - Strange behavior: ASP.NET to Sql Server Visual Studio 2010为.NET 3.5 ASP.NET应用程序启动.NET 2.0开发服务器 - Visual Studio 2010 launching .NET 2.0 Development Server for .NET 3.5 ASP.NET Application 在Windows 7 ASP.Net页上的IIS上,CSS的显示不正确,如在Visual Studio 2010中的嵌入式服务器中 - On IIS in Windows 7 ASP.Net pages CSS is not show correclty as In the embedded server in Visual Studio 2010 无法连接到ASP.NET开发服务器错误Visual Studio 2010 - Unable to connect to ASP.NET development server error visual studio 2010 使用Visual Studio 2010和ASP.NET将行插入SQL Server - Insert row to SQL Server using Visual Studio 2010 and ASP.NET 将asp.net页连接到SQL Server数据库(Visual Studio 2010) - connect an asp.net page to the SQL server database(visual studio 2010) 在调试ASP.NET MVC应用程序时,Visual Studio 2010 Dev Server停止提供样式表吗? - Visual Studio 2010 Dev Server Stopped Serving Style Sheets When Debugging ASP.NET MVC app? 防止 Visual Studio 2010 启动 ASP.net 开发服务器 - Prevent Visual Studio 2010 from starting ASP.net development server ASP.NET 4.0应用程序与SQL Server 2008的奇怪行为 - Strange behavior of ASP.NET 4.0 Application with SQL Server 2008
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM