Details
Description
Steps to reproduce:
1) Create a new C# Web application in the MS Visual Studio:
File -> New -> Project -> Visual C# -> Web -> ASP.NET Web Application
2) Install Apache.Ignite.AspNet NuGet package
3) Open Web.config file and add following code into beginning of "configuration" section:
<configSections> <section name="igniteConfiguration" type="Apache.Ignite.Core.IgniteConfigurationSection, Apache.Ignite.Core" /> </configSections> <igniteConfiguration> <cacheConfiguration> <cacheConfiguration name='myWebCache' /> </cacheConfiguration> </igniteConfiguration>
And following code into beginning of "system.web" section:
<caching> <outputCache defaultProvider="apacheIgnite"> <providers> <add name="apacheIgnite" type="Apache.Ignite.AspNet.IgniteOutputCacheProvider, Apache.Ignite.AspNet" igniteConfigurationSectionName="igniteConfiguration" cacheName="myWebCache" /> </providers> </outputCache> </caching> <sessionState mode="Custom" customProvider="IgniteSessionStateProvider"> <providers> <add name="IgniteSessionStateProvider" type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider, Apache.Ignite.AspNet" /> </providers> </sessionState>
Open Default.aspx.cs file and add the following to Page_Load method:
Session["test"] = "abc";
4) Run project
Following exception appears in browser:
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Failed to initialize Apache.Ignite.AspNet.IgniteSessionStateStoreProvider: Apache.Ignite.Core.Common.IgniteException: Failed to initialize JVM. ---> Apache.Ignite.Core.Common.IgniteException: Java class is not found (did you set IGNITE_HOME environment variable?): org/apache/ignite/internal/processors/platform/utils/PlatformUtils ---> Apache.Ignite.Core.Common.JavaException --- End of inner exception stack trace --- --- End of inner exception stack trace --- at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.Error(Void* target, Int32 errType, SByte* errClsChars, Int32 errClsCharsLen, SByte* errMsgChars, Int32 errMsgCharsLen, SByte* stackTraceChars, Int32 stackTraceCharsLen, Void* errData, Int32 errDataLen) at Apache.Ignite.Core.Impl.Unmanaged.IgniteJniNativeMethods.CreateContext(Void* opts, Int32 optsLen, Void* cbs) at Apache.Ignite.Core.Impl.IgniteManager.CreateJvm(IgniteConfiguration cfg, UnmanagedCallbacks cbs) at Apache.Ignite.Core.Impl.IgniteManager.CreateJvmContext(IgniteConfiguration cfg, UnmanagedCallbacks cbs, ILogger log) at Apache.Ignite.Core.Ignition.Start(IgniteConfiguration cfg) at Apache.Ignite.AspNet.Impl.ConfigUtil.InitializeCache[TK,TV](NameValueCollection config, Type callerType, String defaultCacheName) Source Error: Line 29: <sessionState mode="Custom" customProvider="IgniteSessionStateProvider"> Line 30: <providers> Line 31: <add name="IgniteSessionStateProvider" type="Apache.Ignite.AspNet.IgniteSessionStateStoreProvider, Apache.Ignite.AspNet" /> Line 32: </providers> Line 33: </sessionState> Source File: c:\visual studio 2015\Projects\WebApplication10\WebApplication10\web.config Line: 31
Attachments
Issue Links
- links to