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

Source: Internet
Author: User

 

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 bucket 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. service '.
Source error:

 
Line 12: <WebService (namespace: = "http://tempuri.org/")> _ line 13: <webservicebinding (conformsto: = wsiprofiles. basicprofile1_1)> _ line 14: <scriptservice ()> _ line 15: public class autocompleteline 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.