How can one add executable extension into IIS application Conf mapping programmatically

I tried using WebSvcExtRestrictionList, however the list contains no data. Any idea My target is to add a php5isapi.dll into application configuration mapping of IIS4 server with a extension of ".php".

C#:

DirectoryEntry site = new DirectoryEntry("IIS://localhost/W3SVC");

PropertyValueCollection ext = site.Properties["WebSvcExtRestrictionList"];

 

-XZ



Answer this question

How can one add executable extension into IIS application Conf mapping programmatically