如何让我的 ASP.NET Web 应用程序与 AppHarbor 配合使用?

发布于 2024-12-28 05:24:35 字数 498 浏览 3 评论 0原文

我一直在开发一个 Web 应用程序,在 Visual Studio 2010 中使用带有 C# 的 ASP.NET Web 应用程序,并且刚刚开始并尝试将其部署到 AppHarbor。我可以将我的项目推送到 AppHarbor,没有任何错误,但是当我尝试使用 URL 访问我的 Web 应用程序时,我收到错误:

HTTP 404。您正在查找的资源(或其依赖项之一) ) 可能已被删除、更名或暂时不可用。请检查以下 URL 并确保其拼写正确。

当我通过 Visual Studio 2010 运行我的应用程序时,它工作得很好,而且我之前已经使用 ASP.NET MVC 成功地让应用程序与 appHarbor 一起使用4 网络应用程序。我猜想我的代码中有问题,例如 webconfig 文件中的问题,但我不知道是什么问题。我已经搜索了很长一段时间,试图找出我做错了什么的线索,但对于我的具体问题来说似乎毫无希望。

要使 Web 应用程序与 appHarbor 一起运行,您是否需要做一些特定的事情,或者我做错了什么?

I've been working on a web application, using ASP.NET Web Application with C# in Visual Studio 2010, and have just started and am trying to deploy it to AppHarbor. I can push my project to AppHarbor just fine and with no errors, but when I try to access my web application with the URL, I get an error:

HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

When I run my application through Visual Studio 2010 it works just fine, and I have managed to get applications to work with appHarbor before, using ASP.NET MVC 4 Web Application. I would guess that there are something wrong in my code, like in the webconfig file for example, but I cannot figure out what. I've been searching around for a great while, trying to get a clue of what I'm doing wrong, but it seems hopeless for my specific problem.

Is there something specific you have to do to make a web application run with appHarbor, or have I done something wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

始终不够 2025-01-04 05:24:35

您应该仔细阅读 AppHarbor 部署常见问题解答。特别是,我会下载构建输出并验证 AppHarbor 是否部署了您所期望的内容。

You should go through the AppHarbor deploy FAQ. In particular, I would download the build output and verify that AppHarbor deploys what you expect.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文