title: Development Mode Swapping to Development environment will display more detailed information about the error that occurred
body: <p>When I publish a website with .Net MVC Core 2.0 to run in IIS, it results in error (see below picture) when I try ti register an account,
  How to I fix it?</p>
  
  <p><a href="https://i.stack.imgur.com/krb3D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/krb3D.png" alt="enter image description here"></a></p>