Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/76.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
Jquery 通过URL重写重定向到SharePoint 2010访问listdata.svc_Jquery_Json_Sharepoint 2010_Url Rewriting_Svc - Fatal编程技术网

Jquery 通过URL重写重定向到SharePoint 2010访问listdata.svc

Jquery 通过URL重写重定向到SharePoint 2010访问listdata.svc,jquery,json,sharepoint-2010,url-rewriting,svc,Jquery,Json,Sharepoint 2010,Url Rewriting,Svc,我正在使用URL重写规则访问代理服务器,重写URL以访问Sharepoint服务器。除了我在/u vti_bin/listdata.svc上得到一个404外,一切正常。我还在应用程序日志中的代理服务器上发现一个错误 日志名称:应用程序 来源:System.ServiceModel 4.0.0.0 日期:2013年1月3日下午12:49:20 事件编号:3 任务类别:网络主机 级别:错误 关键词:经典 用户:IIS APPPOOL\hr自助服务 计算机:webnet01test.bluebunny

我正在使用URL重写规则访问代理服务器,重写URL以访问Sharepoint服务器。除了我在/u vti_bin/listdata.svc上得到一个404外,一切正常。我还在应用程序日志中的代理服务器上发现一个错误

日志名称:应用程序

来源:System.ServiceModel 4.0.0.0

日期:2013年1月3日下午12:49:20

事件编号:3

任务类别:网络主机

级别:错误

关键词:经典

用户:IIS APPPOOL\hr自助服务

计算机:webnet01test.bluebunny.com

说明:

WebHost无法处理请求。发件人信息:System.ServiceModel.Activation.HostedHttpRequestAsyncResult/9460241异常:System.Web.HttpException(0x80004005):服务“/\u vti\u bin/listdata.svc”不存在。-->System.ServiceModel.EndpointNotFoundException:服务“/\u vti\u bin/listdata.svc”不存在。 位于System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(字符串规范化VirtualPath) 位于System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(字符串相对虚拟路径) 在System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandlerRequest()中 在System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()中 在System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult结果) 在System.ServiceModel.Activation.HostedHttPrequesStatAsyncResult.End(IAsyncResult结果)处

我正在从sharepoint列表填充菜单标题

因此,页面将是domain2.com/pages/default.aspx,下面的代码将执行并填充页面上的菜单

谢谢你能给我的帮助


$.ajax({ url:“http://Domain1.com/_vti_bin/listdata.svc/MegaMenuCategories?$orderby=OrderingValue%20asc“

数据类型:“json”, 跨域:是的, async:false, 成功:功能(数据){ var menuLength=data.d.results.length;
对于(i=0;i我与Microsoft合作解决了这个问题,并发现如果您通过URL重写代理从SharePoint请求listdata.svc服务,请求将在代理服务器上终止。发生的情况是代理服务器尝试处理该请求,并明显返回404

我们所要做的是删除IIS中的处理程序映射,以便服务请求将通过代理流向SharePoint服务器

我们删除了特定IIS网站上的svc-Integrated-4.0


我们测试了SharePoint,一切正常,现在我们可以通过URL重写访问_vti_bin/listdata.svc。

我只想补充一点,我们有这个问题和“站点”与重定向关联的已禁用。非常感谢您是一个好公民,并为此添加了您的解决方案。您可能为我节省了几天的时间。此答案解决了我数天来一直在努力解决的一个问题,试图重写为内部开发的WCF服务。当我在代理web应用程序中删除.SVC的处理程序映射后有趣的是,删除处理程序映射会在web.config中添加一些元素,说明删除了哪些处理程序映射 dataType: 'json', crossDomain:true, async: false, success: function (data) { var menuLength = data.d.results.length; for (i=0; i<data.d.results.length; i++){ var results1 = data.d.results[i].MenuTitle; var order = data.d.results[i].OrderingValue; if (order == "1") addMenuTitle(order, results1); if (order == "2") addMenuTitle(order, results1); if (order == "3") addMenuTitle(order, results1); if (order == "4") addMenuTitle(order, results1); if (order == "5") addMenuTitle(order, results1); if (order == "6") addMenuTitle(order, results1); } if (menuLength == "5"){ $("#megaRtCorner").css("left","490px"); $("#megaMenu").css("width","475px"); } } });</code>