异常代码:
{System.ServiceModel.CommunicationException: 远程服务器返回了错误: NotFound。 ---> System.Net.WebException: 远程服务器返回了错误: NotFound。 --->
System.Net.WebException: 远程服务器返回了错误: NotFound。
位于 System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
位于 System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
位于 System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)
--- 内部异常堆栈跟踪的结尾 ---
位于 System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
位于 System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
位于 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
--- 内部异常堆栈跟踪的结尾 ---
位于 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
位于 System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.ChannelBase`1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
位于 GetLocationsToConstructLines.LocationServiceReference.DupleServiceClient.DupleServiceClientChannel.EndGetLocations(IAsyncResult result)
位于 GetLocationsToConstructLines.LocationServiceReference.DupleServiceClient.GetLocationsToConstructLines.LocationServiceReference.IDupleService.EndGetLocations(IAsyncResult result)
位于 GetLocationsToConstructLines.LocationServiceReference.DupleServiceClient.OnEndGetLocations(IAsyncResult result)
位于 System.ServiceModel.ClientBase`1.OnAsyncCallCompleted(IAsyncResult result)} System.Exception {System.ServiceModel.CommunicationException}
图片:
1.service.svc在浏览器查看正常
2.没有使用数据库,数据量仅是构造几个double组成的数字推送给客户端。
3.跨域文件不知道用的对不对,没有配置iis,将跨域文件放到了C:\inetpub\wwwroot下面了。在没放之前报的错误是需要跨域文件的错误,放到这里之后报的错误是:远程服务器返回了错误: NotFound。
求解答,很急。