IIS遇到过的问题

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
复制代码

 

posted on   白马酒凉  阅读(117)  评论(0编辑  收藏  举报

编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示