Try right-clicking on the project and clicking 'Clean'. Click on app.config in the Solution Explorer and press Delete. Then, right-click on the project and click Add New Item. After that go to Common Items > General and click Application Configuration File. Try to build/debug the application again and it should work.