无法从dojo调用wcf服务加载错误500

无法从dojo调用wcf服务加载错误500,wcf,dojo,Wcf,Dojo,我从dojo调用我的wcf服务,得到无法加载错误500。当我在VisualStudio中使用WCF测试客户端测试该服务时,它工作得很好。我正在使用dojo xhr get调用WCF服务: 模块调用服务: define(['dojo/store/Memory', 'dojo/_base/xhr', "dojo/data/ObjectStore"], function (Memory, xhr, ObjectStore) { return { GetReaches:

我从dojo调用我的wcf服务,得到无法加载错误500。当我在VisualStudio中使用WCF测试客户端测试该服务时,它工作得很好。我正在使用dojo xhr get调用WCF服务:

模块调用服务:

 define(['dojo/store/Memory', 'dojo/_base/xhr', "dojo/data/ObjectStore"],
  function (Memory, xhr, ObjectStore) {
     return {
         GetReaches: function (url) { //url is: "http://localhost:54052/FormTest/proxy.ashx?http://localhost:57735/Service1.svc/GetReaches/"
             xhr.get({//get data from database
                 url: url,
                handleAs: "json",
                load: function (result) {
                ReachData = result.GetReachesResult;
                },
                error: function (err) { }//500 error caught

            });
        } //GetReaches
    }

});
我没有向服务传递任何参数,因此传递给函数的数据类型不可能是错误的。你知道还有什么问题吗

谢谢


Pete

终于成功了,我在web.config文件中遗漏了这个重要的项目:

<services>
      <service name="SARIService.Service1" behaviorConfiguration="ServiceBehavior">
        <endpoint address="" binding="webHttpBinding" contract="SARIService.IService1"     behaviorConfiguration="web">

        </endpoint>

      </service>
    </services>