From: Matthew C. <mat...@va...> - 2010-03-09 20:55:38
|
Hi Ian, 1. Recent versions of the bindings do not need the separate thread and date_time DLLs (unless you get the -shared-release tarball). 2. This error is usually the result of using the "Any CPU" target type for your application. Since pwiz has native code compiled in 32-bit and it has 32-bit dependencies, the application must target x86. -Matt On 3/9/2010 2:47 PM, Ian Sigmon wrote: > Hi all, > > I'm writing a C# winform app in Visual Studio using the proteowizard > library to access mzXML data files. I am referencing > pwiz_bindings_cli.dll and copying the boost_thread-vc90-mt.dll & > boost_date_time-vc90-mt.dll libraries. The program works like a champ > in XP and Vista (32-bit) but it crashes with the following error on > Win7(64-bit): > > System.BadImageFormatException was unhandled > Message="Could not load file or assembly 'pwiz_bindings_cli, > Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its > dependencies. An attempt was made to load a program with an incorrect > format." > Source="ChromEval" > FileName="pwiz_bindings_cli, Version=0.0.0.0, Culture=neutral, > PublicKeyToken=null" > FusionLog="=== Pre-bind state information ===\r\nLOG: User = > Rosegables\\Ian\r\nLOG: DisplayName = pwiz_bindings_cli, > Version=0.0.0.0, Culture=neutral, PublicKeyToken=null\n > (Fully-specified)\r\nLOG: Appbase = > file:///C:/Users/Ian/Desktop/ChromEval/ChromEval/bin/Debug/\r\nLOG: > Initial PrivatePath = NULL\r\nCalling assembly : ChromEval, > Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.\r\n===\r\nLOG: > This bind starts in default load context.\r\nLOG: Using application > configuration file: > C:\\Users\\Ian\\Desktop\\ChromEval\\ChromEval\\bin\\Debug\\ChromEval.vshost.exe.Config\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/Ian/Desktop/ChromEval/ChromEval/bin/Debug/pwiz_bindings_cli.DLL.\r\nERR: > Failed to complete setup of assembly (hr = 0x8007000b). Probing > terminated.\r\n" > > I've tried the newest pwiz artifacts build by replacing the references > w/ no change, as well as rebuilding pwiz locally again to no avail. > > so my questions are these: > > 1. Do I have all the proper references to use the > pwiz_bindings_cli.dll? > 2. Is this a 64-bit or Win7 incompatibility issue and if so could > anyone point me at workaround or fix? > > Any help is greatly appreciated. > -Ian > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > > > _______________________________________________ > proteowizard-support mailing list > pro...@li... > https://lists.sourceforge.net/lists/listinfo/proteowizard-support > |