Reputation: 320
I am having problems debugging my web applications.
When I try to Debug my website I get an error saying:
The system cannot find the specified file
Now when I try to Debug again, there will be no error and it tries to open the page, but it doesn't load because IIS is not on.
And when IIS is on and I press the debug the page loads fine, but it doesn't hit the breakpoints I set.
Also the start button doesn't say "Google Chrome", but just "Start"
I thought this was only with this project, but this also happens in my other ASP.NET MVC Project.
I've tried restarting Visual Studio and my laptop, but that didn't solve it either. I also tried cleaning and rebuilding the solution.
Has anybody experienced this problem before?
Upvotes: 0
Views: 2690
Reputation: 348
Your problem with the Debug button showing "Start" occurs only if you set the Application Startup¹ to:
Otherwise, your WebApplication project or solution needs a review. Did you check these files? If not, check the configurations. See the Start Action in Web as the image below².
Another tips I can give you is to always Build your project during coding to see if everything is OK and sometimes do a Clean Solution and Rebuild it. When something is not correct, try restarting your Visual Studio or disabling some extensions.
Also, here are a few questions to help you too:
Some of the answers even when not accepted can help you clarify why did you get this issue.
Hope this can be useful and I am glad you've solved the problem. Now, try to understand it.
--
Upvotes: 1