The type 'System.Web.UI.ScriptManager' exists in both 'System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and 'System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'

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 @ Thursday, April 09, 2009 6:00 PM

Print

Comments on this entry:

# re: The type 'System.Web.UI.ScriptManager' exists in both 'System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions

Left by Andy at 9/3/2009 1:17 PM
Gravatar
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

Left by Martin at 9/10/2009 6:26 AM
Gravatar
Your my hero! :-)

# re: The type 'System.Web.UI.ScriptManager' exists in both 'System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions

Left by The Colonel at 11/2/2009 5:56 PM
Gravatar
You rock!!! I owe you a beer my good man.

Your comment:



 (will not be displayed)


 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345