I'm new to HDF5 and I want to read data from an existing HDF5 file with a C# program. I'm using VS2008.
I found the instructions at http://hdf5.net/ and did download the two ZIP files.
I did run the HDF5-1.8.9-win32.exe.
Then I created a new project in VS2008 and copied the five DLL files into my project folder.
Then I added a reference to HDF5DotNet.dll to my project.
Now I get the error message "The referenced component 'HDF5DotNet' could not be found".
What am I making wrong?
Are there any step-by-step instructions how to get a sample program running with VS2008?
I'm new to HDF5 and I want to read data from an existing HDF5 file with
a C# program. I'm using VS2008.
I found the instructions at http://hdf5.net/ and did download the two
ZIP files.
I did run the HDF5-1.8.9-win32.exe.
Then I created a new project in VS2008 and copied the five DLL files
into my project folder.
Then I added a reference to HDF5DotNet.dll to my project.
Now I get the error message "The referenced component 'HDF5DotNet'
could not be found".
What am I making wrong?
Are there any step-by-step instructions how to get a sample program
running with VS2008?
Email addresses of ITT Exelis employees have changed from itt.com to exelisinc.com. Please update your favorites and contact information to reflect these changes.
This e-mail and any files transmitted with it may be proprietary and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender. Please note that any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of Exelis Inc. The recipient should check this e-mail and any attachments for the presence of viruses. Exelis Inc. accepts no liability for any damage caused by any virus transmitted by this e-mail.
"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?
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:hdf-forum-bounces@hdfgroup.org] 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?
I have .NET 4.0 installed on that computer, but VS2008 allows me only to choose between 2.0, 3.0 and 3.5. Does that mean it's impossible to read a HDF5 file with VS2008?
Michael, I don't have VS2008 and can't help you there. VS2008 is just a
vehicle.
Have you ever used a compiler from the command line? The C# compiler is part
of
the .NET framework (csc.exe in
C:\Windows\Microsoft.NET\Framework64\v4.0.30319 on my machine).
and works just fine in a DOS shell or PowerShell. No need for VS2008.
Reading HDF5 files has nothing to do with VS2008.
G.
(*) Just download the latest VSXXXX Express edition and move on.
Alternatively, you can compile HDF5DotNet with .NET 2 or 3.5 yourself
and use that with VS2008.
···
-----Original Message-----
From: Hdf-forum [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of Michael
Koch
Sent: Friday, November 16, 2012 9:43 AM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] Reading a HDF5 file with C#/VS2008
I have .NET 4.0 installed on that computer, but VS2008 allows me only to
choose between 2.0, 3.0 and 3.5. Does that mean it's impossible to read a
HDF5 file with VS2008?
From: Michael Koch <astroelectronic@t-online.de>
Subject: Re: [Hdf-forum] Reading a HDF5 file with C#/VS2008
To: "HDF Users Discussion List" <hdf-forum@hdfgroup.org>
Date: Saturday, November 17, 2012, 12:42 AM
I have .NET 4.0 installed on that computer, but VS2008 allows me only to choose between 2.0, 3.0 and 3.5. Does that mean it's impossible to read a HDF5 file with VS2008?
I don't want to compile HDF5DotNet, because I doubt it's a straight forward process without problems. I found out that the program which produces the HDF5 files can also write *.csv files. Although the files are bigger, they are much easier to read.