2015-11-20

Hello  I am digging into some old code as we are upgrade to StarTeam 14.4 from 2008.  The code compiles and uses the SDK for .Net v10  But when I run it I get the follow runtime error, even when I try to connect to our current 2008 Server.   I have double checked the connection information (user Name, pswd, server name, etc.)  System.TypeInitializationException was unhandled Message="The type initializer for 'Borland.StarTeam.Server' threw an exception." Source="Borland.StarTeam" TypeName="Borland.StarTeam.Server" StackTrace: at Borland.StarTeam.Server..ctor(String address, Int32 port) at AQS.Utilities.Starteam.StarteamRoutines.ConnectToServer(String ServerAddress, String Username, String Password, Int64 Port) at ReconciliationReport.Form1.Form1_Load(Object sender, EventArgs e) in C:\Temp\Starteam Utilities HRPA For HRPA\AQS.Utilities.ReconciliationReport\Form1.vb:line 63 at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) InnerException: System.BadImageFormatException FileName="Borland.StarTeam.Core, Version=10.0.0.58, Culture=neutral, PublicKeyToken=c4c57974ea1e3017" FusionLog="=== Pre-bind state information === LOG: User = CORP\BHOPENW LOG: DisplayName = Borland.StarTeam.Core, Version=10.0.0.58, Culture=neutral, PublicKeyToken=c4c57974ea1e3017 (Fully-specified) LOG: Appbase = file:///C:/Temp/Starteam Utilities HRPA For HRPA/AQS.Utilities.ReconciliationReport/bin/Release/ LOG: Initial PrivatePath = NULL Calling assembly : Borland.StarTeam, Version=10.0.0.58, Culture=neutral, PublicKeyToken=c4c57974ea1e3017. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Temp\Starteam Utilities HRPA For HRPA\AQS.Utilities.ReconciliationReport\bin\Release\ReconciliationReport.vshost.exe.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config. LOG: Post-policy reference: Borland.StarTeam.Core, Version=10.0.0.58, Culture=neutral, PublicKeyToken=c4c57974ea1e3017 LOG: Attempting download of new URL file:///C:/Temp/Starteam Utilities HRPA For HRPA/AQS.Utilities.ReconciliationReport/bin/Release/Borland.StarTeam.Core.DLL. ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated. " Message="Could not load file or assembly 'Borland.StarTeam.Core, Version=10.0.0.58, Culture=neutral, PublicKeyToken=c4c57974ea1e3017' or one of its dependencies. An attempt was made to load a program with an incorrect format." Source="Borland.StarTeam" StackTrace: at Borland.StarTeam.Impl.SDKWrapper.Init() at Borland.StarTeam.Server..cctor() InnerException:

Show more