【发布时间】:2012-12-14 06:50:38
【问题描述】:
我使用 URL 重写规则访问代理服务器,重写 URL 以访问 Sharepoint 服务器。一切正常,除了我在 /_vti_bin/listdata.svc 上得到 404。我还在应用日志中的代理服务器上收到错误消息。
日志名称:应用程序
来源:System.ServiceModel 4.0.0.0
日期:2013 年 1 月 3 日下午 12:49:20
事件 ID:3
任务类别:WebHost
级别:错误
关键词:经典
用户:IIS APPPOOL\HrSelfService
计算机:webnet01test.bluebunny.com
说明:
WebHost 未能处理请求。发件人信息:System.ServiceModel.Activation.HostedHttpRequestAsyncResult/9460241 异常:System.Web.HttpException (0x80004005):服务“/_vti_bin/listdata.svc”不存在。 ---> System.ServiceModel.EndpointNotFoundException: 服务'/_vti_bin/listdata.svc' 不存在。 在 System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(字符串 normalizedVirtualPath) 在 System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(字符串 relativeVirtualPath) 在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest() 在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest() 在 System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult 结果) 在 System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult 结果)
我正在从共享点列表填充菜单标题...
因此页面将是 domain2.com/pages/default.aspx,下面的代码将执行并填充页面上的菜单。
感谢您提供的任何帮助。
$.ajax({
url: "http://Domain1.com/_vti_bin/listdata.svc/MegaMenuCategories?$orderby=OrderingValue%20asc",
数据类型:'json',
跨域:真,
异步:假,
成功:函数(数据){
var menuLength = data.d.results.length;
对于 (i=0; i
【问题讨论】:
标签: jquery json sharepoint-2010 url-rewriting svc