尝试使 Weborb .NET 与 ASP.NET MVC 一起工作

发布于 2024-08-03 11:08:56 字数 424 浏览 1 评论 0原文

我们已经在现有应用程序上使用 weborb for .net 一段时间了,而且效果非常好。我们决定在 ASP.NET MVC 中重写我们的应用程序,现在我需要使 weborb 与 mvc 一起工作。我在尝试连接到 weborb.aspx 页面时收到 404 找不到资源错误。我已将所有适当的条目添加到 web.config 文件中,我什至发现这篇文章解释了如何使两者一起工作

http://aspzone.com/tech/how-to-get-weborb-and-asp-net-mvc-to -work-together/

但无济于事。我无法让它发挥作用。谢谢。

We have been using weborb for .net on an existing application for some time now and it has worked very well. We decided to rewrite our application in ASP.NET MVC and now I need to make weborb work with mvc. I have been getting a 404 the resource cannot be found error while trying to connect to the weborb.aspx page. I have added all of the appropriate entries to the web.config file and I even found this article explaining how to make the two work together

http://aspzone.com/tech/how-to-get-weborb-and-asp-net-mvc-to-work-together/

But to no avail. I can't make it work. Thanks.

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

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

发布评论

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

评论(2

哭泣的笑容 2024-08-10 11:08:56

如果给出 404,则表示没有此类资源。最有可能的是,MVC 尝试路由请求但找不到合适的请求。

尝试在路由注册的开头添加忽略路由。像这样的事情:

routes.IgnoreRoute("weborb.aspx/{*pathInfo}");

If 404 is given then there is no such resource. Most likely the MVC tries to route the request and cannot find appropriate one.

Try to add ignore route in the beginning of routes registration. Something like this:

routes.IgnoreRoute("weborb.aspx/{*pathInfo}");
绝對不後悔。 2024-08-10 11:08:56

我的问题是我将项目错误地设置为网站而不是 mvc 应用程序。一旦我这样做了,路线解释了我引用的博客文章就发挥了作用。

My problem was that I had the project set up incorrectly as a website and not an mvc application. Once I did that the route explained the blog post I referenced worked like a charm.

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