Windows Server TechCenter > Windows Server Forums > Windows Server 2008 R2 Web Technologies > I get Error: Unrecognized element 'compilers' error message on autodiscovery web.config file
Ask a questionAsk a question
 

AnswerI get Error: Unrecognized element 'compilers' error message on autodiscovery web.config file

  • Monday, October 26, 2009 3:27 PMFelx Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi everybody, some of you knows why I am getting this error when i try to open the .Net Compilation feature of the Autodiscover virtual directory (autodiscover feature of exchange 2007) in the IIS 7.0 administration console. This is message in the Window with the error:

    -----------------------------------------------------------------------
    There was an error when performing this operation.

    Details:

    Filename: \\?\C:\Program Files\Microsoft\Exchange Sever\ClientAccess\Autodiscover\web.config
    Line number 496
    Error: Unrecognized element 'compilers'

    -----------------------------------------------------------------------

    And this is the 496 to 504 lines of web.config file in the path specified in the error, it looks like the IIS can´t recognize the <compilers> tag, also the library referenced in <compiler> tag doesn't exist.


    <compilation defaultLanguage="c#" debug="true">
       <compilers>
            <compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".cs" compilerOptions="/d:DEBUG;TRACE /warn:4 /warnaserror+" />
       </compilers>
       <assemblies>
            <!--add assembly="Microsoft.Exchange.Common, Version=8.0.00207.0, Culture=neutral, publicKeyToken=31bf3856ad364e35"/-->
            <!--add assembly="Microsoft.Exchange.Data.Common, Version=8.0.00207.0, Culture=neutral, publicKeyToken=31bf3856ad364e35"/-->
       </assemblies>
    </compilation>


    Somebody knows why IIS can´t recognize the <compilers> tag and for what the Microsoft.CSharp.CSharpCodeProvider library is used? I think this error is preventing to Outlook Anywhere and Autodiscover works on my Exchange Server 2007 over a Windows 2008 SP2 server.

     


    Felx

Answers

All Replies