none
404 on WCF service hosted on IIS 7 RRS feed

  • Question

  • We have a WCF service (REST) hosted on IIS 7 locally (localhost) and in the customer server (the same WCF service).

    The service is hosted in an Application that is under a Web Site (both, locally and server have the same structure).

    When accessing the .svc file I have no problems (no problems - https://xxxxxx/yyyyy/service.svc). In the server, when accessing any method that follows the .svc, I get the error 404. When accessing the same method locally I do not have any problems and everything works fine.

    The local version of the service is just for tests, as soon as we get the server working, the local version should be removed. 

    This works fine:

    http://localhost/yyyyy/Service.svc/MethodName

    This gives me 404:

    https://xxxxxx/yyyyy/service.svc/MethodName

    The only difference is the https. The thing is, that is not the first REST application service under that server Web Site. The cutomer IIS has been hosting other REST services (not in WCF) without problems for quite some time, which means that the certification should be ok.

    Is there anything I am missing?

    Have been on this issue for quite sometime already.

    Thanks!



    • Edited by Vini023C Friday, February 9, 2018 5:27 PM
    Friday, February 9, 2018 5:19 PM

All replies

  • Hi Vini023C,

    >> When accessing the .svc file I have no problems (no problems - https://xxxxxx/yyyyy/service.svc). In the server, when accessing any method that follows the .svc, I get the error 404

    Do you mean you could access https://xxxxxx/yyyyy/service.svc in the server?

    If you access https://localhost/yyyyy/Service.svc/MethodName in the server, will you receive any error?

    To check whether it is related with your current rest service, if you create a new rest service, host in the server IIS, will it work?

    Best Regards,

    Tao Zhou


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, February 12, 2018 5:30 AM