ASP.net 웹 사이트에서 간단한 WCF 웹 서비스를 만들었습니다.WCF 나머지 웹 서비스는 로컬 호스트에서 작동하지만 호스트에서는 작동하지 않습니다.
에 의해 호스팅되는 웹 서비스 IIS 예상대로 나는 정확한에 "Hello World"응답을 http://localhost/myservice.svc/HelloWorld에 exemple에 대한 액세스 할 때 localhost의 예를 잘 작동합니다.
내 컴퓨터 호스트 이름 (http://mycomputer/myservice.svc/HelloWorld)으로 액세스하면 오류 404 응답이 표시됩니다. 이것은 사이트의 나머지 (주로 aspx 페이지)가 두 가지 방법으로 문제없이 액세스 할 수 있으므로 특히 혼란 스럽습니다.
IIS에서 구성 문제가 의심 스럽지만 실제로 실마리가 없습니다. 어떤 도움이라도 대단히 감사 할 것입니다.
내 서비스 엔드 포인트는 다음
[EndpointNotFoundException]: There was no channel actively listening at 'http://mycomputer.ad-ent.lan.net/myservice.svc/HelloWorld'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening.
à System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
à System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
à System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
[HttpException]: There was no channel actively listening at 'http://mycomputer.ad-ent.lan.net/myservice.svc/HelloWorld'. This is often caused by an incorrect address URI. Ensure that the address to which the message is sent matches an address on which a service is listening.
à System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
à System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
à System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext)
à System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context)
à System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
à System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
web.config의 내용 - 및 요소는 무엇입니까? MSDN에서 localhost로만 제한하는 항목은 볼 수 없지만 여기서는 전문가가 아니므로 문제가있는 부분이 어디인지 추측 할 수 있습니다. –
Rup
실행중인 IIS의 버전은 무엇입니까? –
iis admin에서 svc 파일을 마우스 오른쪽 버튼으로 클릭하고 "찾아보기"를 선택하면 어떻게됩니까? –