0
localhost : 2971의 프로젝트에서 작업하고 있습니다. 마스터 페이지에서 wcf 서비스에 asp : ScriptReference를 포함시키고 싶습니다. localhost : 5152WCF : 스크립트 관리자에서 서비스 참조 문제
에있는 IIS에서 호스팅하고 있습니다.var service = new SandwichServices.CostService();
service.CostOfSandwiches(5, onSuccess);
를 마스터 페이지에서 상속 페이지 :
<Services>
<asp:ServiceReference InlineScript="false" Path="http://localhost:5152/CostService.svc" />
</Services>
는 내가 전화를 시도합니다.
이Error: no element found
Source File: http://localhost:2971/CostService.svc/CostOfSandwiches
Line: 1
왜 소스 파일이 2971 가리키는 :
그러나, 파이어 폭스 오류 콘솔에서 나는 다음과 같은거야? 서비스는 2152에서 만든 샘플 페이지에서 제대로 작동합니다.
누구나 아는게 뭐야? 도움이 될 것입니다.
<!--
[EndpointNotFoundException]: The service '/CostService.svc' does not exist.
at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
[HttpException]: The service '/CostService.svc' does not exist.
at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext)
at System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->
IIS를 사용하고 있습니다. – ErnieStings
WCF를 독립적으로 테스트 할 수 있습니까? – Perpetualcoder
예 할 수 있습니다. 문제가 없다면 – ErnieStings