安裝IIS時出現下面的錯誤訊息,大致上推測原因及發生的機器大部分可能為公司機器再使用者群組上有一些資安的設定

Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance


解決方案 :

1.

點選我的電腦-右鍵→管理→本地用戶和組,給IUSR_機器名和IWAM_機器名兩個用戶設置密碼,須一樣。

2.

開始→執行→輸入cmd,
然後cd C:\Inetpub\AdminScripts
然後cscript.exe adsutil.vbs set w3svc/wamuserpass 你的密碼,
然後cscript.exe adsutil.vbs set w3svc/anonymoususerpass 你的密碼

cscript.exe synciwam.vbs -v
然後iisreset。

如果不行在執行下面的步驟

1.cd %windir%\system32\inetsrv 

2.rundll32 wamreg.dll, CreateIISPackage 

3.regsvr32 asptxn.dll

4.重開機

備註:Windows 有很多狀況是修改完某個狀態時可能請你先重開機確認是否修復。

arrow
arrow
    全站熱搜

    andyyu0920 發表在 痞客邦 留言(0) 人氣()