If you are using the Resharper’s TestRunner and have put your tests directly inside your web application assembly, you may ran across the configuration file issue. That is, that you create a test that, in a way or another, will try to access your application configuration file. The problem is that the Web.Config file is not copied to the bin folder and is not renamed following the configuration file convention of anything else that is not a web application. To ensure that you will have access, you can add a post-build event in Visual Studio that will copy the Web.Config to the bin folder with an appropriate name (applicationname.dll.config).
Right-Click on the project => Properties => Build Events and paste this :
copy /Y “$(ProjectDir)Web.config” “$(TargetDir)$(TargetFileName).config
