I was struggling with the same issue from last few days. I just right click on project properties then navigated to Build tab and select option Any CPU, tick uncheck option Prefer 32 Bit and save it before to run your app, it helped me. I have attached snapshot of the same.