VS.Net2005 C#發布網站時為什么用StateServer報錯?
在本機調試時,Web.Config中設置如下:
<compilation debug="true">
<sessionState mode="InProc"
而發布時,如下:
<compilation debug="false">
<sessionState mode="StateServer"
以前發布都時這樣,今天換服務器了,重新發布卻出錯了,ASP.Net State Server啟動了,檢查“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\aspnet_state\Parameters\AllowRemoteConnection”的值也為“1”
將mode="StateServer" 改為:“InProc”就可以了
請問為什么?發布時用InProc不好,Session容易丟失的,如何做?謝謝!