如何在基于N2的ASP.NET MVC站点中集成YAF?

发布于 2024-09-16 02:28:11 字数 714 浏览 5 评论 0原文

我正在构建一个基于 N2 的 ASP.NET MVC 站点,它是更大的 Windows Azure 解决方案的一部分。我遇到的问题是集成在我的项目 N2 自己的 forum add-on< /a>,基本上就是 YAF(又一个论坛)。

在过去的几天里,我一直在与论坛进行斗争,并在重新编译附加组件以删除对N2.Templates.dll 的依赖并遵循 N2.Templates.dll 中的所有步骤之后>Installation.txt 文件(附加组件文档的一部分) 我遇到了论坛未显示的问题。当我导航到论坛时,出现“403.14 - 禁止访问”错误。

据我所知,问题似乎在于该论坛基于 WebForms,而包含的应用程序是基于 MVC 的。该站点是 Windows Azure 解决方案的一部分,我读到的一些内容表明本地 IIS 可能未正确配置。但是,右键单击 Forum.aspx 页面并选择“在浏览器中查看”可以正常显示该页面,包括从 YAF 安装向导导航到后续页面。在本地 IIS 上运行纯 WebForms 应用程序也没有问题,因此我认为 IIS 不是 YAF 未显示的原因。

如果有人有任何解决此问题的想法,或者在 MVC 站点中完成了类似的 YAF 集成,请告诉我。

谢谢!

I'm building an N2-based ASP.NET MVC site, which is part of a larger Windows Azure solution. The problem I am stuck with is integrating in my project N2's own forum add-on, which is basically YAF (Yet Another Forum).

I've been wrestling with the forum for the last couple of days and after re-compiling the add-on to remove the dependency on N2.Templates.dll and following all of the steps in the Installation.txt file (part of the documentation of the add-on) I'm stuck with the forum not showing up. When I navigate to the forum I get a "403.14 - Forbidden" error.

From what I could find out it seems the problem is in the fact that the forum is based on WebForms and the containing application is MVC-based. The site is part of a Windows Azure solution and some of the things I read suggest the local IIS may not be correctly configured. However, right-clicking on the Forum.aspx page and selecting "View in browser" shows the page just fine, including navigating to subsequent pages from the YAF installation wizard. Running pure WebForms apps on the local IIS also goes without problems, so I think IIS is not the cause for YAF not showing up.

Please, if someone has any idea for solving this problem, or has done similar integration of YAF in an MVC site, let me know.

Thanks!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文