Shifting from Ajax 1.0.61025.0 to 3.5.0.0

If you were using the old version 1.0.61025.0, once you installed and used the new version of Ajax on your project you get the error of:

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


You need to add runtime tag to show which version of the Ajax you are using as;
In runtime tag;

assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1"
dependentassembly
assemblyidentity name="System.Web.Extensions" publickeytoken="31bf3856ad364e35"
bindingredirect oldversion="1.0.61025.0" newversion="3.5.0.0"
/bindingredirect
dependentassembly
assemblyidentity name="System.Web.Extensions.Design" publickeytoken="31bf3856ad364e35"
bindingredirect oldversion="1.0.61025.0" newversion="3.5.0.0"
/bindingredirect
/assemblyidentity

Because both of these versions are stored in GAC with same name( and different version.

Happy coding...

Comments

Judy said…
Hi, I added this but still get the error. any clue??
sacoskun said…
Hey Hudi,

Make sure you installed the new version of Ajax 3.5.0.0. What is the error btw?

sarp
Judy said…
Hey, thanx for your reply!
Yeah all i did was change the Ajax version to 3.5(in the web.config file) and now it works.

Popular posts from this blog

Space Character Problem on IE 6, 7, and 8

AWS encryption chart (SSE-S3 vs SSE-KMS vs SSE-C)

Does Netflix work on iOS 5 Beta 4?