'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 @   emanlee  阅读(1505)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
点击右上角即可分享
微信分享提示