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

查看:21
本文介绍了在 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天全站免登陆