在 AppHarbor 上的 MVC3 内运行 WCF WebAPI Prev 6,404 错误
今晚我试图在 AppHarbor 上构建一个快速的 WCF WebAPI 项目,但遇到了一些问题。 WCF API 位于一个空的 MVC3 项目中,就像 WCF CodePlex 站点上的演示一样。 https://github.com/jptoto/Postmark-Response-Code-Generator API 本身非常基本,当您在 url 末尾键入 http 响应错误代码时,响应将是正确的错误代码。因此,例如,使用 http://responsecodes.appharbor.com/api/response/405 将为 405 错误返回正确的错误响应。 (此 API 只是测试正确错误响应的便捷方法)。
无论如何,无论我尝试什么,我都会从 AH 收到 404 错误。我不知道路由是否不起作用。当我从 AH 下载构建的代码并在 IIS 中本地运行它时,它运行良好,没有问题。
如果 AH 只是不支持 WebAPI 预览版 6 中的某种路由,那也没关系。我只想覆盖我所有的基础。谢谢!!
I was trying to throw a quick WCF WebAPI project together up on AppHarbor tonight and ran into some issues. The WCF API is couched inside an empty MVC3 project just like is demo'd on the WCF CodePlex site. https://github.com/jptoto/Postmark-Response-Code-Generator The API itself is quite basic, when you type an http response error code on the end of the url the response will be the proper error code. So, for example, using http://responsecodes.appharbor.com/api/response/405 in Fiddler or some other http client will return the proper error response for a 405 error. (This API is just a convenient way to test with proper error responses).
Anyway, no matter what I try I get 404 errors from AH. I can't tell if the routing isn't working on what. When I download the built code from AH and run it locally inside IIS it runs fine, no problem.
If AH just doesn't support some kind of routing that is in WebAPI Preview 6 that's fine. I just want to cover all my bases. Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您似乎使用了错误的 URL,并且您的应用程序在此处运行:http://responsecodes。 apphb.com/api/response/406
(
apphb
而不是appharbor
)It seems that you are using the wrong URL and that your app is running here: http://responsecodes.apphb.com/api/response/406
(
apphb
instead ofappharbor
)