Patrick.O.Ige

Knowledge Creation is Essential to Business, and Communication is Essential to Knowledge Creation

  Home  |   Contact  |   Syndication    |   Login
  94 Posts | 5 Stories | 342 Comments | 0 Trackbacks

News

SharePoint SharePoint SharePoint

Article Categories

Archives

Post Categories

ADO.NET

Ajax

API/WebServices

ASP.NET Resources

BizTalk Server

Blogs I read

Free Books

How to

JQuery

LINQ

Misc

Mobile BI

Reporting Services

SEO

Sharepoint Resources/Tools

SharePoint 2010 Branding

SharePoint 2010 Videos

SilverLight

SQL Server

Sql Server 2012

SSIS

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
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Thursday, April 09, 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

# micromax mobile q80 web page problem 1/3/2012 9:22 PM KEVAL CHAND
sir
i purchase just now micromax q80 mobile phone. when i open web page.then error display(unsupported scripft in content)
so please solve this problem.my mobile no.9460829632

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