OpsanBlog

Michael Coates - Microsoft Pragmatic Evangelist

My Latest Tweet
    Follow my Tweets

    MIX10

    Posted with:
     Windows Live Writer
     Download Live Writer

    My Windows Live Local Collections:
     Las Vegas
     Los Angeles
     San Jose
     Seattle
     Washington, DC
     My Walks

    Article Categories

    Archives

    Post Categories

    Bloggers

    Parser Error Message: Unrecognized attribute 'type'

    Yes: I'm having a bit of a geekend this week.  I decided to build out a dev box in a VPC of a Windows 2003 Server with the ASP.NET AJAX libraries and futures.

    For fun ;)

    Upon setting up the ASP.NET AJAX documentation, I got the most helpful Parser Error Message:

    Unrecognized attribute 'type'.

    .. followed by specifics relating to the web.config file for the site.

    Fortunately, this is trivial: by default, Windows 2003 Server configures ASP.NET 1.1 instead of ASP.NET 2.0 as the default version, and you get the error running a 2.0 site atop a 1.1 verwsion. 

    Changing to 2.0 solved the problem; here are the steps:

    • Open IIS
    • Right-click on the default web site and click 'properties'.
    • Click on the ASP.NET tab.
    • Select ASP.NET 2.0 as the default version.

    Re-render the page and the error should go away.

    posted on Saturday, May 19, 2007 1:36 PM

    Feedback

    # re: Parser Error Message: Unrecognized attribute 'type' 5/19/2007 3:58 PM bba

    you should be out playing with the kids in weather like this !

    # re: Parser Error Message: Unrecognized attribute 'type' 9/6/2007 3:42 PM Rama

    Thanks ...really helped me

    # re: Parser Error Message: Unrecognized attribute 'type' 9/12/2007 2:02 PM lawrence

    ~ the most helpful Parser Error Message: unrecognized attribute 'type'. ~

    I totally agree. The Parser Error Message should be smarter to tell the right problem area.

    This short article is really useful to me. Thanks!

    # re: Parser Error Message: Unrecognized attribute 'type' 9/20/2007 12:33 AM maamir

    Thanx a lot buddy, u solved a big problem.

    # re: Parser Error Message: Unrecognized attribute 'type' 11/26/2007 8:27 PM chenna

    hi thanks a lot.

    # re: Parser Error Message: Unrecognized attribute 'type' 12/6/2007 12:22 PM John

    You sure saved me some time! Thanks!

    # re: Parser Error Message: Unrecognized attribute 'type' 1/20/2008 9:11 AM Dan

    Thanks for posting that! I just ran into the problem, and this was the first page that came up for my google search. I thought it would take up much more of my time to fix the error. Instead it took all of 2 minutes. :-) Thanks!!

    # re: Parser Error Message: Unrecognized attribute 'type' 1/23/2008 9:16 AM Chris

    Thanks a lot... I just ran into this error myself. I like the part "Fortunately, this is trivial" lol... very helpful.

    # re: Parser Error Message: Unrecognized attribute 'type' 1/30/2008 1:02 AM Mathivanan.NB

    Thanks......its very helpfule

    # re: Parser Error Message: Unrecognized attribute 'type' 1/30/2008 7:32 AM Satyam

    Thanks man !! Just started VS2005 and your post help me overcome first hirdal!!

    # re: Parser Error Message: Unrecognized attribute 'type' 2/14/2008 8:27 AM Joshua

    What if there is no ASP.NET tab? I reinstalled .NET 2.0 and .NET 3.0, but still no .NET tab in the properties. .NET 1.1 and 2.0 are both allowed extensions.

    # re: Parser Error Message: Unrecognized attribute 'type' 2/15/2008 6:57 AM Joe007

    This was an easy fix and EXTREMELY helpful. I ran into this issue earlier this year and was able to fix it with MUCH effort. This was the fast and easy answer.

    Thanks!

    # re: Parser Error Message: Unrecognized attribute 'type' 3/4/2008 9:09 PM Tulika

    Thanks! This post was very useful. It solved the problem in less than 2 minutes.

    # re: Parser Error Message: Unrecognized attribute 'type' 4/14/2008 8:10 PM Mahnaz Siddiqui

    Bingo!!! Thanks a ton.

    # re: Parser Error Message: Unrecognized attribute 'type' 5/1/2008 10:26 PM rajya

    kool

    thnk you so muchhhhhhhhhhh

    i searched a lot on google...but no solution...

    thx to u...it was really trivial :)

    # re: Parser Error Message: Unrecognized attribute 'type' 5/16/2008 1:07 PM Killjoy

    This should win advice of the year. So many guides talk about publishing asp.net website, yet none mention, this blatantly needed information.

    The rest should hang their heads in shame.

    # re: Parser Error Message: Unrecognized attribute 'type' 9/10/2008 3:53 AM Peter

    You just made my day !! thanks mate !

    # re: Parser Error Message: Unrecognized attribute 'type' 9/10/2008 11:09 PM Ali

    Thanks buddy!

    # re: Parser Error Message: Unrecognized attribute 'type' 9/25/2008 4:47 AM sriram

    thanks for solving my problem

    # re: Parser Error Message: Unrecognized attribute 'type' 11/4/2008 5:20 PM Brenton

    Thanks, helped solve my problem quickly

    # re: Parser Error Message: Unrecognized attribute 'type' 12/4/2008 8:25 AM Erik

    I don't have control over IIS box and can't upgrade .net to newer version. So this solution does not work in this case

    # re: Parser Error Message: Unrecognized attribute 'type' 12/12/2008 1:00 PM Jeff

    Aspnet framework version is greyed out and
    the list is diasabled. It says 1.x but I see
    that higher versions are installed. Why can't I change it?

    # re: Parser Error Message: Unrecognized attribute 'type' 12/13/2008 10:31 AM Jeff

    I noticed that Framework 1 was not installed

    # re: Parser Error Message: Unrecognized attribute 'type' 1/7/2009 11:40 AM Susan C

    Perfect and Thank you.

    # Problemas con Ajax Asp Net en Producion | hilpers 1/20/2009 11:17 AM Pingback/TrackBack

    Problemas con Ajax Asp Net en Producion | hilpers

    # re: Parser Error Message: Unrecognized attribute 'type' 1/23/2009 12:11 AM stephen

    Thanks jeff

    Aspnet framework version is greyed out and
    the list is diasabled.

    Am trying to installl the framework1.1 ... hope it works

    Stephen

    # re: Parser Error Message: Unrecognized attribute 'type' 1/30/2009 3:55 AM genel temizlik

    thank youuuuuuuuuuuuuu

    # re: Parser Error Message: Unrecognized attribute 'type' 2/12/2009 7:47 AM Mike

    So incredibly helpful. Thanks!

    # re: Parser Error Message: Unrecognized attribute 'type' 3/4/2009 12:55 AM Nayeem Akhtar

    Thanks a lot buddy....i was struggling for this since weeks finally after reading your article i was able to solve the issue....

    # re: Parser Error Message: Unrecognized attribute 'type' 3/7/2009 2:35 PM Robert

    People should get rewards for posting usefull stuff like this :)

    Thank you!

    # re: Parser Error Message: Unrecognized attribute 'type' 3/12/2009 3:48 AM Kishore

    Thanks

    # re: Parser Error Message: Unrecognized attribute 'type' 4/10/2009 6:35 PM Carlos in Miami

    Thanks!

    # re: Parser Error Message: Unrecognized attribute 'type' 5/8/2009 12:11 AM anthonyrsc

    Another person to your list of appreciation!
    anthonyrsc

    # re: Parser Error Message: Unrecognized attribute 'type' 8/18/2009 2:00 AM Peter

    You are the King of ASP.net!
    This is my 2nd night trying to fix it.
    I was just to email question to book author when I tried this.
    Perfect fix.
    Thanks

    # re: Parser Error Message: Unrecognized attribute 'type' 11/19/2009 11:14 AM Rick

    Thanks, very helpfull. Strange Microsoft dafaults this setting to the oldest version of the .net framework?

    Title  
    Name  
    Url
    Comments   

    The opinions expressed herein are my own and are not intended to represent those of my employer.