Hi,
I just tried building quickfix using VS8.
1. downloaded the source
2. edited the quickfix\src\config_windows.h file to include "#define
HAVE_MSSQL 1" (per instructions from the documentation
http://www.quickfixengine.org/quickfix/doc/html/building.html).
3. opened quickfix_v8.sln from the quickfix directory. (was asked to
convert the project since it was created with an earlier version of VS).
4. built the solution successfully.
If I run the sample executor I get the following error:
System.BadImageFormatException was unhandled
Message="Could not load file or assembly 'quickfix_net,
Version=1.0.3303.42637, Culture=neutral, PublicKeyToken=null' or one of its
dependencies. An attempt was made to load a program with an incorrect
format."
Source="executor_csharp"
FileName="quickfix_net, Version=1.0.3303.42637, Culture=neutral,
PublicKeyToken=null"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = ****\r\nLOG:
DisplayName = quickfix_net, Version=1.0.3303.42637, Culture=neutral,
PublicKeyToken=null\n (Fully-specified)\r\nLOG: Appbase =
file:///C:/Users/***/Documents/quickfix/bin/debug/executor_csharp/\r\nLOG:
Initial PrivatePath = NULL\r\nCalling assembly : executor_csharp,
Version=1.0.3303.43050, Culture=neutral,
PublicKeyToken=null.\r\n===\r\nLOG: This bind starts in default load
context.\r\nLOG: No application configuration file found.\r\nLOG: Using
machine configuration file from
C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\config\\machine.config.
\r\nLOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).\r\nLOG: Attempting
download of new URL
file:///C:/Users/***/Documents/quickfix/bin/debug/executor_csharp/quickfix_n
et.DLL.\r\nERR: Failed to complete setup of assembly (hr = 0x8007000b).
Probing terminated.\r\n"
StackTrace:
at executor_csharp.Executor.Main(String[] args)
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
at
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Stack trace:
at executor_csharp.Executor.Main(String[] args)
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
I also tried creating a new console project that referenced
quickfix\src\.NET\debug\vs8\quickfix_net.dll but the same error appeared.
I'm running on Vista 64bit and was wondering if I need to make so special
consessions for that?
I tried building the executor as a 64bit app and changed it to .NET v3.5
but the same error.
Anyone else tried this?
Thanks,
nisbus
|