locked
IIS returns 404 on WCF Actions RRS feed

  • Question

  • Hi,

    I have started making use of WCF Actions as per http://blogs.msdn.com/b/odatateam/archive/2012/04/10/actions-in-wcf-data-services-part-1-service-author-code.aspx.

    Everything works fine on IIS Express, but once deployed to IIS, I receive 404 errors from any service action. All other WCF interactions are working fine, with the exception of the Actions. It's as though IIS can't understand the route, or WCF is mistaking the service action for a relation. The service metadata does report the service action end point correctly however.

    We are using WCF 5.6.3 and EF6.

    Anyone encountered this before?


    dayneo http://blogs.dayneo.co.za

    • Moved by Fred Bao Wednesday, April 22, 2015 11:42 AM Issue caused by IIS configuration
    Tuesday, April 14, 2015 4:47 AM

Answers

  • Hello dayneo,

    >>Everything works fine on IIS Express, but once deployed to IIS, I receive 404 errors from any service action

    From your description, your service should be ok since it works on the IIS express, as far as I know, a 404 error represents your request page is not found on server. In your case, it seems to be that the IIS does not understand such a request, I think you might need to configure the IIS to let it recognize, for this, you could ask issues related IIS configuration on IIS forum: http://forums.iis.net/.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Just Karl Thursday, April 23, 2015 9:39 PM
    • Marked as answer by Just Karl Monday, May 4, 2015 10:34 PM
    Wednesday, April 15, 2015 1:42 AM

All replies

  • Hello dayneo,

    >>Everything works fine on IIS Express, but once deployed to IIS, I receive 404 errors from any service action

    From your description, your service should be ok since it works on the IIS express, as far as I know, a 404 error represents your request page is not found on server. In your case, it seems to be that the IIS does not understand such a request, I think you might need to configure the IIS to let it recognize, for this, you could ask issues related IIS configuration on IIS forum: http://forums.iis.net/.

    Regards.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Proposed as answer by Just Karl Thursday, April 23, 2015 9:39 PM
    • Marked as answer by Just Karl Monday, May 4, 2015 10:34 PM
    Wednesday, April 15, 2015 1:42 AM
  • Thanks. I will try repost there.

    FYI, in the mean time I have modified all Actions as WebInvoke methods instead.


    dayneo http://blogs.dayneo.co.za

    Thursday, April 23, 2015 6:47 PM