简体   繁体   English

使用Microsoft Visual Studio 2010进行调试。ASP.NET

[英]Debugging with Microsoft Visual Studio 2010. ASP.NET

I am trying to debug to test if my website that I am creating is working fine, but I am having problems. 我正在尝试调试以测试我正在创建的网站是否运行正常,但是出现问题。 It directs to the following website rather than run my website. 它定向到以下网站,而不是运行我的网站。 It used to work fine until today. 直到今天,它一直可以正常工作。

指向此

Below is what my MS Visual Studio looks like 以下是我的MS Visual Studio外观

微软Visual Studio

Right Click on the .aspx file in the Solution Explorer & Click "View in Browser". 右键单击解决方案资源管理器中的.aspx文件,然后单击“在浏览器中查看”。 If the Webpage shows fine then the problem is with your browser. 如果网页显示正常,则问题出在您的浏览器上。

To check if the problem is with your browser, change your default browser and the start the debugging. 要检查浏览器是否存在问题,请更改默认浏览器并开始调试。

OR simply IE has set your start page, to the one that loads again & again. 或只是IE已将您的起始页面设置为可再次加载的页面。

Did you install some of those dodgy toolbars today? 您今天是否安装了其中一些狡猾的工具栏? Maybe NetAssistant? 也许是NetAssistant? Your solution is to get rid of that stuff then it won't try and search when you're trying to debug. 您的解决方案是摆脱这些东西,然后在尝试调试时就不会尝试搜索。

Otherwise, if you're a real big fan of all those add ons and want to keep them, when you're debugging you'll have to run, then change the URL in the address bar to include the http protocol, therefore it won't search, something like: 否则,如果您是所有这些附加组件的忠实拥护者并希望保留它们,则在调试时必须运行,然后更改地址栏中的URL以包含http协议,因此它赢得了搜索,类似:

http://localhost:57562/assignemcheck.aspx

First thing i can see is , you are not in Debugging mode, check tha Run button is still there, 我能看到的第一件事是,您不在调试模式下,请检查“运行”按钮是否仍然存在,
i can see that in your visual studio image 我可以在您的视觉工作室图像中看到
Run it properly, and try to go to just localhost or 127.0.0.1 if it show not loading or something like that, your ASP server is not up yet, try restarting, .. 正确运行它,然后尝试仅访问localhost或127.0.0.1(如果显示未加载或类似内容),则表明您的ASP服务器尚未启动,请尝试重新启动。

That is indeed very strange. 这确实很奇怪。 Try these steps and see if it helps. 请尝试这些步骤,看是否有帮助。 1)Clean your solution 2)Click on notification tray on the toolbar(bottom right corner) and make sure that no instance of web server is running. 1)清洁解决方案2)单击工具栏(右下角)上的通知托盘,并确保没有任何Web服务器实例在运行。 if it is kill it. 如果是杀死它。 3) right click on your webpage and click on "Browse With". 3)右键单击您的网页,然后单击“浏览方式”。 Change browser to Firefox or Chrome and click "Set as Default". 将浏览器更改为Firefox或Chrome,然后单击“设置为默认”。 click OK. 单击确定。 4) Build and Run your application again. 4)再次生成并运行您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 运行Asp.Net网站项目时如何在Visual Studio 2010中禁用脚本调试? - How to disable script debugging in Visual Studio 2010 when running Asp.Net website project? ASP.NET Visual Studio Codespaces 中的核心应用程序调试问题 - ASP.NET Core app in Visual Studio Codespaces debugging issue ASP.NET / Visual Studio 2010中的Crystal Reports - Crystal Reports in ASP.NET/Visual Studio 2010 使用ASP.Net Visual Studio 2010的WebApi路由依赖性 - WebApi routing dependency using ASP.Net visual studio 2010 Visual Studio 2010中的ASP.Net MVC 1.0 - ASP.Net MVC 1.0 in Visual Studio 2010 Visual Studio 2010中的ASP.Net WebService在哪里? - Where's the ASP.Net WebService in Visual Studio 2010? 使用Visual Studio 2010进入asp.net中的类库 - Step into a class library in asp.net using visual studio 2010 在Visual Studio 2008中远程调试ASP.NET Web服务 - Remote debugging ASP.NET Web Service in Visual Studio 2008 调试asp.net应用程序时在Visual Studio中查看会话 - View sessions in Visual Studio when debugging a asp.net application Microsoft 身份平台 Asp.Net c# 和 Visual Studio - Microsoft identity platform Asp.Net c# and Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM