iT邦幫忙

0

處理您的要求時發生錯誤

  • 分享至 

  • xImage

最近在部署一個網站,該電腦OS是 windows server 2012R2

IIS版本則是6.0

部署後預覽頁面,有看到我的登入畫面,但是登入後就跑出這個問題

按F12則只顯示 Failed to load resource: the server responded with a status of

500 這樣的問題,請問我該如何處理這類的問題呢?

先前有問題時都會出現在我的LOG紀錄裡,只有這個沒有@@

https://ithelp.ithome.com.tw/upload/images/20190715/20110132Iyl9sigWWm.jpg

dragonH iT邦超人 5 級 ‧ 2019-07-15 15:35:33 檢舉
如果沒特別指定的話

500 預設就是 backend 的問題

去翻 backend的 log 吧
fillano iT邦超人 1 級 ‧ 2019-07-15 17:05:59 檢舉
佈署啦...另外,2012是搭配IIS6?不是IIS8.0嗎?
tenno081 iT邦研究生 4 級 ‧ 2019-07-15 17:15:55 檢舉
好像佈署、部署都有
我只有看到IIS6
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
player
iT邦大師 1 級 ‧ 2019-07-15 16:20:22
最佳解答

如果是部屬ASP.NET的網站
請啟用Debug
這樣才會知道發生什麼原因
https://docs.microsoft.com/zh-tw/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2019

tenno081 iT邦研究生 4 級 ‧ 2019-07-16 09:38:50 檢舉

感謝

找到LOG

2019-07-16 09:34:10.7571|Error|webLog@Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same.  If the server is on a remote machine, please ensure that it accepts remote requests by checking the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection.  If the server is on the local machine, and if the before mentioned registry value does not exist or is set to 0, then the state server connection string must use either 'localhost' or '127.0.0.1' as the server name. [Url]http://localhost/HD/Account/Login [StackTrace]   at System.Web.SessionState.OutOfProcSessionStateStore.MakeRequest(StateProtocolVerb verb, String id, StateProtocolExclusive exclusiveAccess, Int32 extraFlags, Int32 timeout, Int32 lockCookie, Byte[] buf, Int32 cb, Int32 networkTimeout, SessionNDMakeRequestResults& results)
   at System.Web.SessionState.OutOfProcSessionStateStore.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem)
   at System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

原來是服務沒開@@

我要發表回答

立即登入回答