Hi,
I think I managed to resolve my problems.
In first exception, the reason was version mismatch for Newtonsoft.Json library. Resolving it led to 2) exception.
Resolution for 2) is to define CustomProcessSteps in app.config (or whatever the config file of application is) the same way as in neuronpipelines.config, that is:
<neuron.pipelines>
<stepTypes>
<add name="CustomProcessStepNam" value="AssemblyName" />
</stepTypes>
</neuron.pipelines>
Don't forget to add config section definition:
<configSections>
<section name="neuron.pipelines" type="Neuron.Configuration.PipelinesConfigurationSection, Neuron"/>
</configSections>
Remember also, that your tests are running under different process, so they have separate config file ;)
I hope this will help somebody ;)
Greetings,
Michał
Michal - when you use any custom or third party assemblies with the Client API, those components also need to be deployed to the same location where the application hosting the Client API resides. So if your executable is at c:\MyClientAPIApp, and the core Neuron assemblies are there (Neuron.dll, Neuron.Esb.dll, etc.), then the custom process assemblies also need to be there. There's one final step - the custom process step needs to be registered in the hosting applications config file. You probably already put the appSettings or the Neuron ESB Server in there. Here's a sample:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="neuron.pipelines" type="Neuron.Configuration.PipelinesConfigurationSection, Neuron"/>
</configSections>
<appSettings>
<add key="esbZone" value="Enterprise"/>
<add key="esbClientId" value="TestPub"/>
<add key="esbServiceAddress" value="net.tcp://localhost:50000"/>
<add key="esbServiceIdentity" value=""/>
</appSettings>
<system.diagnostics>
<switches>
<!-- This switch controls ESB trace messages. -->
<!-- Value Meaning -->
<!-- ===== ======= -->
<!-- 0 No tracing -->
<!-- 1 Trace errors -->
<!-- 2 Trace errors + warnings -->
<!-- 3 Trace errors + warnings + info -->
<!-- 4 Trace errors + warnings + info + verbose -->
<add name="esbTraceSwitch" value="2" />
</switches>
<trace autoflush="true" indentsize="0" />
</system.diagnostics>
<neuron.pipelines>
<stepTypes>
<!--add name="MyCustomPipelineStep" value="Neuron.Pipelines.CustomSamples, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ecaf0c45d7be0e34"/-->
</stepTypes>
</neuron.pipelines>
</configuration>
Neuron ESB Product Support Forums and Communities
© 2024 Created by Neuron Admin. Powered by