Error while trying to run project: Unable to start program ‘…’. The endpoint was not reachable.

Fixes a Visual Studio project startup error where the endpoint is not reachable by removing the Prefer32bit setting from the project file.

During playing with Entity Framework I got the error:

“Error while trying to run project: Unable to start program ‘’…’. The endpoint was not reachable.

image
image

By running the project in Visual Studio. Outside VS were no problems.

A similar project runs fine. So I compared both project files. Indeed the first project file contains the line:

<Prefer32bit>false</Prefer32bit>

in some property groups.

After deleting this line everything runs fine.