2015-06-23

I am using the following code for screencapture using SlimDX.DirectX.

I am getting an error at runtime stating "Could not load file or assembly 'SlimDX, Version=4.0.13.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9' or one of its dependencies. An attempt was made to load a program with an incorrect format." There are post regarding this which states to install SlimDX runtime .NET 4 into the system.

I am developing a setup .exe file so if i run this code on another machine which does not have the SlimDX runtime installed it gives me an error. I dont know what the error means and how to solve it without using SlimDX runtime installation. I want the my setup to work without the SlimDX runtime installed on the user machine. Is it better to use SlimDX or SharpDX for screen capture?. Please HELP!!!

Show more