I am trying to use the sample c# application code with a simple config
file. I get the error "no session defined for initiator" in the
constructor of my Intiator object. Here is my code and the config fiel
contents:
try
{
SessionSettings settings = new
SessionSettings(_fileName);
FixApplication application = new FixApplication();
FileStoreFactory storeFactory = new
FileStoreFactory(settings);
FileLogFactory logFactory = new
FileLogFactory(settings);
MessageFactory messageFactory = new
DefaultMessageFactory();
ThreadedSocketInitiator init = new
ThreadedSocketInitiator( application, storeFactory, settings,
messageFactory ); }
catch(ConfigError e)
{
log.Error( e );
}
config file:
[DEFAULT]
ConnectionType=initator
ReconnectInterval=30
HeartBtInt=30
SenderCompID=A
[SESSION]
BeginString=FIX.4.2
TargetCompID=B
SocketConnectPort=9890
SocketConnectHost=192.168.1.8
DataDictionary=C:/tools/quickfix/quickfix-bin-vc7-1.9.4/quickfix/spec/FIX42.xml
|