Solution to IIS not having ASP.NET tab

Reason 1:

1. If only .net framework 1.1 is installed, that tab will not be displayed in iis. Asp.net1.1 is supported by default. After installing .net framework 2.0, there will be asp.net option in iis site properties.

2. After installing asp.net2.0, please close the iis window and reopen iis. Only option 

3 of asp.net will appear in the iis site properties. If not, then you need to re-register asp.net in IIS. Method As follows: 
(1) Open the command window. (Click Start, Run, type cmd, and then click OK.) 
(2) Browse to the directory of the version of Aspnet_regiis.exe you want to use (remember, each version of the .NET Framework has its own version of Aspnet_regiis.exe). This file is usually located in the following directory: systemroot\Microsoft.NET\Framework\versionNumber
Enter the following code, press Enter, and wait for the installation to complete. 
For example: C:\Windows\\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i 
For example: C:\Windows\\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i

Solution 1:

Reinstall Framework2.0

Reason 2:

1: Stop the IIS Admin Service in the service (it will also prompt whether to stop the corresponding other services, stop these services)
2: Open the file "C:\WINDOWS\system32\inetsrv\MetaBase.xml" and 
delete Enable32BitAppOnWin64='TRUE' Save the file after this sentence.
3: After restarting the IIS Admin Service and IIS, you can see the ASP.net Tab

Note: MetaBase.xml may be modified without permission. To add permissions manually

 

=============================================================

When I opened IIS these two days, I found that the ASP.NET tab was missing. I began to think that re-registering asp.net would be enough, so I ran aspnet_regiis.exe -i under 1.1 and 2.0. But it had no effect. Suddenly, I remembered that I had backed up IIS's MetaBase. After deleting this data or calling the IIS script adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 "false", the ASP.NET tab finally appears.
        Literally understood, the meaning of this sentence should be to support 32-bit applications on win64-bit operating systems. Take a note for now and see if Microsoft has anything to say.
 
 
====================================================
Enable 32-bit program support on IIS on 64-bit Windows   
 

经常碰到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 (seethis 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%\inetpub\adminscripts\adsutil.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.NET\Framework\v2.0.50727\aspnet_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:

iisrestart

 

简单来说,就是PHP是32位的,而IIS是64位的,不兼容,为了兼容,只能修改IIS,将其降为32位兼容方式运行,下降的方法是

1.进入%systemdrive%\Inetpub\AdminScripts目录下
2.执行命令

cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 "true"
或者
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 1

3.执行命令iisreset

Guess you like

Origin blog.csdn.net/u014156887/article/details/38727985