Re: [Quickfix-users] Problem running QuickFix 1.9.3 managed wrapper (System.IO.FileNotFoundException
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2004-11-18 20:44:47
|
Belal,
When creating the MessageStoreFactory, do this instead:
QuickFix.MessageStoreFactory messageStoreFactory =3D new=20
QuickFix.FileStoreFactory(settings);
On Nov 18, 2004, at 12:20 PM, Belal K. Faruki wrote:
> Hi,
> =A0
> As the documentation suggests I added project references to=20
> quickfix_net.dll and quickfix_net_messages.dll to a C# project.
> =A0
> I added the following code in the Main method
> =A0
>
> QuickFix.SessionSettings settings =3D new=20
> QuickFix.SessionSettings("QuickFixConfig.cfg");
>
>
> Application application =3D new Application();
>
>
> QuickFix.MessageStoreFactory messageStoreFactory =3D new=20
> QuickFix.FileStoreFactory("QuickFixConfig.cfg");
>
>
> QuickFix.MessageFactory messageFactory =3D new=20
> QuickFix42.MessageFactory();
>
>
> QuickFix.SocketInitiator initiator =3D new=20
> QuickFix.SocketInitiator(application, messageStoreFactory, settings,=20=
> messageFactory);
>
>
> initiator.start();
>
> =A0
>
> Application is an implementation of the QuickFix.Application =
interface.
>
> When I try to run the application I get the following exception.
>
> An unhandled exception of type 'System.IO.FileNotFoundException'=20
> occurred in Unknown Module.
>
> Additional information: File or assembly name quickfix_net, or one of=20=
> its dependencies, was not found.
>
> =A0
>
> Additional information:
>
> Unhandled Exception: System.IO.FileNotFoundException: File or assembly=20=
> name quic
> kfix_net, or one of its dependencies, was not found.
> File name: "quickfix_net"
> =A0=A0 at QFTest.Class1.Main(String[] args)
>
> =3D=3D=3D Pre-bind state information =3D=3D=3D
> LOG: DisplayName =3D quickfix_net, Version=3D1.0.1773.22158,=20
> Culture=3Dneutral, Public
> KeyToken=3Dnull
> =A0(Fully-specified)
> LOG: Appbase =3D C:\Documents and Settings\bfaruki\My Documents\Visual=20=
> Studio Proj
> ects\Development\QFTest\QFTest\bin\Debug\
> LOG: Initial PrivatePath =3D NULL
> Calling assembly : QFTest, Version=3D1.0.1783.22060, Culture=3Dneutral,=20=
> PublicKeyTok
> en=3Dnull.
> =3D=3D=3D
>
> LOG: Found application configuration file (C:\Documents and=20
> Settings\bfaruki\My
> Documents\Visual Studio=20
> Projects\Development\QFTest\QFTest\bin\Debug\QFTest.exe.
> config).
> LOG: Policy not being applied to reference at this time (private,=20
> custom, partia
> l, or location-based assembly bind).
> LOG: Post-policy reference: quickfix_net, Version=3D1.0.1773.22158,=20
> Culture=3Dneutra
> l, PublicKeyToken=3Dnull
> LOG: Attempting download of new URL file:///C:/Documents and=20
> Settings/bfaruki/My
> =A0Documents/Visual Studio=20
> Projects/Development/QFTest/QFTest/bin/Debug/quickfix_n
> et.DLL.
>
> =A0
>
> TIA,
>
> - Bill
|