Hosting multiple Rest service under one Website in IIS RRS feed

  • Question

  • User1898107849 posted

    hi ,

    i have sample rest service application 

    and its URI looks like - 

    [RouteAttributes(UriTemplate = "{appname}/adfsapi/mex")]
        public class SAMLMexRouteHandler : IRouteHandler

    if  host this service in to main directory and point that directory into  iis than its work fine  by using this url


    but if i have directory structure like this - 

    enter image description here

    than trying to call my rest service url http://localhost:8089/testapp1/adfsapi/mex its throwing 404 not found error . any suggestion which step i am doing wrong.


    Saturday, December 2, 2017 8:35 PM


  • User1898107849 posted

    i solved the issue by converting to application for every directory . 

    and my URI will be like this - 

        [RouteAttributes(UriTemplate = "adfsapi/mex")]

            public class SAMLMexRouteHandler : IRouteHandler



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, December 3, 2017 8:54 PM