最近在部署一個網站,該電腦OS是 windows server 2012R2
IIS版本則是6.0
部署後預覽頁面,有看到我的登入畫面,但是登入後就跑出這個問題
按F12則只顯示 Failed to load resource: the server responded with a status of
500 這樣的問題,請問我該如何處理這類的問題呢?
先前有問題時都會出現在我的LOG紀錄裡,只有這個沒有@@
如果是部屬ASP.NET的網站
請啟用Debug
這樣才會知道發生什麼原因
https://docs.microsoft.com/zh-tw/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2019
感謝
找到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)
原來是服務沒開@@