Answered by:
Microsoft .NET Framework error

Question
-
Whenever i try and load up the game i just purchased, i get an error from Microsoft .NET Framework that says "Unhandled exception has occurred in your application." and "Could not load or assembly 'Microsoft.DirectX.Direct3D'.
When you click the "Details" tab, you get this:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.DirectX.Direct3D, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.DirectX.Direct3D, Version=1.0.2902.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at BmLauncher.Settings.DetermineDefaultSystemSettings()
at BmLauncher.Settings.StaticInitialise(IniFile iniFile, IniFile iniEng, IniFile iniInst, SystemInfo sysInfo, String localePath, String localeConfigFile, String& localeDir)
at BmLauncher.Form1.Initialise()
at BmLauncher.Form1.OnLoad(Object sender, EventArgs e)
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.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)
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
BmLauncher
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Batman%20Arkham%20City%20GOTY/Binaries/Win32/BmLauncher.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
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.8670 (QFE.050727-8600)
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.8670 (QFE.050727-8600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
BmLauncherUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.0.1.0
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Batman%20Arkham%20City%20GOTY/Binaries/Win32/BmLauncherUtils.DLL
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.9177
Win32 Version: 9.00.30729.9177
CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9177_none_5093cc7abcb795e9/msvcm90.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8670 (QFE.050727-8600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.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.
Wednesday, August 9, 2017 7:34 AM
Answers
-
Hi will1302.
Since the problem is related to a third party application, I'd suggest you to contact the game's manufacturer and ask for assistance: according to the error message, the game is looking for a DirectX component that it is not able to find (did you check the game compatibility with Windows 10?).
Luigi Bruno
MCP, MCTS, MOS, MTA- Edited by Luigi BrunoMVP Wednesday, August 9, 2017 8:26 AM
- Marked as answer by will1302 Wednesday, August 9, 2017 8:29 AM
Wednesday, August 9, 2017 8:25 AM
All replies
-
Hi will1302.
Since the problem is related to a third party application, I'd suggest you to contact the game's manufacturer and ask for assistance: according to the error message, the game is looking for a DirectX component that it is not able to find (did you check the game compatibility with Windows 10?).
Luigi Bruno
MCP, MCTS, MOS, MTA- Edited by Luigi BrunoMVP Wednesday, August 9, 2017 8:26 AM
- Marked as answer by will1302 Wednesday, August 9, 2017 8:29 AM
Wednesday, August 9, 2017 8:25 AM -
Hi will1302,
Firstly, you could try to open it by run as admin.
Then please check the link below about could not load file or assembly 'Microsoft.DirectX.Direct3D.
https://steamcommunity.com/app/293760/discussions/0/451850849191367077/
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
Different programs could need different .Net. You could reinstall or repair .Net.
For the game, as Luigi Bruno said, the product official support could give more help for the issue.
Hope it will be helpful to you
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.- Proposed as answer by Eric0502 Saturday, August 12, 2017 7:43 AM
Thursday, August 10, 2017 3:16 AM -
Good job. CarlSaturday, August 12, 2017 7:44 AM