Reputation: 349
I have deployed an Asp.Net application as a website on IIS 8. But I am receiving error "The CodeDom provider type "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" could not be located" Commenting below lines dosent work
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+" />
</compilers>
</system.codedom>
Anybody faced same issue.
Upvotes: 2
Views: 2339
Reputation: 441
I have this trouble to , Fixed by update package.
Microsoft.CodeDom.Providers.DotNetCompilerPlatform
Upvotes: 2
Reputation: 88
I was facing the same problem in local development on Visual Studio 2015. I resolved it by cleaning the solution in Menu "Build/Clean Solution" then "Built/Rebuilt Solution" and it is working fine again.
Hope to help :)
Upvotes: 1