64位Windows IIS开启32位程序支持

发布时间:2019-12-28编辑:脚本学堂
本文介绍了在64位的windows系统上,如何开启iis 32位程序支持的方法,有需要的朋友参考下。

经常碰到32位的DLL什么的不能在64位Windows的IIS上调用,思路就是先允许IIS支持32位程序,然后再用.Net Framework注册IIS。

操作方法:
Enable 32-bit Server Applications on 64-bit Machines

ASP.NET applications that use TX Text Control .NET Server must be compiled for 32-bit platforms (see this article). IIS must be configured to execute these 32-bit applications. Generally, all applications will be executed in 64-bit mode.

1. Enable IIS's 32-bit support

Open a command prompt and type in the following command:

cscript %SYSTEMDRIVE%inetpubadminscriptsadsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1

This command enables the 32-bit mode in IIS.

2. Install the IIS 32-bit extensions

Open a command prompt and type the following command:

%SYSTEMROOT%Microsoft.NETFrameworkv2.0.50727aspnet_regiis.exe -i

This command installs the 32-bit web extensions for .NET Framework 2.0.

3. Activate .NET Framework 2.0 32-bit in IIS

In the IIS-Manager, select the 'ASP.NET v2.0.50727 (32bit)' in the 'Web Service Extensions' panel and check 'allow' to activate it.

4. Restart the IIS by opening a command prompt: