Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 将ScriptManager添加到页面时出错_Asp.net_Scriptmanager - Fatal编程技术网

Asp.net 将ScriptManager添加到页面时出错

Asp.net 将ScriptManager添加到页面时出错,asp.net,scriptmanager,Asp.net,Scriptmanager,我正在使用VS2010、.NET4。我正在尝试将ScriptManager添加到我的页面中,以便可以引用支持AJAX的WCF服务。当我将ScriptManager控件添加到我的页面并查看它时,我得到如下所示的错误。我不知道如何解决它。我通过简单地将控件放在我的页面上而不是引用WCF服务来获得错误 查看源时出现错误: (script src="/ScriptResource.axd?d=cN6E-bUIIAhb0PYSsbqev2ndhi3W3ltVtHjrJ-T5yBfO3jQBEHWjU39P

我正在使用VS2010、.NET4。我正在尝试将ScriptManager添加到我的页面中,以便可以引用支持AJAX的WCF服务。当我将ScriptManager控件添加到我的页面并查看它时,我得到如下所示的错误。我不知道如何解决它。我通过简单地将控件放在我的页面上而不是引用WCF服务来获得错误

查看源时出现错误:

(script src="/ScriptResource.axd?d=cN6E-bUIIAhb0PYSsbqev2ndhi3W3ltVtHjrJ-T5yBfO3jQBEHWjU39PLAybm-JIxwU4s59EhJFweLHmABl1zA2yo8fKhHYHGS7RTy1fhECuWqXbMMy5aCuSlqHbfp3advQcwp11SqaDwkvU1YN6Bw2&t=ffffffffbd2983fc" type="text/javascript")(/script)

(script type="text/javascript") 
//(![CDATA[
if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
//]])
(/script)
实际上,我的问题是我无法访问该服务。我在ScriptManager中引用了它,并准备好了javascript代码,但Firefox报告说它找不到它。说它没有定义。我不知道如何测试这一点或确定它失败的地方。感谢Ajax客户端框架未能加载消息,因为ScriptManager未能加载Ajax工具包扩展


从以下位置下载:

对不起。贴了更多我的原始笔记。