查看完整版本: IIS 7.0 設定顯示詳細錯誤訊息 (HTTP 500 - 內部伺服器錯誤)


htctouch 2013-3-27 18:09

IIS 7.0 設定顯示詳細錯誤訊息 (HTTP 500 - 內部伺服器錯誤)

最近在玩Windows 2008 Server, 裝的 IIS 都是新的版本 (7.0),<br>安裝好之後, 程式出錯, 只會顯示: HTTP 500 - 內部伺服器錯誤 <br><br>設了半天, 都看不到程式的錯誤在那一行, 及詳細的錯誤訊息. 原來是要在:<br><br><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 24pt; TEXT-INDENT: -24pt; mso-list: l0 level1 lfo1"><span lang="EN-US">1.<span style="font-size: 7pt; font-family: 'Times New Roman';">&nbsp; </span></span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">應用程式集區</span><span lang="EN-US">=&gt;DefaultAppPool=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">進階設定</span><span lang="EN-US">=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一般</span><span lang="EN-US">=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">啟用</span><span lang="EN-US">32</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">位元應用程式</span><span lang="EN-US">=&gt;trur</span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 24pt; TEXT-INDENT: -24pt; mso-list: l0 level1 lfo1"><span lang="EN-US">2.<span style="font-size: 7pt; font-family: 'Times New Roman';">&nbsp;&nbsp;</span></span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">站台</span><span lang="EN-US">=&gt;ASP=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">啟用上層路徑</span><span lang="EN-US">, </span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">將錯誤傳送到瀏覽器</span><span lang="EN-US">, </span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">啟用伺服器端偵錯</span><span lang="EN-US">, </span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">啟用用戶端偵錯</span><span lang="EN-US">=&gt;TRUE</span></p><p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt 24pt; TEXT-INDENT: -24pt; mso-list: l0 level1 lfo1"><span lang="EN-US">3.<span style="font-size: 7pt; font-family: 'Times New Roman';">&nbsp;&nbsp;</span></span><span lang="EN-US">IE=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">網際網路選項</span><span lang="EN-US">=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">進階</span><span lang="EN-US">=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">設定值</span><span lang="EN-US">=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">顯示好記的</span><span lang="EN-US">HTTP</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">錯誤訊息</span><span lang="EN-US">=&gt;</span><span style="FONT-FAMILY: '新細明體','serif'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">未勾選</span></p>4. IIS 的 站台<br> - 錯誤網頁(要點兩下進去)<br> - 編輯功能設定(在右邊動作區塊)<br> - 請選擇"詳細錯誤"(無論本機遠端都顯示錯誤, 預設是是本機顯示錯誤,遠端不顯示錯誤)<br><div><br></div><div><br></div>

guccinan 2013-4-21 14:38

受益無窮
頁: [1]
查看完整版本: IIS 7.0 設定顯示詳細錯誤訊息 (HTTP 500 - 內部伺服器錯誤)