Search code examples
c#iis-764-bitisapi

C# allow on IIS7 ISAPI and CGI Restrictions aspnet_isapi.dll x64 bit


Is it possible from C# code manipulate IIS7 ISAPI and CGI Restrictions?

The goal is, if on x64 bit machine, check if Framework64/aspnet_isapi.dll allowed, and if not to allow it.

Also, alternatives suggestions will be kindly accepted :)


Solution

  • Microsoft.Web.Administration Namespace should contain all the classes you need to modify the iis7 metabase. Here's the MSDN link with all the reference

    http://msdn.microsoft.com/en-us/library/microsoft.web.administration%28VS.90%29.aspx

    Hope this helps