Configuration Error: Could not load type..........

Last post 03-15-2007 6:49 AM by kamii47. 5 replies.

Sort Posts:

  • Configuration Error: Could not load type..........

    01-25-2007, 11:36 AM
    • Member
      point Member
    • earlam
    • Member since 01-25-2007, 4:26 PM
    • Posts 2

    Hi all,

    I have an issue with an AJAX.NET enabled web site that i have written. This site was completed and worked fine on our dev server, but then the dev server was rebuilt, and then the fun began. I have reloaded the site onto the newly setup server, installed AJAX.NET (the current version, which i also developed the site under). But the site will not load and i keep getting the follow error

    Parser Error Message: Could not load type 'System.Web.UI.Compatibility.CompareValidator' from assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

    Source Error:

    Line 51:           </controls>
    Line 52:           <tagMapping>
    Line 53:             <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 54:             <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="System.Web.UI.Compatibility.CustomValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    Line 55:             <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="System.Web.UI.Compatibility.RangeValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    I have tried uninstalling and reinstalling AJAX.NET, Moving the 2 AJAX dll's into the projects BIN directory, and also manually putting the 2 AJAX dlls into the GAC, and nothing has made a bit of difference, and so im posting on here.......

    any help would be greatly appreciated!
    Rob Earlam

  • Re: Configuration Error: Could not load type..........

    01-25-2007, 5:12 PM
    • Member
      175 point Member
    • tomfitz
    • Member since 05-17-2006, 6:53 PM
    • Posts 40
    • AspNetTeam
    The validators were removed from the latest release. The default Web.config that comes with the RTM release no longer has the validators in the <tagMapping> element.
  • Re: Configuration Error: Could not load type..........

    01-26-2007, 12:00 AM
    • Star
      14,543 point Star
    • ScottGu
    • Member since 06-05-2002, 8:36 PM
    • Redmond, WA
    • Posts 2,004
    • AspNetTeam
      Moderator

    Here is a pointer to a blog post that describes how you can download the compatibility validators: http://weblogs.asp.net/scottgu/archive/2007/01/25/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions.aspx

    Hope this helps,

    Scott

  • Re: Configuration Error: Could not load type..........

    01-26-2007, 4:41 AM
    • Member
      point Member
    • earlam
    • Member since 01-25-2007, 4:26 PM
    • Posts 2

    All is working fine now

    Thanks Alot
    Rob

  • Re: Configuration Error: Could not load type..........

    03-15-2007, 4:53 AM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 2,198

    I am working on a team project.

    On Other system they haven't got this error.

    On my system I have commented the following lines in the web.config {locally}

    <!--

    <tagMapping>

    <add tagType="System.Web.UI.WebControls.CompareValidator" mappedTagType="System.Web.UI.Compatibility.CompareValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add tagType="System.Web.UI.WebControls.CustomValidator" mappedTagType="System.Web.UI.Compatibility.CustomValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add tagType="System.Web.UI.WebControls.RangeValidator" mappedTagType="System.Web.UI.Compatibility.RangeValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add tagType="System.Web.UI.WebControls.RegularExpressionValidator" mappedTagType="System.Web.UI.Compatibility.RegularExpressionValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add tagType="System.Web.UI.WebControls.RequiredFieldValidator" mappedTagType="System.Web.UI.Compatibility.RequiredFieldValidator, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    <add tagType="System.Web.UI.WebControls.ValidationSummary" mappedTagType="System.Web.UI.Compatibility.ValidationSummary, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

    </tagMapping> kamran

    -->

    Then I can't get this error.{I don't know why this error appear on my system and doesn't on other systems}

    If i comment these line in my project which all team developer work what could be the result ?

    What Should I do ?

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
  • Re: Configuration Error: Could not load type..........

    03-15-2007, 6:49 AM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 4:04 PM
    • Karachi, Pakistan
    • Posts 2,198
    Found that on other system there were old ajax installation were installed

    So I uninstalled the latest ajax extension and install the old one.

    Then as on other system enable the lines above then my application start working on my system.

    Now What Should I do .Can I install the new extension on all systems and comments these lines on other system as well.

    {I am asking it as Could it lead to some problems or not}

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
Page 1 of 1 (6 items)