justinstenning / Direct3DHook

DirectX Capture and Overlays by using Direct3D API hooks
http://spazzarama.com/2011/03/14/c-screen-capture-and-overlays-for-direct3d-9-10-and-11-using-api-hooks
MIT License
582 stars 176 forks source link

Could not load file or assembly SharpDX.DXGI #18

Closed reinierdg closed 9 years ago

reinierdg commented 10 years ago

I keep getting the error below. I am using VS2013 (Windows 8). As you can see, I already enabled the logging for assembly binding.

Information: Disconnecting from process 10488
Error: Error in InitialiseHook: System.IO.FileNotFoundException: Could not load file or assembly 'SharpDX.DXGI, Version=2.4.2.0, Culture=neutral, PublicKeyToken=627a3d6d1956f55a' or one of its dependencies. The system cannot find the file specified.
File name: 'SharpDX.DXGI, Version=2.4.2.0, Culture=neutral, PublicKeyToken=627a3d6d1956f55a'
   at Capture.Hook.DXHookD3D11.Hook()
   at Capture.EntryPoint.InitialiseDirectXHook(CaptureConfig config)

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  D:\Program Files (x86)\Origin Games\Need for Speed(TM) Most Wanted\NFS13.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = SharpDX.DXGI, Version=2.4.2.0, Culture=neutral, PublicKeyToken=627a3d6d1956f55a
 (Fully-specified)
LOG: Appbase = file:///D:/Program Files (x86)/Origin Games/Need for Speed(TM) Most Wanted/
LOG: Initial PrivatePath = NULL
Calling assembly : Capture, Version=1.0.0.0, Culture=neutral, PublicKeyToken=025161b358ea1a36.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: SharpDX.DXGI, Version=2.4.2.0, Culture=neutral, PublicKeyToken=627a3d6d1956f55a
LOG: Attempting download of new URL file:///D:/Program Files (x86)/Origin Games/Need for Speed(TM) Most Wanted/SharpDX.DXGI.DLL.
LOG: Attempting download of new URL file:///D:/Program Files (x86)/Origin Games/Need for Speed(TM) Most Wanted/SharpDX.DXGI/SharpDX.DXGI.DLL.
LOG: Attempting download of new URL file:///D:/Program Files (x86)/Origin Games/Need for Speed(TM) Most Wanted/SharpDX.DXGI.EXE.
LOG: Attempting download of new URL file:///D:/Program Files (x86)/Origin Games/Need for Speed(TM) Most Wanted/SharpDX.DXGI/SharpDX.DXGI.EXE.

Debug: Autodetect found Direct3D 11
Information: Remote process is a 32-bit process.
Information: Injected into process Id:10488.
justinstenning commented 10 years ago

Can you please confirm whether SharpDX.DXGI.dll is located within the same folder as your application's executable?