CodeDom provider cannot be found after deploying another application

I had two web applications deployed on a site under IIS 7.5

site.com/myApp site.com/anotherMyApp

Other developers have now deployed their application as the root application.

site.com/

Now when I access site.com/myApp or /anotherMyApp , it throws:

The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version = 1.0.0.0, Culture = Neutral, PublicKeyToken = 31bf3856ad364e35" cannot be located.

Source Error:

 Line 54: <system.codedom> Line 55: <compilers> Line 56: <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" /> Line 57: <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" /> Line 58: </compilers> 

Source file: C: \ inetpub \ wwwrootprettysite \ THEIR APPLICATION \ web.config

Questions

Why is this happening?
Why is there a β€œsource error” in my webconfig application and how does it affect my application?
How to fix my applications without breaking them?

To clarify:

  • The application hierarchy is correct, their application must be installed in the root directory.
  • Installed .NET Platform - 4.5.2
  • Their application uses the Roslyn compiler, which comes in bin / roslyn
  • In my web.configs applications there is no <system.codedom> section.
+5
source share
1 answer

Your application inherits the configuration from its parent application, and your application does not have Microsoft.CodeDom.Providers.DotNetCompilerPlatform. That is why you see this error. There are several options.

  • Reinstall the system.codedom parameter in the web.config file
  • Install Microsoft.CodeDom.Providers.DotNetCompilerPlatform nupkg in your application.
+5
source

All Articles