lijm1522 发表于 2015-8-15 12:13:54

IIS 7 ISAPI Extensions Debugger

1.ISAPI设置
  添加方式请见http://technet.microsoft.com/en-us/library/cc771240(WS.10).aspx,需要在Handler Mappings将Permissions的Execute打开。
      一开始在HandlerMappings中添加ISAPI的DLL,发现怎么也无法访问。后来发现原来是因为Win2008R2(X64)而DLL是32位的原因。需要设置 IIS支持32位。方法为,打开“Internet Information Services (IIS)Manager”,在Application Pools中选择站点的AppPool,在右侧面板上单击”AdvancedSetting”->”Enable 32-Bit Applications” 设置为True。
2.调试
  使用Visual Studio Attach 到 w3wp 进程,访问DLL却无法进行Debugger,折腾啊折腾,发现和AppPool的.NET Framework设置有关,设置成”No Managed Code”就OK了。
  记录一下免得以后又重新折腾。
  Q1.404.2 The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server
  default IIS 7 does not allow ISAPI and CGI through .Net 1.1 bydefault. So if you are working with older code on IIS7 you will need tofollow these steps to resolve the issue:
  1. Open IIS and click the server name
  2. Double click “ISAPI and CGI Restrictions”
  3. Right click ASP.NET v1.1 and select “allow”
页: [1]
查看完整版本: IIS 7 ISAPI Extensions Debugger