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 the same issue when deploying application on Local IIS. My publish directory and IIS hosting directory are same. I tried with following steps, it worked for me: