The DLLs were made for .NET 4, not a particular version of Visual Studio. (There are also separate DLLs for x86 and x64.) Make sure in your project settings that you are building against the .NET 4 runtime and not 2, or 3.5.
G. -----Original Message----- From: Hdf-forum [mailto:[email protected]] On Behalf Of Michael Koch Sent: Friday, November 16, 2012 2:42 AM To: HDF Users Discussion List Subject: Re: [Hdf-forum] Reading a HDF5 file with C#/VS2008 When I compile my C# program, I get this warning: "Resolved file has a bad image, no metadata, or is otherwise inaccessible. Could not load file or assembly 'C:\Documents and Settings\PhaseCam\My Documents\Visual Studio 2008\Projects\HDF5_test1\HDF5_test1\HDF5DotNet.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded." I think the problem is that this DLL was made for VS2010, but I have VS2008. Where can I find the DLL's for VS2008? Thanks, Michael _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org
