'ScriptServiceAttribute' is ambiguous in the namespace 'System.Web.Script.Services'

 

Im pretty sure that its because System.Web.Extensions.dll isnt up-to-date of isnt the latest version.

Im confused by the fact that I have two versions of System.Web.Extensions.dll installed on my computer one is version 3.5.0.0 and the other is version 1.0.61025.0. All i know is that one of these is from .NET3.5 and the other has installed with ASP.NET 2.0 AJAX Extensions, in my web.config all the refereneces seem to point to the ASP.NET 2.0 AJAX Extensions. I think its Http handlers need to changed. After adding the 3.5.0.0 it still hasnt worked. I cant understand why the bulit in Ajax Toolkit website handlers wont work.

To try to remedy this problem i have editied the web.config using both references but they didnt seem to work (together and singluarly).

 

Scenario:

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30560: 'ScriptServiceAttribute' is ambiguous in the namespace 'System.Web.Script.Services'.
Source Error:

Line 12: <WebService(Namespace:="http://tempuri.org/")> _
Line 13: <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
Line 14: <ScriptService()> _
Line 15: Public Class AutoComplete
Line 16:     Inherits System.Web.Services.WebService

Solution:

All you have to do in order to solve the error BC30560 indicating that 'ScriptServiceAttribute' is ambiguous in the namespace 'System.Web.Script.Services' is just commenting the proper System.Web.Extensions assembly according to their version numbers.

REF:

http://forums.asp.net/t/1179216.aspx

http://www.kodyaz.com/articles/ScriptServiceAttribute-ambiguous-namespace-System-Web-Script-Services.aspx

http://www.telerik.com/community/forums/dotnetnuke/module-development/system-web-ui-ambiguous-namespace-issue-with-radeditor-on-dnn.aspx

posted @ 2009-05-27 23:25  emanlee  阅读(1505)  评论(0编辑  收藏  举报