Ajax 1 & 2008 compabilities

I have successfully installed VS 2008, and tried to make some Ajax web page. I added a ScriptManager from Toolbox its version is 3.5.0.0. ihave the following entries in web.config as well :

Code Snippet

WhenI ran the page I got the following error:

Code Snippet
Compiler Error Message: CS0433: The type 'System.Web.UI.ScriptManager' 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'

Samething for ScriptManager


Code Snippet
'System.Web.UI.ScriptManager' 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'

Have you ever seen this error before? Any help would be greatly appreciated.


[2809 byte] By [FrenchiInLA] at [2008-1-8]
# 1
I am getting the exact same error message on my WinXp pro box, works fine on my vista box?
dtsn at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Orcas Install and Setup...
# 2
Did you ever get this resolved? I'm running into the same problem.
Segfahlt at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Orcas Install and Setup...
# 3

Hi

Assuming that you want to develop using the currnet v1.0 Ajax, do the following:

1.

Download and run the fix script from Microsoft:
"After the Beta 2 installation has finished, you should run this script to ensure that the installation of .NET Framework 3.5 Beta 2 will not affect the development of ASP.NET AJAX 1.0 applications."
http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx

2:

Check web.config that you don't have this line that refers to the new v3.5 Ajax assembly:

Code Snippet

<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

If you do have it, delete it.

You should have:

Code Snippet
<
add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

3:

Clean up your temporary ASP.NET folder.

Hope this helps.

Best regards,

Magnus

MagnusJ at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Orcas Install and Setup...

Visual Studio Orcas

Site Classified