Showing results for 
Show  only  | Search instead for 
Did you mean: 

ASP.NET MVC5 Error - customErrors mode

i upload MVC5  and i write this code in webconfig

<customErrors mode="Off"/>
    <trust level="Full"  />

and i get this error


I need Help To make my site publish

Helper VI

Hi @mohamedmonir, I've visited your site and read the error, since from the picture there are parts missing.


I think you should delete the Roslyn compiler.

In order to do that, you should do as follows:


  1. Open NuGet Package Manager window
  2. uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform package and rebuild & republish. (This uninstallation also removes CodeDom configuration from web.config file.)

Found it here.


Hope it helps!


If you find my replies helpful, give me a like or kudo 🙂
And if I solved your issue, mark it as solution 😄