gpt4 book ai didi

asp.net - IIS模块dll文件放在哪里?

转载 作者:行者123 更新时间:2023-12-05 07:48:21 27 4
gpt4 key购买 nike

我创建了一个 IIS 模块,其中包含一个实现 IHttpModule 的类。在我的本地主机中,我只是将其 dll 复制到测试 Web 应用程序项目的 bin 文件夹中,然后将模块添加到 web.config 中。

<modules runAllManagedModulesForAllRequests="true">
<remove name="AppendOutput" />
<add name="AppendOutput" type="AppendOutput.AppendOutputModule" />
</modules>

现在我需要将 dll 部署到我的 IIS 服务器,其他 Web 应用程序也可以在其中使用该模块。放置该 dll 的共享或公共(public)文件夹是什么?我应该如何修改添加模块行以指向正确的路径?

  <add name="AppendOutput" type="AppendOutput.AppendOutputModule" />

我正在阅读 Walkthrough: Creating and Registering a Custom HTTP Module , 但它似乎没有告诉我们如何处理 dll 部署。

关于 Add a Managed Module (IIS 7) 的另一篇科技网文章讲述如何添加托管模块。但是我的类型下拉列表中没有任何内容。

add managed module

最佳答案

你可以用你的dll路径注册一个Native Module(在 IIS 主页上的模块中可用,而不是在站点上可用)

enter image description here

关于asp.net - IIS模块dll文件放在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38767955/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com