Reputation: 2913
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.
Upvotes: 20
Views: 18818
Reputation: 5719
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.
Upvotes: 21