Unrecognized attribute 'xmlns'.

Last post 11-28-2006 11:30 PM by david@davidlwalker.com. 11 replies.

Sort Posts:

  • Unrecognized attribute 'xmlns'.

    05-26-2006, 9:58 AM
    • Loading...
    • bmains
    • Joined on 10-22-2004, 12:20 PM
    • Posts 4,861
    • TrustedFriends-MVPs

    Hello,

    I just had the admins on a server put the 2.0 framework on it.  I put my site on that server, and I'm getting this error, but why?:

     

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Unrecognized attribute 'xmlns'.

    Source Error:

    Line 8:      \Windows\Microsoft.Net\Framework\v2.x\Config 
    Line 9:  -->
    Line 10: <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    Line 11:   <configSections>
    Line 12:     <section name="securityConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Security.Configuration.SecuritySettings, Microsoft.Practices.EnterpriseLibrary.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null" />

    Source File: D:\DevSites\EDDDev\web.config    Line: 10

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
  • Re: Unrecognized attribute 'xmlns'.

    05-26-2006, 11:20 AM

    What ASP.NET version is the site running as? From that exception, it sounds like 1.x.

    Ryan

    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: Unrecognized attribute 'xmlns'.

    05-26-2006, 12:51 PM
    • Loading...
    • bmains
    • Joined on 10-22-2004, 12:20 PM
    • Posts 4,861
    • TrustedFriends-MVPs

    1.1 and 2.0 are installed.  I'm using the same virtual directory for this 2.0 application that I did in 1.1; is there something I need to do with IIS or something?

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
  • Re: Unrecognized attribute 'xmlns'.

    05-26-2006, 1:02 PM

    The virtual directory that the .NET 2.0 application is in will need to be set to ASP.NET 2.0 on the ASP.NET tab on the virtual directories properties in IIS, and it will also need to run in a separate application pool from .NET 1.x applications.

    HTH,
    Ryan

    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: Unrecognized attribute 'xmlns'.

    05-26-2006, 2:09 PM
    • Loading...
    • bmains
    • Joined on 10-22-2004, 12:20 PM
    • Posts 4,861
    • TrustedFriends-MVPs
    I wasn't aware that you can now setup the ASP.NET version in IIS.  Thanks for letting me know.  Is there anything configurable for the application pool?  Thanks.
    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
  • Re: Unrecognized attribute 'xmlns'.

    05-26-2006, 2:14 PM

    The default settings for a new application pool should be sufficient.

    Ryan

    Ryan Olshan
    ASPInsider | Microsoft MVP, ASP.NET
    http://ryanolshan.com

    How to ask a question
  • Re: Unrecognized attribute 'xmlns'.

    05-26-2006, 2:19 PM
    • Loading...
    • bmains
    • Joined on 10-22-2004, 12:20 PM
    • Posts 4,861
    • TrustedFriends-MVPs

    I got past it, thanks.

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
  • Re: Unrecognized attribute 'xmlns'.

    10-30-2006, 10:29 PM
    • Loading...
    • DecentTown
    • Joined on 10-27-2006, 2:56 AM
    • Posts 2

    Hi,

     I have tried all of this including changing the version setting in the ASP.NET tab against the directory in IIS and assigning the app to it's own Application Pool separate from any other apps. However I still get the same error message...is there anything else that could cause this?

     

    Going crazy!

  • Re: Unrecognized attribute 'xmlns'.

    10-30-2006, 10:50 PM
    • Loading...
    • pclay241
    • Joined on 10-29-2006, 10:55 PM
    • Posts 4
    I ran across this same thing.  I ended up deleting the bin folder and it cleared the error.  From what I read, it has something to do with what 1.1 uses from the bin folder.  None of the other stuff worked for me, so I tried deleting the bin folder.  If you do it, just make sure to back-up your work before you delete it. Just in case.
  • Re: Unrecognized attribute 'xmlns'.

    10-30-2006, 11:06 PM
    • Loading...
    • DecentTown
    • Joined on 10-27-2006, 2:56 AM
    • Posts 2
    Hi thanks for the tip but I still get the same ol' message...anyone else have any ideas?
  • Re: Unrecognized attribute 'xmlns'.

    11-15-2006, 5:54 PM

    I am also experiencing the same issue.

    A week ago, I installed 2.0 Framework on dev webserver that already had 1.1 on it.

    Deployed my new 2.0 application, set IIS to ASP.NET 2.0 and everything worked fine.

    Just today, started getting errors. First was this error: Unrecognized Attribute 'xmlns'

    I noticed from the error page that it was using the 1.1 Framework even though IIS says 2.0.

    I ran aspnet_regiis -i and that moved me past this error on to:

    allowDefinition='MachineToApplication' beyond application level

    Ironically, I also have already followed the steps mentioned above, in removing the Application, recreating the Application using it's own application pool.

    I will post back once I determine the final solution.

    Code On!

    David Walker, MCP, MCAD, MCSD, MVP - ASP/ASP.NET
    www.davidlwalker.com

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
    Filed under:
  • Re: Unrecognized attribute 'xmlns'.

    11-28-2006, 11:30 PM

    Okay. Luckily this was a dev server so it wasn't high priority. Whew. Production continued to work fine.

    It was setting the website as an application in IIS. Duh.

    Which of course I had already done. The problem was due to the fact that my predecessor had set the server up under two different websites. One with an alias "intranetdev" and the other with the machine name. The intranetdev was working, but the machine name wasn't. I finally discovered this and that's what led me to the immediate solution. Of course, now, I will be verifying with my predecessor (luckily they're still around) and figure out why they heck they set up two websites.

    Code On!

    David Walker, MCP, MCAD, MCSD, MVP - ASP/ASP.NET
    www.davidlwalker.com

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
    Filed under: ,
Page 1 of 1 (12 items)