尝试从客户端脚本访问Web服务时面临的问题
问题描述:
我有一个Web应用程序,在这里我要从客户端脚本引用Web服务.在脚本管理器标签中,我使用以下代码段添加了Web参考:
Hi,
I have a web application where I am referring a web services from the client script. In the script manager tag, I have added the web reference using the following code snippet:
<Services>
<asp:ServiceReference Path="~/WebServices/TestingNSWS.asmx">
<Services>
但出现以下错误:
But I am getting the following error:
"Sys.InvalidOperation: Object ApplicationName already exists and is not a namespace"
任何人都可以在这方面提供帮助.
谢谢
Can anyone help in this regards.
Thanks
答
您是否正在使用AJAX?我得到的所有Google热门搜索,也都使用了ASP.NET AJAX库. 此处 [
Are you using AJAX ? All the google hits I got, also used the ASP.NET AJAX library. Here[^] is an example discussion
是的,我正在Web应用程序中使用Ajax
Yes I am using Ajax in my web application
我已经弄清了该问题的原因.
我正在使用Ajax Pro dll.
我们需要在类声明的上方添加此属性,以解决所面临的问题...
[AjaxPro.AjaxNamespace("RecordsView")]
I have figured out the reason for that issue.
I am using Ajax Pro dll.
We need to include this property just above the class declaration to fix the issue am facing...
[AjaxPro.AjaxNamespace("RecordsView")]