微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

'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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐