Error when opening a project with Visual Studio 2015 after installing Visual Studio 2017 RC: The following error occurred attempting to run the project model server process 1.0.0-preview4-004223

After installing Visual Studio 2017 RC, I couldn't open any ASP.NET Core project with Visual Studio 2015, even projects I had never opened with Visual Studio 2017. I got the error:

The following error occurred attempting to run the project model server process 1.0.0-preview4-004223

If you have a global.json file at the root of your solution, add the version of the .NETCORE SDK framework you want to use. If your solution doesn't have any global.json, add one at the root of the web application project and configure it to target a previous version of the .NET Core SDK. In my case, global.json looks like this:


{
  "sdk": {
    "version": "1.0.0-preview2-003131"
  }
}

Editing the global.json in my solution and relaunching Visual Studio 2015 solved the problem, and everything works fine again. If that's not the case for you, open the GitHub issue I link to, there are other solutions posted.

December 27, 2016
  • ASP.NET Core
  • ASP.NET Core Configuration