ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@apache.org>
Subject Re: "Ignite instance with this name has already been started" exception
Date Tue, 04 Apr 2017 09:27:27 GMT
Hi, this is due to IIS behavior with AppDomains, see

https://apacheignite-net.readme.io/docs/deployment#section-iis-application-pool-lifecycle-appdomains-and-ignitenet
http://stackoverflow.com/questions/42961879/how-do-i-retrieve-a-started-ignite-instance-when-a-website-restart-occurs-in-iis/

Pavel

On Tue, Apr 4, 2017 at 12:08 PM, ozgurnevres <ozgur.nevres@gmail.com> wrote:

> Hi,
>
> I have an interesting problem. Sometimes, when starting ignite in my
> asp.net
> mvc project, I am getting the exception below:
>
> "Ignite instance with this name has already been started: myGrid1"
>
> My code is like this:,
>  if (null == Ignition.TryGetIgnite("myGrid1"))  _ignite =
> Ignition.StartFromApplicationConfiguration("igniteConfiguration");
>
> Ignition.TryGetIgnite("myGrid1")) is always returning null, and
> Ignition.StartFromApplicationConfiguration throwing the exception above.
>
> I tried
> Ignition.StopAll(true); before the code above but it doesn't work.
>
> At the web config:
>   <igniteConfiguration
> xmlns="http://ignite.apache.org/schema/dotnet/IgniteConfigurationSection"
> gridName="myGrid1" clientMode="true"
> igniteHome="D:\Projects\IgniteIntroduction\IgniteWebTest\bin\">
>
>
> In short, how do I know if ignite instance has already been started?
> Thanks
>
>
>
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Ignite-instance-with-this-name-has-
> already-been-started-exception-tp11699.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Mime
View raw message