My Techie Blog

  Home  |   Contact  |   Syndication    |   Login
  110 Posts | 5 Stories | 405 Comments | 0 Trackbacks

News

Archives

Image Galleries

ADO.NET

Ajax

API/WebServices

ASP.NET Resources

BizTalk Server

Blogs I read

Free Books

How to

iOT

JavaScript

JQuery

JSLink - SharePoint

JSON

LINQ

Misc

Mobile BI

MS Business Inteliigence

Reporting Services

Responsive/MVC ASP.NET

SEO

Sharepoint Resources/Tools

SharePoint 2010 Branding

SharePoint 2010 Videos

SharePoint 2013

SharePoint Online

SilverLight

SPServices

SQL Server

Sql Server 2012

SSIS

Web Optimization Tools

Web Performace Tools

Windows 8

Windows Azure

Windows Azure

Windows Phone

WorkFlows

WSS V3

xml

Using VS.NET 2005 i was on a project and tried using the TABS in AjaxControl kit
I was sure the version was 1.0.61025.0 but anytime i compile the project i get the error :

The type 'System.Web.UI.ScriptManager' exists in both 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'c:\Windows\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'   

I did all i knew to add the right TAGS in web.config but with no luck. Funny enough i could get the page to load on my local server but not on production when i deploy it.
I later created another project using VS.NET 2008 with the same setup and looking at the web.config noticed there was other tags that was included that wasn't in the previous project e.g

<runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>

The Solution:
After i added these tags above  to the web.config before the end tag </configuration>
It worked like a charm

Enjoy and save your time
posted on Thursday, April 9, 2009 6:00 PM

Feedback

# re: The type 'System.Web.UI.ScriptManager' exists in both 'System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions 9/3/2009 1:17 PM Andy
You solved my problem with this, Thanks!

I actually had all the you suggested adding...all except the <bindingRedirect... tag. That was the crucial part apparently.

# re: The type 'System.Web.UI.ScriptManager' exists in both 'System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions 9/10/2009 6:26 AM Martin
Your my hero! :-)

# re: The type 'System.Web.UI.ScriptManager' exists in both 'System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions 11/2/2009 5:56 PM The Colonel
You rock!!! I owe you a beer my good man.

# amazing 11/13/2011 7:50 PM Zahid Iqbal
Thank you this saved a lot of my time

# .Net error 2/19/2012 9:35 PM Ateeq Ahmad
thanks :-)

# :) 9/11/2013 7:39 PM Mayank
thnaks :)

Post A Comment
Title:
Name:
Email:
Comment:
Verification: