.NET error when loading Models
Posted: Tue Mar 20, 2007 8:16 pm
Is there a certain Microsoft Framework that needs to be installed? I have 1.1 2.0 and 3.0. But I always get random errors from the .NET framework. I keep getting the following one when trying to view any model in Dark Matter, Entity, or really any halo 2 modding program
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
Error in the application.
-2146232832 (Unknown)
at Microsoft.DirectX.Direct3D.Device..ctor(Int32 adapter, DeviceType deviceType, Control renderWindow, CreateFlags behaviorFlags, PresentParameters presentationParameters)
at WindowsApplication2.ModelViewer.InitializeGraphics() in f:\windowsapplication2\modelviewer.cs:line 339
at WindowsApplication2.ModelViewer.ModelViewer_Load(Object sender, EventArgs e) in f:\windowsapplication2\modelviewer.cs:line 284
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
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.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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
DarkMatter
Assembly Version: 1.0.2079.11548
Win32 Version: 1.0.2079.11548
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/DarkMatter.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.900.0
Win32 Version: 5.3.0000000.900 built by: DIRECTX
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/Microsoft.DirectX.Direct3D.DLL
----------------------------------------
Microsoft.DirectX.Direct3DX
Assembly Version: 1.0.900.0
Win32 Version: 5.3.0000000.900 built by: DIRECTX
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/Microsoft.DirectX.Direct3DX.DLL
----------------------------------------
Microsoft.DirectX
Assembly Version: 1.0.900.0
Win32 Version: 5.3.0000000.900 built by: DIRECTX
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/Microsoft.DirectX.DLL
----------------------------------------
WindowsControlLibrary1
Assembly Version: 1.0.2071.41184
Win32 Version: 1.0.2071.41184
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/WindowsControlLibrary1.DLL
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.
Please, if anyone used to get the same random errors, and have found out how to fix it, please tell me. I would greatly appreciate it.
EDIT: I forgot to mention that my computers HDD is under D:\ instead of C:\ .. I dont know if that has anything to do with it or not. Just thought I'd say it though
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
Error in the application.
-2146232832 (Unknown)
at Microsoft.DirectX.Direct3D.Device..ctor(Int32 adapter, DeviceType deviceType, Control renderWindow, CreateFlags behaviorFlags, PresentParameters presentationParameters)
at WindowsApplication2.ModelViewer.InitializeGraphics() in f:\windowsapplication2\modelviewer.cs:line 339
at WindowsApplication2.ModelViewer.ModelViewer_Load(Object sender, EventArgs e) in f:\windowsapplication2\modelviewer.cs:line 284
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
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.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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
DarkMatter
Assembly Version: 1.0.2079.11548
Win32 Version: 1.0.2079.11548
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/DarkMatter.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///d:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
Microsoft.DirectX.Direct3D
Assembly Version: 1.0.900.0
Win32 Version: 5.3.0000000.900 built by: DIRECTX
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/Microsoft.DirectX.Direct3D.DLL
----------------------------------------
Microsoft.DirectX.Direct3DX
Assembly Version: 1.0.900.0
Win32 Version: 5.3.0000000.900 built by: DIRECTX
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/Microsoft.DirectX.Direct3DX.DLL
----------------------------------------
Microsoft.DirectX
Assembly Version: 1.0.900.0
Win32 Version: 5.3.0000000.900 built by: DIRECTX
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/Microsoft.DirectX.DLL
----------------------------------------
WindowsControlLibrary1
Assembly Version: 1.0.2071.41184
Win32 Version: 1.0.2071.41184
CodeBase: file:///D:/Program%20Files/UMP/H2%20Tools/Dark%20Matter%20alpha%201-1/WindowsControlLibrary1.DLL
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.
Please, if anyone used to get the same random errors, and have found out how to fix it, please tell me. I would greatly appreciate it.
EDIT: I forgot to mention that my computers HDD is under D:\ instead of C:\ .. I dont know if that has anything to do with it or not. Just thought I'd say it though