ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ksenia Rybakova (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-4185) Apache.Ignite.AspNet.IgniteOutputCacheProvider: System.NullReferenceException when igniteConfiguration is missed
Date Tue, 08 Nov 2016 12:34:59 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-4185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ksenia Rybakova updated IGNITE-4185:
------------------------------------
    Description: 
Steps:
- Create a new C# Web application in the MS Visual Studio
- Install Apache.Ignite.AspNet package via Tools->NuGet Package ManagerPackage Manager
Console:
- Open Web.config file and make the following changes:
Add to <configSections>:
{noformat}
<section name="igniteConfiguration" type="Apache.Ignite.Core.IgniteConfigurationSection,
Apache.Ignite.Core" />
{noformat}
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}
Add to <system.web>:
{noformat}
<caching>
  <outputCache defaultProvider="apacheIgnite">
    <providers>
      <add name="apacheIgnite" type="Apache.Ignite.AspNet.IgniteOutputCacheProvider, Apache.Ignite.AspNet"
igniteConfigurationSectionName="igniteConfiguration" cacheName="myWebCache" />
    </providers>
  </outputCache>
</caching>
{noformat}
- Run project

Result:
{noformat}
Failed to initialize Apache.Ignite.AspNet.IgniteOutputCacheProvider: System.NullReferenceException:

in
Apache.Ignite.AspNet.Impl.ConfigUtil.StartFromApplicationConfiguration(String sectionName,
String gridName)
  в Apache.Ignite.AspNet.Impl.ConfigUtil.InitializeCache[TK,TV](NameValueCollection config,
Type callerType, String defaultCacheName)
{noformat}

  was:
Steps:
- Create a new C# Web application in the MS Visual Studio
- Install Apache.Ignite.AspNet package via Tools->NuGet Package ManagerPackage Manager
Console:
- Open Web.config file and do the following changes:
Add to <configSections>:
{noformat}
<section name="igniteConfiguration" type="Apache.Ignite.Core.IgniteConfigurationSection,
Apache.Ignite.Core" />
{noformat}
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}
Add to <system.web>:
{noformat}
<caching>
  <outputCache defaultProvider="apacheIgnite">
    <providers>
      <add name="apacheIgnite" type="Apache.Ignite.AspNet.IgniteOutputCacheProvider, Apache.Ignite.AspNet"
igniteConfigurationSectionName="igniteConfiguration" cacheName="myWebCache" />
    </providers>
  </outputCache>
</caching>
{noformat}
- Run project

Result:
{noformat}
Failed to initialize Apache.Ignite.AspNet.IgniteOutputCacheProvider: System.NullReferenceException:

in
Apache.Ignite.AspNet.Impl.ConfigUtil.StartFromApplicationConfiguration(String sectionName,
String gridName)
  в Apache.Ignite.AspNet.Impl.ConfigUtil.InitializeCache[TK,TV](NameValueCollection config,
Type callerType, String defaultCacheName)
{noformat}


> Apache.Ignite.AspNet.IgniteOutputCacheProvider: System.NullReferenceException when igniteConfiguration
is missed
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-4185
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4185
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 1.7
>         Environment: Windows 10
> MS VS 2015
>            Reporter: Ksenia Rybakova
>
> Steps:
> - Create a new C# Web application in the MS Visual Studio
> - Install Apache.Ignite.AspNet package via Tools->NuGet Package ManagerPackage Manager
Console:
> - Open Web.config file and make the following changes:
> Add to <configSections>:
> {noformat}
> <section name="igniteConfiguration" type="Apache.Ignite.Core.IgniteConfigurationSection,
Apache.Ignite.Core" />
> {noformat}
> 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}
> Add to <system.web>:
> {noformat}
> <caching>
>   <outputCache defaultProvider="apacheIgnite">
>     <providers>
>       <add name="apacheIgnite" type="Apache.Ignite.AspNet.IgniteOutputCacheProvider,
Apache.Ignite.AspNet" igniteConfigurationSectionName="igniteConfiguration" cacheName="myWebCache"
/>
>     </providers>
>   </outputCache>
> </caching>
> {noformat}
> - Run project
> Result:
> {noformat}
> Failed to initialize Apache.Ignite.AspNet.IgniteOutputCacheProvider: System.NullReferenceException:

> in
> Apache.Ignite.AspNet.Impl.ConfigUtil.StartFromApplicationConfiguration(String sectionName,
String gridName)
>   в Apache.Ignite.AspNet.Impl.ConfigUtil.InitializeCache[TK,TV](NameValueCollection
config, Type callerType, String defaultCacheName)
> {noformat}



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

Mime
View raw message