인증을 위해 Webmatrix를 사용하는 ASP.Net MVC 4 응용 프로그램에서 작업하고 있습니다. 나는 내 web.config 파일"SQLServer"모드로 설정된 URL의 세션 ID
<sessionState mode="SQLServer" cookieless="true" allowCustomSqlDatabase="true"
sqlConnectionString="Data Source=server;Initial Catalog=ASPState;Persist
Security Info=True;User ID=user;Password=password"
timeout="2880" sqlCommandTimeout="10" />
나는 ASPState 데이터베이스가 채워지 볼 수에 다음과 같은,하지만 난 여전히 URL에서 세션 ID를 얻고있다. Chrome을 통해 액세스하려고하면 많은 리디렉션에 오류가 발생합니다. 내가 어떤을하지 않은
Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.
: 나는 IE를 통해 액세스 할 때 그것은 (세션 ID가 URL에 불구하고)하지만 오류가 나는 다음과 같은 오류에 로그온 할 때 내가 리디렉션을 볼 경우에도 작동 Webmatrix에 대한 사용자 정의는 모두 기본값입니다. web.config
파일에 URL을 유지하고 DB를 사용하려면 세션 ID가 필요합니다.
이 메시지는 직렬화 할 수없는 세션 클래스에 추가를 시도한다고 말합니다. 예를 들어 사전 <>은 세션이나 [직렬화]를 사용하지 않는 클래스가있는 다른 목록에 저장할 수 없습니다. 예어. – Aristos