注册自定义模块在IIS 7中自定义、模块、IIS

2023-09-06 14:18:18 作者:仙女味的小可耐

我已经为IIS,我要运行一些测试自定义模块。我创建的Inetpub / wwwroot文件称为演示里面一个新的目录,并增加了一个名为MDemo新的网站。我说我的DLL的/ bin文件夹。该目录现在包含2个文件:Default.aspx的和斌/ MYDLL

I've created a custom module for IIS that I want to run some tests on. I created a new directory inside inetpub/wwwroot called demo and added a new site called MDemo. I added me DLL to the /bin folder. This directory now contains 2 files: default.aspx and bin/mydll.

我到模块上的网站,并试图添加托管模块。我的模块没有出现在列表中。我试着将它添加到GAC,但我无法弄清楚如何。我尝试使用,但的Mscorcfg.msc .NET框架配置作为选装不出来。

I went to Modules on the site and tried to "Add Managed Module". My module is not showing up in the list. I tried to add it to the GAC but I can't figure out how. I attempted to use Mscorcfg.msc but .NET Framework Configuration does not show up as an option.

我如何能得到这个DLL显示在列表中,并添加作为一个管理模块?

How can I get this DLL to show up in the list and add as a managed module?

推荐答案

术语管理模块的意思,它是在GAC。您可以通过使用GACUTIL或在Visual Studio中创建一个安装项目(在其他项目类型)获得的dll到GAC。 请参阅http://blogs.iis.net/carlosag/archive/2008/11/10/creating-a-setup-project-for-iis-extensions-using-visual-studio-2008.aspx

The term "Managed Module" means that it is in the GAC. You can get the dll into the GAC by using GacUtil or by creating a "Setup Project" (under "Other Project Types") in Visual Studio. See http://blogs.iis.net/carlosag/archive/2008/11/10/creating-a-setup-project-for-iis-extensions-using-visual-studio-2008.aspx