将 HTTPModule 安装到 GAC 中

发布于 2024-09-04 07:21:13 字数 330 浏览 5 评论 0原文

在使用 Sharepoint 和 WCF 时,我遇到了一篇文章 - Sharepoint 2007 和 WCF 作者在其中指出需要修复虚拟路径提供程序。他通过 HTTPModule 实现了这一点。然而,由于这是一个全局修复,我想知道将新模块安装到 GAC 中的最佳方法是什么?这与将程序集安装到 GAC 中的过程相同吗?

谢谢!

While playing around with Sharepoint and WCF, I came across an article - Sharepoint 2007 and WCF
in which the author stated the need to fix the Virtual Path Provider. He accomplished this with an HTTPModule. However, since this is a global fix, I am wondering what is the best way to install the new module into GAC? Is this the same process as installing an assembly into GAC?

Thanks!

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

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

发布评论

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

评论(1

梅窗月明清似水 2024-09-11 07:21:13

您可以向任何特定的 Web 应用程序注册 HTTPModule。因此,当您需要将 wcf 服务部署到 sharepoint 2007 时,您需要将 http 模块 dll 部署到 gac,然后在 sharepoint Web 应用程序的 web.config 中注册 http 模块(在 web.config 中会有一个 httpmodule 部分)。配置)

这本质上意味着 httpmodule 现在仅在特定的 Web 应用程序中注册,而不是全局注册(尽管 dll 是全局部署的)

希望这会有所帮助。

You can register HTTPModule with any specific web application. So when you need to deploy wcf service to sharepoint 2007, you will need to deploy the http module dll to gac and then register the http module in the web.config of the sharepoint web application( there will be a httpmodule section in the web.config)

This essentially means that the httpmodule is now registered only with the particular webapplication and not globally(though the dll is deployed globally)

Hope this helps.

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