Disable Warning As Error on WEBSITE project
Well after spending half an hour looking on the net on how to disable WarningAsError on a WEBSITE project, everyone kept saying the same thing – edit the project settings – WELL A WEBSITE PROJECT DOSENT HAVE PROJECT SETTINGS!
Anyway, here is the solution, you need to edit your web.config :
<system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="3" compilerOptions="/d:DEBUG;TRACE"> </compiler> </compilers> </system.codedom>
Should turn into the following:
<system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="3" compilerOptions="/d:DEBUG;TRACE"> <providerOption name="WarnAsError" value="false"/> </compiler> </compilers> </system.codedom>
The line you want in question is:
<providerOption name="WarnAsError" value="false"/>
And this baby will make it work! Enjoy!

