IIS遇到过的问题
阅读原文时间:2023年07月13日阅读:1

1. IIS的一个莫名错误Server Application Unavailable

http://www.kesion.com/zzcd/asp/aspjq/474.html

新打开这个服务ASP.net state Service后,IIS就正常了。

2.Web Site指定不同的FrameWork版本
aspnet_regiis /s W3SVC/1/ROOT/Test_App” under “C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319

unser c:\windows\system32
iiscnfg /export /f C:\My Folder\test.xml /sp /LM/W3SVC/1/Root/test
iiscnfg /import /f D:\test.xml /sp /LM/W3SVC/1/Root/test /dp /LM/W3SVC/1/Root/test
C:\WINDOWS\system32\inetsrv\cpwd01_cfg.xml

->at char 25 Description: Expected end statement Code: 800A0401

cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 “true”
=>
cscript.exe adsutil.vbs set W3SVC/AppPools/Enable32BitAppOnWin64 1

->cscript is not a valid Win32 application Windows Server 2003
C:\WINDOWS\system32\cscript.exe adsutil.vbs get W3SVC/AppPools/Enable32BitAppOnWin64
C:\WINDOWS\SysWOW64\cscript.exe adsutil.vbs get W3SVC/AppPools/Enable32BitAppOnWin64

1.under "C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319
aspnet_regiis /s W3SVC/1/ROOT/test"

2.How to Enable 32-Bit Applications in IIS 6

1) Click the Windows "Start" button and select "Command Prompt."

2) Type the following command and press the "Enter" key:

cd c:\Inetpub\AdminScripts

If IIS 6 resides on a drive other than the default C drive, substitute "c:\" with the letter of that drive (e.g, "d:\").

3) Type the following command and press the "Enter" key:

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

cscript.exe adsutil.vbs get W3SVC/AppPools/Enable32BitAppOnWin64

Read more : http://www.ehow.com/how_6918900_enable-32_bit-applications-iis-6.html

3.如果改成true后網頁出現500或者404錯誤,則按照下列步驟用回32位的framework
cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
aspnet_regiis /s W3SVC/1/ROOT/test
cd C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis /s W3SVC/1/ROOT/test

Properties -> Directory -> Configuration -> Add c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll
不要tick "Verify that file exists"
c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器