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

标签 asp.net iis httpmodule

我创建了一个 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/

相关文章:

asp.net - 如何使用 ASP.NET MVC 增加 AJAX JSON 响应的 2MB 限制

javascript - document.getElementById ("<%= errorIcon.ClientID %>");给出 null

iis - 无法读取配置文件 ' trying to read configuration data from file '\\?\<EMPTY >', line number ' 0'

c# - MVC 4 - JSON ajax 操作结果的 GZIP 压缩

iis - dotnet 发布错误 : The process cannot access the file because it is being used by another process

c# - 在 Asp.Net 4.0 中部署 HttpModule 时出现问题

asp.net - ASP.net 的虚拟 ListView ?

c# - 如何从网页中获取数据?

c# - 使用 HttpModule 进行异常处理

asp.net - 注册到同一个 EventHandler 时一对 httpModule 的执行顺序