error BC30560: 'ScriptServiceAttribute' is ambiguous in the namespace 'System.Web.Script.Services'.
In a recent web site project in which I call a web service within a web form, aspx page, I got the following error message when I tried to compile and build the web site.
In fact I got the error message when I copied the ASP.NET web site project to another computer, and after updating a web page and adding a new AjaxControlToolkit component onto the desing surface of the web form.
error BC30560: 'ScriptServiceAttribute' is ambiguous in the namespace 'System.Web.Script.Services'.
After the compilation error message, I realized that in the web.config configuration file, another System.Web.Extensions assembly record is added to the configuration file.
So two references to two different versions of System.Web.Extensions assembly file is the reason of ambiguous ScriptServiceAttribute in name space System.Web.Script.Services
Below is the assemblies section of the web.config file which is preventing the web site project to build successfully.
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.