Hosting a WCF Web API app on AppHarbor?

大憨熊 提交于 2019-11-29 19:51:20

问题


I've implemented a sample app like the one here. It is a really basic app just to get things started. Everything works fine in IIS on my local machine, I've got it running on my IIS Express as well, but now come the tricky part. I do want to host this on AppHarbor, but I get 404 error. I've started a discussion on the support forum of AppHarbor, and they have taken a screen shot of the error when they run it.

It seems like it is something wrong with the routing since the StaticFile handler is used, but I'm just guessing. Does anyone have any suggestions?


回答1:


Try and add

<system.webServer>
     <modules runAllManagedModulesForAllRequests="true" />
</system.webServer>

to your web.config



来源:https://stackoverflow.com/questions/6186090/hosting-a-wcf-web-api-app-on-appharbor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!