[ASP.NET State service] error
When you login the system ,it will show error as
below:
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_MACHINESYSTEMCurrentControlSetServicesaspnet_stateParametersAllowRemoteConnection.
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.
[@more@]Description: An unhandled exception
occurred during the execution of the current web request. Please review the
stack trace for more information about the error and where it originated in the
code.
Exception Details: System.Web.HttpException:
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_MACHINESYSTEMCurrentControlSetServicesaspnet_stateParametersAllowRemoteConnection.
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.
Source Error:
|
Cause:
web.config中配置SessionState的mode為StateServer,但伺服器沒有開啟改個服務。
Solution:
1. 在服務中啟用"ASP.NET
State service" ;
2. 如果啟用"ASP.NET
State service" 出現問題,可以將Web.Config裡面
把sessionState 的mode改為"InProc" ;
mode設定將Session資訊儲存到哪裡
Off 設定為不使用Session功能
InProc 設定為將Session儲存在程式內,就是ASP中的儲存方式,這是預設值。
StateServer 設定為將Session儲存在獨立的狀態服務中。
SQLServer 設定將Session儲存在SQL Server中。
Reference:
http://hi.baidu.com/tgszsh/blog/item/c3228fcecb038a0e93457e8d.html
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12472709/viewspace-1036190/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Error: 9002, Severity: 17, State: 6Error
- Error: 17803, Severity: 20, State: 12Error
- ASP.NET MVC ErrorASP.NETMVCError
- 如何使用 Angular 伺服器端渲染的 Transfer State ServiceAngular伺服器
- ORA-32700: error occurred in DIAG Group ServiceError
- SP2-0642: SQL*Plus internal error state 2165SQLError
- Error: 17803, Severity: 20, State: 7 Insufficient memory availableErrorAI
- Error:Unknow host 'service.gradle.org'ErrorGradle
- Service.cpp:10:28: error: within this contextErrorContext
- ORA-29702: error occurred in Cluster Group Service operationError
- ORA-29278: SMTP transient error: 421 Service not availableErrorAI
- The SQL Server (MSSQLSERVER) service terminated with service-specific error 1814 (0x716).SQLServerError
- ?WARNING: ASM communication error: op 0 state 0x0 (15055)ASMError
- ASP.NET MVC got 405 error on HTTP DELETE requestASP.NETMVCGoErrorHTTPdelete
- Fatal Error: TXK Install Service,Cannot install Oracle Database HomeErrorOracleDatabase
- Spring quartz 叢集模式下trigger_state error問題原因Springquartz模式Error
- 【asp.net core 系列】- 11 Service層的實現樣板ASP.NET
- asp.net web api 2 host in a windows service推薦閱讀ASP.NETWebAPIWindows
- WCF The service cannot be activated because it does not support ASP.NET compatibilityASP.NET
- SP2-0642: SQL*Plus internal error state 2130, context 0:0:0SQLErrorContext
- 在Salesforce中向外公佈Service去建立Lead,並且用Asp.Net去呼叫此ServiceSalesforceASP.NET
- ORA-29702:error occurred in Cluster Group Service operation錯誤解決Error
- Job for mysqld.service failed because the control process exited with error code...MySqlAIError
- ASP.NET MVC提交一個較複雜物件至WCF ServiceASP.NETMVC物件
- 解決錯誤:ASP.NET Error: Failed to access IIS metabaseASP.NETErrorAI
- RuntimeError: Error(s) in loading state_dict for SSD: Missing key(s) in解決辦法Error
- [Error Code: 904, SQL State: 42000] ORA-00904 : 識別符號無效ErrorSQL符號
- Vuex之stateVue
- Working with State
- SP2-0642: SQL*Plus internal error state 2130, context 0:0:0 Unsafe to proceedSQLErrorContext
- Failed to open service <OracleOraDb10g_home1TNSListener>, error 1060AIOracleError
- Could Not Save Service Alias: TNS-04415 : File I/O Error [ID 798206.1]Error
- ReactState(狀態):React通過this.state來訪問state,通過this.setState()方法來更新stateReact
- 元件、Prop 和 State元件
- react 之 state 物件React物件
- 狀態模式(State)模式
- State Server 設定Server
- mysql show processlist stateMySql