Error on program startup (Unhandled Exception)

B

BobTheBuilder

---------------------------
Unhandled Exception
---------------------------
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at BobsTrackBuilder.frmMain..ctor(App loApp)
at BobsTrackBuilder.App..ctor()
at BobsTrackBuilder.App.Main()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at •.”.Ž(Object , Object , Object )
at •.”.Š(String[] , Byte[] )
---------------------------
OK
---------------------------


It's the latest demo version (pro) :disapointed:
 

MaxVK

25RPM
Sep 15, 2009
45
0
I'm thinking that if you want some help you may well need to supply details about your system, such as OS, perhaps memory and CPU info etc.
 
E

Elharter

i have a similar problem....at the start of the program.

I would like to test bobs track builder at home….

So, I installed bobs track builder at the first time at work – and here it works perfect.
But the installation on my home pc, doesn’t work…..

My System:
Windows XP SP3, v5657
Intel Core2 Quad 2.34 GHz
4GB Ram
Nvidia Gforce 8800GT with 2 Monitors
No Monitor drivers installed…..both runs as Plug´n Play Monitor.

I receive at the start following error message (translated in English, because myself is German speaking):

System.AccessViolationException
"Attempted to read or write protected memory. This is often an indication that othermemory is corrupt"

I run MemTest for 1hour and 45Minutes – no errors found on both memory modules.

I’ve tested all things, I tried all possibilities.

I’ve updated/reinstall DX9.0c
I run DXDiag: no errors found at all
Actually DX Version is: DX9.0c 4.09.0000.0904)
I installed .NET2.0 again
I installed .NET 3.0
I installed .NET 3.5
I used a registry/Programm cleaner – and removed all old registry entries with CCLeaner.
I’ve installed BBT again – without Xpacks, Extensions or something else.

…….it doesn’t work. The Program wouldn’t be start.
After the error dialog the expansion Pack Form is visible…..i confirm with “ok” or “cancel”, the expansion Pack Form is closed and the normal program Form (BBT) is now visible – but not maximized.
If I click something….in such a way Maximize or add closed Track an I see attached detailed error message – see attachment.

Please help me, because I really should like to use Bob´s Track Builder for Race07.

Greez from Vienna / Austria




Mike
 
E

Elharter

the error-message:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.
************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei BobsTrackBuilder.frmMain.DrawPanel2d_BackgroundImages(View& v)
bei BobsTrackBuilder.frmMain.DrawPanel_2d(View v)
bei BobsTrackBuilder.frmMain.DrawPanel(View& v)
bei BobsTrackBuilder.frmMain.DrawAll()
bei BobsTrackBuilder.frmMain.pnl_Resize(Object sender, EventArgs e)
bei System.Windows.Forms.Control.OnResize(EventArgs e)
bei System.Windows.Forms.Panel.OnResize(EventArgs eventargs)
bei System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
bei System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
bei System.Windows.Forms.Control.UpdateBounds()
bei System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
MC
Assembly-Version: 3.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll.
----------------------------------------
System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
?????????????????
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll.
----------------------------------------
License
Assembly-Version: 1.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll.
----------------------------------------
System.Management
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll.
----------------------------------------
BobsTrackBuilderEvo
Assembly-Version: 0.8.0.3.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
BobsBits
Assembly-Version: 1.1.1.5.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll.
----------------------------------------
Microsoft.DirectX
Assembly-Version: 1.0.2902.0.
Win32-Version: 5.04.00.2904.
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll.
----------------------------------------
Microsoft.DirectX.Direct3D
Assembly-Version: 1.0.2902.0.
Win32-Version: 9.05.132.0000.
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll.
----------------------------------------
Microsoft.DirectX.Direct3DX
Assembly-Version: 1.0.2911.0.
Win32-Version: 9.12.589.0000.
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2911.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll.
----------------------------------------
Microsoft.VisualC
Assembly-Version: 8.0.0.0.
Win32-Version: 8.00.50727.3053.
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualC/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualC.dll.
----------------------------------------
ICSharpCode.SharpZipLib
Assembly-Version: 0.85.5.452.
Win32-Version: 0.85.5.452.
CodeBase: file:///C:/Programme/BobsTrackBuilderEvo/ICSharpCode.SharpZipLib.DLL.
----------------------------------------
System.Xml
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
Zum Beispiel:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.




interim report:

i´ve change my graphhic card (from nvidia 8800gt to ATI HD4670)...
I deleted ALL .Net Installations......i used the .net cleaner.
I´ve restarted my pc and installed the first .net Version (1.0) and tried it....no works.
I installed 1.1 -> test -> doesnt work
I installed 2.0 -> test -> doesnt work
I installed 3.0 -> test -> doesnt work
I installed 3.5 -> test -> doesnt work

And the same procedure with DirectX.....
New Audiodrivers, new graphhiccard drivers....

I disabled the firewall, i tried to clean the registry again.

No effect.
 
B

BobTheBuilder

I'm thinking that if you want some help you may well need to supply details about your system, such as OS, perhaps memory and CPU info etc.
Oh I forgot to say that I installed it on VMware.
OS: Win Vista.

Thing is I used the older version before with no problems, now the new one doesn't work :(
 

Eric Tozer

250RPM
Mar 16, 2009
301
1
Have you tried these from the BTB FAQ.

---------------------------------------------------------
It crashes upon startup. What's the matter?

Make sure you have met the Prerequisites.
  • Windows XP (32 bit)
  • A shaders 2.0 capable video card
  • The latest DirectX drivers. Note: there are several version of 9.0c, get the latest ones! Download them again just in case. Be aware, DirectX 10 does NOT contain DirectX 9; it must be installed independantly.
  • Microsoft .Net Framework 2.0 (it will be downloaded during the installation process if it's not already installed)
  • ---------------------------------------------------------
 

Raido

250RPM
Jan 6, 2010
379
14
Had the same problem, bog standard XP with Nvidia video, first went back to .Net 2.0 with no improvement; then installed the latest (August 2009) DirectX 9.0c version (hurray for Microsoft and releasing 20 different 9.0c versions, yay!), this helped, at least the program started now.
 

xxlrutin

1RPM
Jun 20, 2011
1
0
Solution

The spanish guy gave the solution! I write this comment to get to know you, his link works!

I have teh same OS (VIstax64), same VMware virtual machine (WinXPProfessional), had the same error message (System.Reflection....).

I downloaded the DirectX version that the spanish guy gave us under the link he posted, and miraculously my BTB finally worked!

Thank you Amigo!
 

Ron Squire

2000RPM
May 20, 2012
2,401
950
24
i have recieved this Unhandled Exception error message:
************** Exception Text **************
System.InvalidOperationException: Image cannot be added to the ImageList.
at System.Windows.Forms.ImageList.AddToHandle(Original original, Bitmap bitmap)
at System.Windows.Forms.ImageList.ImageCollection.Add(Original original, ImageInfo imageInfo)
at System.Windows.Forms.ImageList.ImageCollection.Add(Image value)
at BobsTrackBuilder.cntlMaterials.(String , Boolean )
at BobsTrackBuilder.cntlMaterials.PopulateWithMaterials(XPacks XPacks)
at BobsTrackBuilder.frmMaterialsPopup.()
at BobsTrackBuilder.frmMaterialsPopup.(Object , EventArgs )
at System.Windows.Forms.Control.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.ScrollableControl.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.Form.OnVisibleChanged(EventArgs e)
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3643 (GDR.050727-3600)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
BobsTrackBuilder
Assembly Version: 0.8.0.0
Win32 Version: 0.8.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/BobsTrackBuilder/BobsTrackBuilder.exe
----------------------------------------
BobsBits
Assembly Version: 1.1.1.5
Win32 Version: 1.1.1.5
CodeBase: file:///C:/Program%20Files%20(x86)/BobsTrackBuilder/BobsBits.DLL
----------------------------------------
Microsoft.DirectX
Assembly Version: 1.0.2902.0
Win32 Version: 5.04.00.2904
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3645 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.2902.0
Win32 Version: 9.05.132.0000
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3D/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.Direct3D.dll
----------------------------------------
Microsoft.DirectX.Direct3DX
Assembly Version: 1.0.2911.0
Win32 Version: 9.12.589.0000
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.DirectX.Direct3DX/1.0.2911.0__31bf3856ad364e35/Microsoft.DirectX.Direct3DX.dll
----------------------------------------
Microsoft.VisualC
Assembly Version: 8.0.0.0
Win32 Version: 8.00.50727.3053
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualC/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualC.dll
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.85.5.452
Win32 Version: 0.85.5.452
CodeBase: file:///C:/Program%20Files%20(x86)/BobsTrackBuilder/ICSharpCode.SharpZipLib.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
System Details:
OS: Windows XP 64bit
Graphics Card: Radeon HD 5450 with 2 Plug n Play Monitor's, 1 is Dead
4gb Ram
Latest DX9 installed
.Net Framework 2.0, 2.5, 3.0, 3.5, 4.0 installed