{{Quickfixn}} FpML file

Ashutosh Mishra A.Mishra at ny.tr.mufg.jp
Mon Oct 28 07:24:54 PDT 2013


Hi Walter,
                  I am still stuck with the same error. I tries sending my code but it it says" waiting for moderator approval" . This is the error that I am getting:
Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPath
Length)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at System.Xml.XmlResolver.ResolveUri(Uri baseUri, String relativeUri)
   at System.Xml.XmlUrlResolver.ResolveUri(Uri baseUri, String relativeUri)
   at System.Xml.XmlTextReaderImpl..ctor(String url, XmlNameTable nt)
   at System.Xml.XmlDocument.Load(String filename)
   at QuickFix.DataDictionary.DataDictionary.Load(String path)
   at QuickFix.SessionFactory.createDataDictionary(SessionID sessionID, Dictiona
ry settings, String settingsKey, String beginString)
   at QuickFix.SessionFactory.ProcessFixDataDictionary(SessionID sessionID, Dict
ionary settings, DataDictionaryProvider provider)
   at QuickFix.SessionFactory.Create(SessionID sessionID, Dictionary settings)
   at QuickFix.AbstractInitiator..ctor(IApplication app, IMessageStoreFactory st
oreFactory, SessionSettings settings, ILogFactory logFactory, IMessageFactory me
ssageFactory)
   at QuickFix.Transport.SocketInitiator..ctor(IApplication application, IMessag
eStoreFactory storeFactory, SessionSettings settings, ILogFactory logFactory)

I would appreciate any help.

Thanks & Regards,
Ashutosh Mishra

*********************************************************************************
This communication (including any attachments) is intended only or the use of the individual whom it is addressed and may contain information that is privileged, confidential or legally protected.  If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message.  Please also delete the message and its attachments, if any, from your computer and destroy any hard copies you may have created.  Thank you for your cooperation.
*********************************************************************************

From: quickfixn-bounces at lists.quickfixn.com [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Walter Robert Ditzler
Sent: Thursday, October 24, 2013 2:44 PM
To: 'Mailing list for QuickFIX/n'
Subject: Re: {{Quickfixn}} FpML file

Hi,


var file = @"C:\Initiator.cfg";

QuickFix.SessionSettings settings = new QuickFix.SessionSettings(file);

or

System.IO.Path.Combine("C:","Initiator.cfg");

System.IO.Path.Combine(System.IO.Directory.GetCurrentDirectory(),"Initiator.cfg");


Thanks,

Walter


From: quickfixn-bounces at lists.quickfixn.com<mailto:quickfixn-bounces at lists.quickfixn.com> [mailto:quickfixn-bounces at lists.quickfixn.com] On Behalf Of Ashutosh Mishra
Sent: Donnerstag, 24. Oktober 2013 20:23
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} FpML file

Tried the way you said, but It did not work either...

string file = "C:\\Initiator.cfg";

QuickFix.SessionSettings settings = new QuickFix.SessionSettings(@file);

TradeClientApp application = new TradeClientApp();

QuickFix.IMessageStoreFactory storeFactory = new QuickFix.FileStoreFactory(settings);

QuickFix.ILogFactory logFactory = new QuickFix.ScreenLogFactory(settings);

QuickFix.Transport.SocketInitiator initiator = new QuickFix.Transport.SocketInitiator(application, storeFactory, settings, logFactory);

I realized the code breaks when it goes to "QuickFix.Transport.SocketInitiator initiator = new QuickFix.Transport.SocketInitiator(application, storeFactory, settings, logFactory);"

and it directly  goes to catch block after this and gives error. I tries lot of things before posting my probem .. I am aware of C# and command line but as I tried lot of things which did not work, so thought something tricky might be involved. But I am certainly ner wto QuickFix.

Thanks & Regards,
Ashutosh Mishra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20131028/b253c159/attachment-0002.htm>


More information about the Quickfixn mailing list