I\'ve read this question and tried the solutions mentioned there but I\'m getting this exception only after i published the application to IIS of a remote server. In my loca
I had this same issue and tried multiple proposed solutions from different threads with similar issues and got nowhere.
I finally just checked out a clean copy of the solution from team explorer and that fixed it for me.