2013-10-16 2 views
10

State Server 세션을 사용하려고합니다. 세션 상태 서버에 세션 상태 요청을 할 수 없습니까?

<sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="20" /> 

는 로컬 호스트에서 내 웹 사이트를 실행하고 모든 것이 잘 작동 :

나는 다음에 내 세션 상태를 변경했습니다.

하지만 난 내 웹 사이트를 게시하고 온라인 나는 다음과 같은 오류가 그것을 실행하려고하면

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.

웹 사이트는 내가 그것을 ASP.NET하기 때문에 될 수있는 오류를 resarching 후, Afrihost 서버에서 호스팅되는 주 서비스가 시작되지 않았습니다. Afrihost 서버가이 서비스를 실행하고 있거나 원격으로 시작하는지 확인할 수있는 방법이 있습니까?

또한 IP 주소 127.0.0.1은 로컬 호스트 용이지만 웹 서버에 응용 프로그램을 게시하기 때문에 해당 컴퓨터에 로컬이됩니다.

+0

서버에서 RDP 연결을 설정할 수 있습니까? 그렇다면 서비스가 제대로 시작되었는지 (services.msc에서) 제대로 시작되지 않았는지 확인하십시오. Windows 이벤트 로그를 확인하십시오. – CharlesAD

+0

@CharlesAD Afrihost가 가장 많이 호스팅하는 서버로 RDP 연결을 허용하지 않는다고 생각합니다. 남아 프리카 공화국을위한 웹 사이트. – Pomster

답변

23

오류 메시지는 ASP.NET 상태 서비스가 실행 중이 아님을 나타냅니다.

연결 문자열은 항상 stateConnectionString="tcpip=127.0.0.1:42424"이어야합니다. 사이트가 호스팅되는 곳은 로컬 컴퓨터입니다.

Afrihost에 연락하여 서비스를 다시 시작한 후 모든 것이 잘 돌아 가기 시작했습니다.

enter image description here

+2

네, 그게 정답입니다. 위의 제안을 따르십시오. :) –

+0

또한 시작 유형을 자동으로 설정해야 서버를 다시 시작할 때마다 변경하지 않아도됩니다. – Pomster

+0

나는 똑같은 오류가있어서 서비스를 시작할 수 없다. –