Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3426856
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:45:58+00:00 2026-05-18T06:45:58+00:00

We are deploying our ASP.Net MVC application to a windows 2008 R2 server, running

  • 0

We are deploying our ASP.Net MVC application to a windows 2008 R2 server, running IIS 7.5.

After deployment, we get this error in the event log (we also get an email) :
"Unrecognized element ‘providerOption’" on line x in c:\wwwroot\web.config
which is:

<providerOption name="CompilerVersion" value="v3.5"> 

located in the system.codedom compiliers section of our standard web config. I investigated the problem a bit. (I also checked the namespace details on msdn to find out abit about it). Amongst many other solutions, I found this post recommending updating the FX_Schema.xml file on our server. (I think this is where the problem is, please correct me if I’m mistaken)

I looked through fx_schema file, and, as defined in the event viewer, the attribute "providerOption" is not in this schema! Here is the copy of the system.codedom section from the FX_schema.xml

<sectionSchema name="system.codedom">
    <element name="compilers">
        <collection addElement="compiler" removeElement="remove" clearElement="clear">
            <attribute name="language" type="string" isCombinedKey="true" />
            <attribute name="extension" type="string" isCombinedKey="true" />
            <attribute name="type" type="string" />
            <attribute name="warningLevel" type="int" />
            <attribute name="compilerOptions" type="string" />
        </collection>
    </element>
</sectionSchema>

I am sure that I can not be the the only person who has this problem, but has anyone else anyone come across this before and found a solution?

EDIT: Another way to produce this quickly is (on IIS 7 in Windows 7)

In IIS Managment console, open your MVC website, in the website home. You should see ASP.NET, IIS, and Managment groups. Under Management, open the "Configuration Editor". I get the error message popping up here!

EDIT: My copy of the web config:

<system.codedom>
    <compilers>
        <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
            type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
         <providerOption name="CompilerVersion" value="v3.5"/>
         <providerOption name="WarnAsError" value="false"/>
    </compiler>

  <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4"
            type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    <providerOption name="CompilerVersion" value="v3.5"/>
    <providerOption name="OptionInfer" value="true"/>
    <providerOption name="WarnAsError" value="false"/>
      </compiler>
   </compilers>

</system.codedom>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:45:58+00:00Added an answer on May 18, 2026 at 6:45 am

    I’ve managed to recreate the error in IIS by simply going to the system.codedom section of the configuration manager.

    I don’t get any error using either a .net3.5 or .net4.0 app but these are very basic test apps, also only .net3.5 test apps put a system.codedom section in the web.config file by default.
    .net4.0 simplified the web.config file and moved out a lot of options

    I’ve found some information here about possible config conflicts which may be of use

    It recomends

    The workaround for the second scenario
    is to delete or comment out all the
    system.web.extensions configuration
    section definitions and configuration
    section group definitions from the
    application-level Web.config file.
    These definitions are usually at the
    top of the application-level
    Web.config file and can be identified
    by the configSections element and its
    children.

    For both scenarios, it is recommended
    that you also manually delete the
    system.codedom section, although this
    is not required

    Not exactly the same problem but similar

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am deploying an ASP.NET application and SQL Server (2008) database on a live
I developed an ASP.Net MVC v1 web application and it ran fine on our
Our workstations are running 64-bit Vista, and the production servers for our ASP.NET MVC
I'm deploying an ASP.NET MVC application and I'm having difficulty with the web.config. The
Our project represents a web application on ASP.NET MVC base. It has a lot
We had huge performance problem when deploying our ASP.NET app at a customer, which
After deploying WCF server (svc) on my Server, I have got this message when
After deploying to Azure, I kept getting server errors -- the application would not
I'm receiving the following error when deploying a feature containing ASP.NET pages to our
We include the Visual C++ runtime libraries when deploying our c++ application on Windows,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.