[Async_ExceptionOccurred]Arguments: DeBUGging resource strings are unavailable. Often the key and arguments provIDe sufficIEnt information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkID=106663&Version=5.0.61118.00&file=System.dll&Key=Async_ExceptionOccurred INNER >System.ServiceModel.CommunicationException: [CrossDomainError]Arguments: http://localhost/pthaba/SimpleWCF.svcDeBUGging resource strings are unavailable. Often the key and arguments provIDe sufficIEnt information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkID=106663&Version=5.0.61118.00&file=System.ServiceModel.dll&Key=CrossDomainError ---> System.Security.SecurityException ---> System.Security.SecurityException: [Arg_SecurityException]Arguments: DeBUGging resource strings are unavailable. Often the key and arguments provIDe sufficIEnt information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkID=106663&Version=5.0.61118.00&file=mscorlib.dll&Key=Arg_SecurityException
我有一个WCF服务,并在浏览器上正常工作.
我在root站点上有如下所示的clIEntacesspolicy.xml(WCF服务所在的位置)
<?xml version="1.0" enCoding="utf-8" ?><access-policy> <cross-domain-access> <policy> <allow-from > <domain uri="*"/> </allow-from> <grant-to> <resource path="/" include-subpaths="true"/> </grant-to> </policy> </cross-domain-access></access-policy>
我做错了什么?
有谁能够帮我?
编辑:
在我的localhost工作正常,但在服务器上没有.
提琴手似乎没问题,没有错误.
我错过了一些IIS配置吗?
上面有更多错误信息:
at System.Net.browser.browserhttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult) at System.Net.browser.browserhttpWebRequest.<>c__displayClassa.<EndGetResponse>b__9(Object sendState) at System.Net.browser.AsyncHelper.<>c__displayClass4.<BeginonUI>b__1(Object sendState) --- End of inner exception stack trace --- at System.Net.browser.AsyncHelper.BeginonUI(SendOrPostCallback beginMethod,Object state) at System.Net.browser.browserhttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.ServiceModel.Channels.httpChannelFactory.httpRequestChannel.httpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result) --- End of inner exception stack trace --- at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result) at System.ServiceModel.Channels.ServiceChannel.EndCall(String action,Object[] outs,IAsyncResult result) at System.ServiceModel.ClIEntBase`1.ChannelBase`1.EndInvoke(String methodname,Object[] args,IAsyncResult result) at Pthaba.SimpleSVC.SimpleWCFClIEnt.SimpleWCFClIEntChannel.EndGetGameLevelPlataforms(IAsyncResult result) at Pthaba.SimpleSVC.SimpleWCFClIEnt.Pthaba.SimpleSVC.ISimpleWCF.EndGetGameLevelPlataforms(IAsyncResult result) at Pthaba.SimpleSVC.SimpleWCFClIEnt.OnEndGetGameLevelPlataforms(IAsyncResult result) at System.ServiceModel.ClIEntBase`1.OnAsyncCallCompleted(IAsyncResult result)ult)解决方法 我遇到了同样的问题,并按照这篇文章让我的工作: Making a Service Available Across Domain Boundaries.
我不得不做一个如下变化,有人在那篇文章的底部评论过:
<allow-from http-request-headers="*">总结
以上是内存溢出为你收集整理的Silverlight:WCF在服务器上获取错误但localhost工作正常全部内容,希望文章能够帮你解决Silverlight:WCF在服务器上获取错误但localhost工作正常所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)