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