Setting up Web.config to work Side-by-Side with ASP.NET MVC 4 - Location Tag not resolving value “api”

前端 未结 1 1733
再見小時候
再見小時候 2021-01-16 09:49

I checked out Run servicestack side by side with another web framework.

When I add the location tag the \"api\" is unresolved...what do I need to do to get the locat

1条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-16 10:14

    Firstly make sure you follow the README.txt instructions for running ServiceStack in ASP.NET MVC. ServiceStack automatically infers the handler path based on the tag, if there's more than one or it has some other issue inferring, it can be explicitly set in Config.ServiceStackHandlerFactoryPath, e.g:

    SetConfig(new EndpointHostConfig { 
        ServiceStackHandlerFactoryPath = "api",
    });
    

    0 讨论(0)
提交回复
热议问题