Could not find schema information fo rthe element error

Last post 04-21-2006 4:37 PM by y71chen. 2 replies.

Sort Posts:

  • Could not find schema information fo rthe element error

    04-20-2006, 6:24 PM
    • Member
      175 point Member
    • y71chen
    • Member since 03-28-2006, 12:21 PM
    • Posts 35
    Hi

    Does anyone know what this error is from?

    Message    1    Could not find schema information for the element 'http://schemas.microsoft.com/.NetConfiguration/v2.0:configuration'.    C:\Inetpub\newwwwroot\personal_site\web.config    2    2    http://pers/

    And this is giving me a 503 server unavaliable error when i request http://pers/

    Please please help!!!

    -yue


  • Re: Could not find schema information fo rthe element error

    04-20-2006, 11:09 PM
    • Contributor
      2,378 point Contributor
    • jwadsworth
    • Member since 03-13-2003, 4:16 PM
    • Salem, Oregon
    • Posts 542

    In the past I have received the same error. I'm not sure what causes it but if you change this:

    <

    configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

    to

    <

    configuration> the error should go away.

    If your getting this error after deploying to a production server you probably need to set the application to use Asp.net 2.0 instead of Asp.net 1.1

  • Re: Could not find schema information fo rthe element error

    04-21-2006, 4:37 PM
    • Member
      175 point Member
    • y71chen
    • Member since 03-28-2006, 12:21 PM
    • Posts 35
    This is actually caused by visiting the administration tool (by going to the website menu and click on asp.net configuration). and that automatically changed the configuration tab to:
    configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

    work around steps:
    Change in WebAdminPage.cs file, located in
    %windir%\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\App_Code
    directory, the line (number 93):

    config.NamespaceDeclared = true;

    with

    config.NamespaceDeclared = false;
    so next time when u go to admin tool the config tag will not be changed automatically anymore.

Page 1 of 1 (3 items)