Get the App
SLTechnology News&Howtos  ›  Servers  › 

IIS7 and iis7.5 let ISAPI extend the method of DLL execution

Shulou Source: shulou.com Published: 2022-06-02 03:16:37 10月04日 Update

Configure to run the ISAPI file (.dll file) under IIS7.0/7.5

First, put dll into the corresponding directory of the website, then click on the website to switch to the function view, then double-click the handler mapping under IIS, and then right-click ISAPI-dll- "Edit function permissions, select execute. Please refer to the following for details

Perform the following two steps:

1. Open the ISAPI execution permission of IIS:

Double-click the Handler Mapping function, then click Edit function permissions, and select execute in the editing window that appears:

2. Navigate to the c:\ windows\ system32\ inetsrv\ directory (be sure to navigate to this directory, otherwise you can't run the command appcmd using an absolute path in any other directory, as is my machine)

Execute the following command:

Appcmd.exe set config / section:isapiCgiRestriction / + "[path='E:\ work\ AnyCom\ Exe\ AnyServer.dll',description='AnyServer ISAPI',allowed='True']"

Path and description should be modified according to the actual file and description information.

You can use the following command to see if the addition is successful:

Appcmd list config / section:isapiCgiRestriction

You can delete it using the following command:

Appcmd.exe set config / section:isapiCgiRestriction /-"[path='E:\ work\ AnyCom\ Exe\ AnyServer.dll',description='AnyServer ISAPI',allowed='True']"

There is only one difference between this command and the additional command: + becomes -, and it should be noted that path and description must be strictly equal, with spaces before and after.

Tags: Commands functions directories files permissions programs websites processing navigation running success two information only actual differences machines steps spaces views Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Redmi NVidia Xiaomi Docker