This is a migrated thread and some comments may be shown as answers.

The type 'System.Web.UI.ScriptManager' is ambiguous

1 Answer 166 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Shawn Smiley
Top achievements
Rank 1
Shawn Smiley asked on 17 Feb 2010, 06:20 PM
We just downloaded the Telerik ASP.net AJAX controls and are starting to integrate them into an existing, non-AJAX web application.  However something keeps inserting a reference to the old version 1.0 of the System.Web.Extensions library into the project which in turn causes us to get the following error:

The type 'System.Web.UI.ScriptManager' is ambiguous: it could come from assembly 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' or from assembly 'C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'. Please specify the assembly explicitly in the type name.

Everything works fine for awhile if I edit the web.config file and remove the following line:
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

However that assembly reference line gets inserted again as soon as I edit any of the controls in the VS Design surface.

Can anyone point me at what may be causing Visual Studio 2005 to keep inserting that assembly reference?


Thank you.








1 Answer, 1 is accepted

Sort by
0
Shawn Smiley
Top achievements
Rank 1
answered on 18 Feb 2010, 12:19 AM
I think I solved my own problem.  It helps to fully read the documentation.

I missed the step on adding AJAX support to an existing application in the docs at http://www.telerik.com/help/aspnet-ajax/adding%20radcontrols%20prometheus%20to%20an%20existing%20application.html

I haven't experienced this problem again since following those instructions.
Tags
ScriptManager and StyleSheetManager
Asked by
Shawn Smiley
Top achievements
Rank 1
Answers by
Shawn Smiley
Top achievements
Rank 1
Share this question
or