Strange behavior when opening a web project in Visual Studio 2012

I have a solution with a web project (the "main" project - allows you to call it a DataPortal project.), Where the project does not open if the following steps are not taken.

  • Open solution. The DataPortal project is grayed out and says "Unable to open project."
  • Right-click the DataPortal node project and select "Edit DataPortal.vbproj"
  • Change UseIIS node in the project from True to False. Save the file.
  • Right-click the DataPortal project and select Download Project. The project is loading.
  • Now open the DataPortal project file properties page. (Alt-Enter)
  • Check the options button on the property sheet that says you should use the local IIS web server.
  • Select the Use IIS Express check box. Url project already has a value.

Now everything works fine. And I can work until I turn off the VS, but when I open the solution again, I will have to go through all this again.

Can someone tell me how to fix this so that UseIIS is ok at startup? Is there a way to get an idea of ​​the project loading error for more information on this?

+4
source share
3 answers

Try deleting (or editing) your DataPortal.vbproj.user file. I had this problem a few days ago, and I think I did it to solve it. Project parameters that are not grouped together (which may include startup parameters for your web application) are in this file.

+1
source

Perhaps you could try starting Visual Studio with a log switch and see if it reports anything.

 devenv.exe /log 

( / msdn log documentation)

Also, when Visual Studio behaves strangely, I usually delete the * proj.user and * .suo files, and sometimes this fixes the problem.

+2
source

You may have some problems with the IIS port. Try to diagnose with Fiddler or view IIS logs ...

0
source

All Articles