Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 unable to load project

I'm trying to load my VS2015 project into the newly installed VS2017RC but it keeps giving me the error (when loading or reloading):

Object reference not set to an instance of an object.

It also tells me:

"The project requires user input. Reload the project for more information",

but reload throws me the NullRef exception.

How do I know what is wrong with my VS Instance, where can I find info about the error?

I tried the Event Viewer but that has not been very resourceful.

Project Image

Solution Output

UPDATE
Event viewer info Event log 1, App crash Event log 2, Stacktrace

like image 613
Nick Prozee Avatar asked Dec 05 '16 14:12

Nick Prozee


People also ask

How do I fix an unloaded project in Visual Studio?

Right click on the project folder and click Reload project. You will see the projects and folders that you originally had. You will see .

Why my Visual Studio project is unloaded?

Generally, it is because the path of project has been changed or its name has been changed. Regardless of the changed path or name, Visual Studio failed to load the project because it could not be found based on the original path.

How do I import a project into Visual Studio?

In Solution Explorer, select the projects you want to load (press Ctrl while clicking to select more than one project), and then right-click on the project and choose Reload Project. Visual Studio will remember which projects are loaded the next time you open the solution locally.


1 Answers

Possible cause #1:

Try adding this to your project file, or check if it has that or not:

<PropertyGroup>
  <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> 
  <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> 
</PropertyGroup>

Possible cause #2:

Removing the two import lines that contain:

 "Microsoft.WebApplication.targets"

Hope one of these works. The first one worked for me.

like image 85
Yaser Avatar answered Oct 05 '22 02:10

Yaser