Looks like you run Apache.Ignite.exe and expect IgniteConfigurationSection to be picked up by default. Currently, this is not the case. We are going to support this in the next version. In 1.6.0, IgniteConfigurationSection can only be used from Ignition.StartFromApplicationConfiguration method.
For now, your options are: 1) Compile the server yourself. This would be a one-line program: Ignition.StartFromApplicationConfiguration(); 2) Use Spring XML with Apache.Ignite.exe -springConfigUrl I've translated your Apache.Ignite.exe.config to the Spring XML format, see attachment. Pavel. On Tue, Jun 21, 2016 at 2:58 PM, mrinalkamboj <[email protected]> wrote: > Program.cs > <http://apache-ignite-users.70518.x6.nabble.com/file/n5774/Program.cs> > App.config > <http://apache-ignite-users.70518.x6.nabble.com/file/n5774/App.config> > OrderEntity.cs > <http://apache-ignite-users.70518.x6.nabble.com/file/n5774/OrderEntity.cs> > OrderHelper.cs > <http://apache-ignite-users.70518.x6.nabble.com/file/n5774/OrderHelper.cs> > Apache.config > <http://apache-ignite-users.70518.x6.nabble.com/file/n5774/Apache.config> > > I am adding set of files for reproducing the issue. > > Here the "Apache.Ignite.exe.config" is the server config file, rest all the > files belong to client, so need to be added to the Visual Studio solution. > > Reproduction steps: > > 1. Start server from dotnet\bin folder > 2. Start client from visual studio and it should reproduce the exception > > To avoid exception enable the CacheConfiguration setting in the app.config > and once client has started, stop it, comment out the CacheConfiguration > setting and restart, it will always be successful. > > Please let me know if any more detail is required. > > > > > -- > View this message in context: > http://apache-ignite-users.70518.x6.nabble.com/Ignite-client-needs-explicit-CacheConfiguration-for-first-time-for-GetCache-tp5768p5774.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. >
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <bean id="grid.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="ipFinder"> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder"> <property name="addresses"> <list> <!-- In distributed environment, replace with actual host IP address. --> <value>127.0.0.1:47500</value> </list> </property> </bean> </property> </bean> </property> <!-- Configure binarizable types. --> <property name="platformConfiguration"> <bean class="org.apache.ignite.platform.dotnet.PlatformDotNetConfiguration"> <property name="binaryConfiguration"> <bean class="org.apache.ignite.platform.dotnet.PlatformDotNetBinaryConfiguration"> <property name="types"> <list> <value>OrderEntity</value> <value>Apache.Ignite.ExamplesDll.Binary.Account</value> <value>Apache.Ignite.ExamplesDll.Binary.Address</value> <value>Apache.Ignite.ExamplesDll.Binary.Employee</value> <value>Apache.Ignite.ExamplesDll.Binary.EmployeeKey</value> <value>Apache.Ignite.ExamplesDll.Binary.Organization</value> </list> </property> <property name="typesConfiguration"> <list> <bean class="org.apache.ignite.platform.dotnet.PlatformDotNetBinaryTypeConfiguration"> <property name="typeName" value="Apache.Ignite.ExamplesDll.Binary.OrganizationType" /> <property name="enum" value="true" /> </bean> </list> </property> </bean> </property> </bean> </property> <property name="userAttributes"> <map> <entry key="myNode" value="true"/> </map> </property> <property name="cacheConfiguration"> <list> <bean class="org.apache.ignite.configuration.CacheConfiguration"> <property name="startSize" value="104857600"/> <property name="cacheMode" value="REPLICATED"/> <property name="queryEntities"> <list> <bean class="org.apache.ignite.cache.QueryEntity"> <property name="keyType" value="java.lang.Integer"/> <property name="valueType" value="OrderEntity"/> </bean> </list> </property> </bean> </list> </property> <property name="includeEventTypes"> <list> <util:constant static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/> <util:constant static-field="org.apache.ignite.events.EventType.EVT_JOB_FINISHED"/> </list> </property> </bean> </beans>
