-1

StateServer セッションを使用していますが、すべてのオブジェクトを [Serializable] にしましたが、まだエラーが発生しています。何が問題でしたか?

セッション状態をシリアル化できません。'StateServer' および 'SQLServer' モードでは、ASP.NET はセッション状態オブジェクトをシリアル化するため、シリアル化できないオブジェクトまたは MarshalByRef オブジェクトは許可されません。「カスタム」モードのカスタム セッション状態ストアによって同様のシリアル化が行われる場合、同じ制限が適用されます。

コードは次のとおりです... Response.Redirect("common/TicklerDisplay

Private Sub btnLogin_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLogin.Click
    Try
        SetOffset()
        strUserName = txtEmaillAdd.Text.Trim
        strPassword = txtPassword.Text.Trim



        Dim strSubscriptionLogin() As String = CCommon.ToString(ConfigurationManager.AppSettings("SubscriptionManagement")).Split("/")
        If strSubscriptionLogin.Length = 2 Then
            If strSubscriptionLogin(0) = strUserName And strSubscriptionLogin(1) = strPassword Then
                Session("DomainID") = 1
                Session("UserContactID") = 1
                Session("PagingRows") = 20
                Session("DateFormat") = "DD/MONTH/YYYY"

                Response.Redirect("Service/frmSerNav.htm", False)
                Exit Sub

            End If
        End If

        If sb_GetDomainUser() = False Then
            Session.Abandon()
            Exit Sub
        End If
    Catch ex As Exception
        ExceptionModule.ExceptionPublish(ex, Session("DomainID"), Session("UserContactID"), Request)
        Response.Write(ex)
        Session.Abandon()
        Exit Sub
    End Try

    If GetQueryStringVal("From") = "Help" Then
        Dim HelpURL As String = ConfigurationManager.AppSettings("HelpURL")

        HelpURL = HelpURL & "?a=" & objCommon.Encrypt(Session("AccessID")) & "&pageurl=" & CCommon.ToString(GetQueryStringVal("pageurl"))
        Response.Redirect(HelpURL)
        Exit Sub
    Else
        Response.Redirect("common/TicklerDisplay.aspx?ClientMachineUTCTimeOffset=" & txtOffset.Text.Trim)
        'HttpContext.Current.ApplicationInstance.CompleteRequest()
    End If
    'Response.Redirect("include/frmMenu.aspx")
End Sub
4

1 に答える 1