Iis 7 IIS7将web.config从经典版迁移到集成版

Iis 7 IIS7将web.config从经典版迁移到集成版,iis-7,module,iis-6,httpmodule,Iis 7,Module,Iis 6,Httpmodule,我有一个Web服务,它定义了一个定制的httpmodule。我试图在运行IIS7的生产服务器上启动此Web服务,但只能使其在经典模式下运行 我试过移动这个部分 <system.web> <httpModules> <add name="BasicAuthenticationModule" type="MyProject.UserAuthenticator.UserNameAuthenticator" /> </httpModules> ...

我有一个Web服务,它定义了一个定制的httpmodule。我试图在运行IIS7的生产服务器上启动此Web服务,但只能使其在经典模式下运行

我试过移动这个部分

 <system.web>
<httpModules>
  <add name="BasicAuthenticationModule" type="MyProject.UserAuthenticator.UserNameAuthenticator" />
</httpModules>
...
我还尝试使用以下DOS命令自动迁移:

  appcmd migrate config "mysite/"
并将此消息返回:

  The module BasicAuthenticationModule with type "mytype" is already present in the application with a different type"", and was not migrated
我不是IIS专家,因此任何见解都值得赞赏


因此,经过一点研究,似乎已经有了一个名为BasicAuthenticationModule的本机模块。我可以通过重命名模块“BasicCustomAuthenticationModule”来消除问题。这是正确的方法还是应该删除另一个

谢谢!
AFrieze

他们的基本身份验证模块名称存在冲突。解决方案是重命名模块

<httpModules>
  <add name="BasicCustomAuthenticationModule" type="MyProject.UserAuthenticator.UserNameAuthenticator" />
</httpModules>


    <system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
  <add name="BasicCustomAuthenticationModule" type="MyProject.UserAuthenticator.UserNameAuthenticator" />
</modules>

  The module BasicAuthenticationModule with type "mytype" is already present in the application with a different type"", and was not migrated
<httpModules>
  <add name="BasicCustomAuthenticationModule" type="MyProject.UserAuthenticator.UserNameAuthenticator" />
</httpModules>


    <system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">
  <add name="BasicCustomAuthenticationModule" type="MyProject.UserAuthenticator.UserNameAuthenticator" />
</modules>