i compiled the sample app in Visual C# 2008 Express, it reported an exception when running (my windows version is Vistal ultimate x64, amd 64), and my project only contain the following code will also report similar errors when running.
Code:
XF.IServer server=new XF.Server();
System.BadImageFormatException was unhandled
Message="Could not load file or assembly 'XF.Server, Version=1.0.2978.6692, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Source="MyServer"
FileName="XF.Server, Version=1.0.2978.6692, Culture=neutral, PublicKeyToken=null"
FusionLog="=== Pre-bind state information ===\r\nLOG: User = my-PC\\my\r\nLOG: DisplayName = XF.Server, Version=1.0.2978.6692, Culture=neutral, PublicKeyToken=null\n (Fully-specified)\r\nLOG: Appbase = file:///D:/MyServer/bin/Debug/\r\nLOG: Initial PrivatePath = NULL\r\nCalling assembly : MyServer, Version=1.0.0.0, 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:///D:/MyServer/bin/Debug/XF.Server.DLL.\r\nERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.\r\n"
StackTrace:
at MyServer.Program.Main()
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: