Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC project stops debugging right after opening Chrome pane

I have a Visual Studio project, and when trying to run the project in Google Chrome, it stops debugging right after opening a new pane in Google Chrome.

I suspect this has something to do with IIS Express, but I have no idea where to begin when searching for this issue. I tried searching online, but without any luck. It doesn't seem like a common problem.

I have a solution with multiple projects, and my MVC project is dependent on some of these projects. It all builds just fine, and my MVC project is set as the startup project.

I'd love to give you more information, but this is all I have. I find this quite disturbing as I cannot test the code immediately after writing it, but I have to manually merge this into a colleagues solution to actually test.

Any guideline, tips and tricks, or possible solution is much appreciated.

Note: this issue has been present after zipping the project from a colleagues PC, then copying to my own and unzipping.

Extra note: When opening the solution in VS 2015 it asks to convert the project to a newer version. This doesn't happen on my colleagues PC, and we run the same version of VS. This strikes me as pretty odd, but I didn't think more about it. It does fail to convert 4 projects, but none of these are added as references in my MVC project.

EDIT
The following gets printed to my output window:

The program '[13188] iisexpress.exe' has exited with code 0 (0x0).

The program '[13188] iisexpress.exe: Program Trace' has exited with code 0 (0x0).

EDIT 2
I decided to try and run this is Internet explorer instead of Google Chrome. Now the project is actually running is VS, but my IIS Express is not started, therefore I cannot connect to my URL (as such doesn't exists unless IIS Express is actually running).

Just tried Microsoft Edge as well. Same behavior as Internet Explorer.

EDIT 3
Apparently my colleague is using VS Enterprise 2015, and I'm only using VS Pro 2015. The solution we bought needed to use VS Enterprise for some strange reason. This is why it runs perfectly on my colleagues environment.

like image 420
Detilium Avatar asked Jun 23 '17 07:06

Detilium


1 Answers

When opening the solution in VS 2015 it asks to convert the project to a newer version. This doesn't happen on my colleagues PC, and we run the same version of VS.

It seems that the project was updated, if possible, please compare your VS version with the pc of your colleagues, for example, click VS Help menu->About Visual Studio and compare the version number.

Not debugging your app, just run it using start without debugging, how about the result? We have to make sure that it was not the project issue.

The program '[13188] iisexpress.exe' has exited with code 0 (0x0).

The program '[13188] iisexpress.exe: Program Trace' has exited with code 0 (0x0).

As you said that project was updated, please close the Visual studio and delete .vs configuration folder which is inside the root of project folder and It’s a hidden. Re-open your project, view the debugging result.

enter image description here

like image 73
Jack Zhai-MSFT Avatar answered Sep 27 '22 17:09

Jack Zhai-MSFT