在AppHarbor上托管WCF Web API应用程序? [英] Hosting a WCF Web API app on AppHarbor?

查看:185
本文介绍了在AppHarbor上托管WCF Web API应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了一个示例应用程序,例如这里。这是一个非常基本的应用程序,只是为了开始。在我的本地机器上的IIS中一切正常,我已经在我的IIS Express上运行它,但现在变得棘手了。我想在 AppHarbor 上举办此活动,但收到404错误。我已经开始讨论在AppHarbor的支持论坛上,他们在运行时拍摄了错误的屏幕截图。

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.

好像它出了问题自使用StaticFile处理程序以来的路由,但我只是在猜测。有没有人有任何建议?

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?

推荐答案

尝试添加

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

到你的web.config

to your web.config

这篇关于在AppHarbor上托管WCF Web API应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆