You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (JIRA)" <ji...@apache.org> on 2016/11/10 13:52:59 UTC

[jira] [Comment Edited] (IGNITE-4186) .NET: "Invalid session release request" exception in IgniteSessionStateStoreProvider.SetAndReleaseItemExclusive

    [ https://issues.apache.org/jira/browse/IGNITE-4186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15651187#comment-15651187 ] 

Pavel Tupitsyn edited comment on IGNITE-4186 at 11/10/16 1:52 PM:
------------------------------------------------------------------

Need to clear the cookies (or use incognito mode) in order to reproduce this.


was (Author: ptupitsyn):
I wonder if this happens in a particular ASP.NET version. Can't reproduce with .NET 4.0 and .NET 4.6 for now.

> .NET: "Invalid session release request" exception in IgniteSessionStateStoreProvider.SetAndReleaseItemExclusive
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-4186
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4186
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 1.7
>         Environment: Windows 10
> MS VS 2015
> .NET Framework 4.0.30319
> ASP.NET 4.6.1586.0
>            Reporter: Ksenia Rybakova
>            Assignee: Pavel Tupitsyn
>             Fix For: 1.8
>
>
> Steps:
> - Create a new C# Web application in MS Visual Studio
> - Install Apache.Ignite.AspNet package via Tools->NuGet Package ManagerPackage Manager Console
> - Open Web.config file, remove default sessionState section in <system.web> and add the following instead:
> {noformat}
> <sessionState mode="Custom" customProvider="IgniteSessionStateProvider">
>   <providers>
>     <add name="IgniteSessionStateProvider" type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider, Apache.Ignite.AspNet" />
>   </providers>
> </sessionState>
> {noformat}
> - Open Default.aspx.cs file and add the following to Page_Load method
> {noformat}
> Session["test"] = "abc";
> {noformat}
> - Run project
> - Use Incognito mode or clear the cookies and open the main page
> Result:
> {noformat}
> [IgniteException: Invalid session release request, expected lockId: 0, actual: ]
>  Apache.Ignite.AspNet.IgniteSessionStateStoreProvider.SetAndReleaseItemExclusive(HttpContext context, String id, SessionStateStoreData item, Object lockId, Boolean newItem) +298
>    System.Web.SessionState.SessionStateModule.OnReleaseState(Object source, EventArgs eventArgs) +573
>    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
>    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)