Basic question concerning the HDF5 .Net wrapper

Hello,

Does anyone knows what are the settings or packages required to be able to
run the file "hdf5csharptest.bat" provided on the HDFGroup web site ?

(ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/Csharp-prototype/HDF5dotNet.z
ip)

It successfully run on a computer having Visual Studio 2005 installed (and
many other things), but not on another that doesn't. The error message we
get is pasted at the bottom of this email.

We developed a C# application that use the C# wrappers and it has the same
behaviour. We would like to be able to run the program on a computer that
doesn't have Visual Studio installed.

So, simply knowing what is required to be able to run the package downloaded
from the HDFGroup on a freshly installed Windows XP would solve our problem.

Any help on this would be greatly appreciated !

Thanks,

Jean

P.S. We tried installing the "Microsoft Visual C++ 2005 Redistributable
Package", but it doesn't solved the problem.

···

================================

Testing C# API tests - limited

================================

cd h5files\bin\Debug

Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembl

y 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral, PublicKeyToken=null'
or

one of its dependencies. This application has failed to start because the
applic

ation configuration is incorrect. Reinstalling the application may fix this
prob

lem. (Exception from HRESULT: 0x800736B1)

File name: 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=

null' ---> System.Runtime.InteropServices.COMException (0x800736B1): This
applic

ation has failed to start because the application configuration is
incorrect. Re

installing the application may fix this problem. (Exception from HRESULT:
0x8007

36B1)

   at h5files.Program.Main(String[] args)

cd h5groups\bin\Debug

Jean

You may have the HDF5DOTNET.DLL in your %PATH% but HDF5DOTNET.DLL depends
upon other DLLs.

You can use http://www.dependencywalker.com/ utility to check if all the
other DLLs are found.

I also use the Cygwin 'cygcheck' program from the BASH command line to
verify that all DLLs are found.

John Huddleston, PhD

···

_____

From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Friday, February 20, 2009 10:42 PM
To: hdf-forum@hdfgroup.org
Subject: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Hello,

Does anyone knows what are the settings or packages required to be able to
run the file "hdf5csharptest.bat" provided on the HDFGroup web site ?

(ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/Csharp-prototype/HDF5dotNet.z
ip)

It successfully run on a computer having Visual Studio 2005 installed (and
many other things), but not on another that doesn't. The error message we
get is pasted at the bottom of this email.

We developed a C# application that use the C# wrappers and it has the same
behaviour. We would like to be able to run the program on a computer that
doesn't have Visual Studio installed.

So, simply knowing what is required to be able to run the package downloaded
from the HDFGroup on a freshly installed Windows XP would solve our problem.

Any help on this would be greatly appreciated !

Thanks,

Jean

P.S. We tried installing the "Microsoft Visual C++ 2005 Redistributable
Package", but it doesn't solved the problem.

================================

Testing C# API tests - limited

================================

cd h5files\bin\Debug

Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembl

y 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral, PublicKeyToken=null'
or

one of its dependencies. This application has failed to start because the
applic

ation configuration is incorrect. Reinstalling the application may fix this
prob

lem. (Exception from HRESULT: 0x800736B1)

File name: 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=

null' ---> System.Runtime.InteropServices.COMException (0x800736B1): This
applic

ation has failed to start because the application configuration is
incorrect. Re

installing the application may fix this problem. (Exception from HRESULT:
0x8007

36B1)

   at h5files.Program.Main(String[] args)

cd h5groups\bin\Debug

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.2/1963 - Release Date: 02/20/09
19:22:00

Thank you John

That is very kind. I have started to investigate using the Dependency Walker
you suggest me on the
C:\HDF5\HDF5dotNet\tests\h5files\bin\Debug\h5files.exe. However the program
shows the same result on both computer.

That is, the computer on which the csharp wrapper test batch file succeed
and the one on which is fails shows the same number of modules (126)
dependency and it shows that all the required modules are present on both
computers. (I'm not sure to fully understand that tool however as the
HDF5DOTNET.DLL does not appears in the list.) Maybe comparing the File
Version of each of the 126 DLLs would reveals some discrepancies, but that
is a long road from there I believe.

That is why I would hope that someone knows what is needed to be able to run
the C:\HDF5\HDF5dotNet\tests\hdf5csharptest.bat test batch file. Up to now
the requirements list I am building is:

- Windows XP Service pack 3;

- HDF5dotNet.zip (unzipped into the c:\HDF5 folder);

I kept thinking that installing the Visual Studio C# is not required to run
a program developed with the csharp wrapper, but I may be wrong. Also, I
have made some tests adding the following DLLs into the C:\Windows\System32
folder:

- hdf5dll.dll, szlibdll.dll, szlibdll.lib and HDF5DotNet.dll.

Jean

PS I'm not sure if replying to an e-mail with the hdf-forum@hdfgroup.org in
CC is good practice. Sorry if it's not. I could eventually send only the
answer to my question, if I found it.

···

From: John Huddleston [mailto:jhuddleston@hughes.net]
Sent: February-21-09 9:58 AM
To: 'Jean Gilbert'; hdf-forum@hdfgroup.org
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Jean

You may have the HDF5DOTNET.DLL in your %PATH% but HDF5DOTNET.DLL depends
upon other DLLs.

You can use http://www.dependencywalker.com/ utility to check if all the
other DLLs are found.

I also use the Cygwin 'cygcheck' program from the BASH command line to
verify that all DLLs are found.

John Huddleston, PhD

  _____

From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Friday, February 20, 2009 10:42 PM
To: hdf-forum@hdfgroup.org
Subject: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Hello,

Does anyone knows what are the settings or packages required to be able to
run the file "hdf5csharptest.bat" provided on the HDFGroup web site ?

(ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/Csharp-prototype/HDF5dotNet.z
ip)

It successfully run on a computer having Visual Studio 2005 installed (and
many other things), but not on another that doesn't. The error message we
get is pasted at the bottom of this email.

We developed a C# application that use the C# wrappers and it has the same
behaviour. We would like to be able to run the program on a computer that
doesn't have Visual Studio installed.

So, simply knowing what is required to be able to run the package downloaded
from the HDFGroup on a freshly installed Windows XP would solve our problem.

Any help on this would be greatly appreciated !

Thanks,

Jean

P.S. We tried installing the "Microsoft Visual C++ 2005 Redistributable
Package", but it doesn't solved the problem.

================================

Testing C# API tests - limited

================================

cd h5files\bin\Debug

Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembl

y 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral, PublicKeyToken=null'
or

one of its dependencies. This application has failed to start because the
applic

ation configuration is incorrect. Reinstalling the application may fix this
prob

lem. (Exception from HRESULT: 0x800736B1)

File name: 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=

null' ---> System.Runtime.InteropServices.COMException (0x800736B1): This
applic

ation has failed to start because the application configuration is
incorrect. Re

installing the application may fix this problem. (Exception from HRESULT:
0x8007

36B1)

   at h5files.Program.Main(String[] args)

cd h5groups\bin\Debug

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.2/1963 - Release Date: 02/20/09
19:22:00

Hi Jean

If you go to the VS2005 (or VS2008 in my case) command prompt it will set
your %PATH% correctly for running the application you built in VS2005.

I had to add my C:\HDF5-1.8.2\dll and C:\HDF5-1.8.2\bin paths, e.g.

set PATH=%PATH%;C:\HDF5-1.8.2\dll;C:\HDF5-1.8.2\bin

Furthermore, I was missing the msvcm80.dll and msvcr80.dll files so I copied
them from the Microsoft SDK area to the HDF5 bin directory. Of course, I
could have added the SDK path to my %PATH%.

After these two configuration changes all the test cases worked correctly.

John

P.S. If you still have troubles dump the 'cygcheck' output for one of your
test executables and send it to me.

···

-----Original Message-----
From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Monday, February 23, 2009 1:00 PM
To: jhuddleston@hughes.net
Cc: hdf-forum@hdfgroup.org
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Thank you John

That is very kind. I have started to investigate using the Dependency
Walker you suggest me on the
C:\HDF5\HDF5dotNet\tests\h5files\bin\Debug\h5files.exe. However the
program shows the same result on both computer.

That is, the computer on which the csharp wrapper test batch file
succeed and the one on which is fails shows the same number of modules
(126) dependency and it shows that all the required modules are present
on both computers. (I'm not sure to fully understand that tool however
as the HDF5DOTNET.DLL does not appears in the list.) Maybe comparing the
File Version of each of the 126 DLLs would reveals some discrepancies,
but that is a long road from there I believe.

That is why I would hope that someone knows what is needed to be able to
run the C:\HDF5\HDF5dotNet\tests\hdf5csharptest.bat test batch file. Up
to now the requirements list I am building is:

- Windows XP Service pack 3;

- HDF5dotNet.zip (unzipped into the c:\HDF5 folder);

I kept thinking that installing the Visual Studio C# is not required to
run a program developed with the csharp wrapper, but I may be wrong.
Also, I have made some tests adding the following DLLs into the
C:\Windows\System32 folder:

- hdf5dll.dll, szlibdll.dll, szlibdll.lib and HDF5DotNet.dll.

Jean

PS I'm not sure if replying to an e-mail with the hdf-forum@hdfgroup.org
in CC is good practice. Sorry if it's not. I could eventually send only
the answer to my question, if I found it.

From: John Huddleston [mailto:jhuddleston@hughes.net]
Sent: February-21-09 9:58 AM
To: 'Jean Gilbert'; hdf-forum@hdfgroup.org
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Jean

You may have the HDF5DOTNET.DLL in your %PATH% but HDF5DOTNET.DLL
depends upon other DLLs.

You can use http://www.dependencywalker.com/ utility to check if all the
other DLLs are found.

I also use the Cygwin 'cygcheck' program from the BASH command line to
verify that all DLLs are found.

John Huddleston, PhD

________________________________

From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Friday, February 20, 2009 10:42 PM
To: hdf-forum@hdfgroup.org
Subject: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Hello,

Does anyone knows what are the settings or packages required to be able
to run the file "hdf5csharptest.bat" provided on the HDFGroup web site ?

(ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/Csharp-prototype/HDF5dotN
et.zip)

It successfully run on a computer having Visual Studio 2005 installed
(and many other things), but not on another that doesn't. The error
message we get is pasted at the bottom of this email.

We developed a C# application that use the C# wrappers and it has the
same behaviour. We would like to be able to run the program on a
computer that doesn't have Visual Studio installed.

So, simply knowing what is required to be able to run the package
downloaded from the HDFGroup on a freshly installed Windows XP would
solve our problem.

Any help on this would be greatly appreciated !

Thanks,

Jean

P.S. We tried installing the "Microsoft Visual C++ 2005 Redistributable
Package", but it doesn't solved the problem.

================================

Testing C# API tests - limited

================================

cd h5files\bin\Debug

Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembl

y 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=null' or

one of its dependencies. This application has failed to start because
the applic

ation configuration is incorrect. Reinstalling the application may fix
this prob

lem. (Exception from HRESULT: 0x800736B1)

File name: 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=

null' ---> System.Runtime.InteropServices.COMException (0x800736B1):
This applic

ation has failed to start because the application configuration is
incorrect. Re

installing the application may fix this problem. (Exception from
HRESULT: 0x8007

36B1)

   at h5files.Program.Main(String[] args)

cd h5groups\bin\Debug

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.2/1963 - Release Date:
02/20/09 19:22:00

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.2/1965 - Release Date: 02/23/09
07:17:00

----------------------------------------------------------------------
This mailing list is for HDF software users discussion.
To subscribe to this list, send a message to hdf-forum-subscribe@hdfgroup.org.
To unsubscribe, send a message to hdf-forum-unsubscribe@hdfgroup.org.

I am guessing, but for what it's worth....

You did not see the dll in depends, because h5files.exe loads the
HDF5DotNet.dll only when it is first used, not when the program itself
loads. Therefore, you need to either run the profiling option on
depends.exe, which will execute the program, or you need to run
depends.exe on the dll itself, being sure that the dll is in the
location that it will be loaded from.

One of the most irritating things in Windows programming is the fact
that the loader will report any load error as being on the original DLL
you tried to load, even though the actual problem DLL is one that the
original tried to load.

Your problem could very well have to do with the side-by-side assemblies
introcuced in recent versions of Visual Studio. See this page:


side-by-side-problems.aspx

Note that the redistributables for side-by-side are only for release
mode. For debug version code, you will have to jump through a lot of
hoops to get it working on a machine that does not hav Visual Studio
installed on it.

George Lewandowski
(314)777-7890
Mail Code S270-2204
Building 270-E Level 2E Room 20E
P-8A

···

________________________________

From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Monday, February 23, 2009 2:00 PM
To: jhuddleston@hughes.net
Cc: hdf-forum@hdfgroup.org
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Thank you John

That is very kind. I have started to investigate using the Dependency
Walker you suggest me on the
C:\HDF5\HDF5dotNet\tests\h5files\bin\Debug\h5files.exe. However the
program shows the same result on both computer.

That is, the computer on which the csharp wrapper test batch file
succeed and the one on which is fails shows the same number of modules
(126) dependency and it shows that all the required modules are present
on both computers. (I'm not sure to fully understand that tool however
as the HDF5DOTNET.DLL does not appears in the list...) Maybe comparing
the File Version of each of the 126 DLLs would reveals some
discrepancies, but that is a long road from there I believe.

That is why I would hope that someone knows what is needed to be able to
run the C:\HDF5\HDF5dotNet\tests\hdf5csharptest.bat test batch file. Up
to now the requirements list I am building is:

- Windows XP Service pack 3;

- HDF5dotNet.zip (unzipped into the c:\HDF5 folder);

I kept thinking that installing the Visual Studio C# is not required to
run a program developed with the csharp wrapper, but I may be wrong.
Also, I have made some tests adding the following DLLs into the
C:\Windows\System32 folder:

- hdf5dll.dll, szlibdll.dll, szlibdll.lib and HDF5DotNet.dll.

Jean

PS I'm not sure if replying to an e-mail with the hdf-forum@hdfgroup.org
in CC is good practice. Sorry if it's not. I could eventually send only
the answer to my question, if I found it.

From: John Huddleston [mailto:jhuddleston@hughes.net]
Sent: February-21-09 9:58 AM
To: 'Jean Gilbert'; hdf-forum@hdfgroup.org
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Jean

You may have the HDF5DOTNET.DLL in your %PATH% but HDF5DOTNET.DLL
depends upon other DLLs.

You can use http://www.dependencywalker.com/ utility to check if all the
other DLLs are found.

I also use the Cygwin 'cygcheck' program from the BASH command line to
verify that all DLLs are found.

John Huddleston, PhD

________________________________

From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Friday, February 20, 2009 10:42 PM
To: hdf-forum@hdfgroup.org
Subject: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Hello,

Does anyone knows what are the settings or packages required to be able
to run the file "hdf5csharptest.bat" provided on the HDFGroup web site ?

(ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/Csharp-prototype/HDF5dotN
et.zip)

It successfully run on a computer having Visual Studio 2005 installed
(and many other things), but not on another that doesn't. The error
message we get is pasted at the bottom of this email.

We developed a C# application that use the C# wrappers and it has the
same behaviour. We would like to be able to run the program on a
computer that doesn't have Visual Studio installed.

So, simply knowing what is required to be able to run the package
downloaded from the HDFGroup on a freshly installed Windows XP would
solve our problem.

Any help on this would be greatly appreciated !

Thanks,

Jean

P.S. We tried installing the "Microsoft Visual C++ 2005 Redistributable
Package", but it doesn't solved the problem.

================================

Testing C# API tests - limited

================================

cd h5files\bin\Debug

Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembl

y 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=null' or

one of its dependencies. This application has failed to start because
the applic

ation configuration is incorrect. Reinstalling the application may fix
this prob

lem. (Exception from HRESULT: 0x800736B1)

File name: 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=

null' ---> System.Runtime.InteropServices.COMException (0x800736B1):
This applic

ation has failed to start because the application configuration is
incorrect. Re

installing the application may fix this problem. (Exception from
HRESULT: 0x8007

36B1)

   at h5files.Program.Main(String[] args)

cd h5groups\bin\Debug

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.2/1963 - Release Date:
02/20/09 19:22:00

Hi Timothy

I had help for the two person in CC, but I had to make a pause on the
investigation for other priorities I have, unfortunately.

I should resume on this aspect (hopefully) with their help soon. If I found
what is required to be able to run the package I will certainly post it
here.

If you find it before me, please let me know. Good luck !

Thanks,

Jean

···

From: Timothy Ragan [mailto:tragan@MIT.EDU]
Sent: March-07-09 8:52 PM
To: 'Jean Gilbert'
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Hi Jean,

Did you ever get an answer to your question? I had the same problem trying
to run a built with the HDF5 C# wrapper.

Many thanks,

Tim

From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Monday, February 23, 2009 3:00 PM
To: jhuddleston@hughes.net
Cc: hdf-forum@hdfgroup.org
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Thank you John

That is very kind. I have started to investigate using the Dependency Walker
you suggest me on the
C:\HDF5\HDF5dotNet\tests\h5files\bin\Debug\h5files.exe. However the program
shows the same result on both computer.

That is, the computer on which the csharp wrapper test batch file succeed
and the one on which is fails shows the same number of modules (126)
dependency and it shows that all the required modules are present on both
computers. (I'm not sure to fully understand that tool however as the
HDF5DOTNET.DLL does not appears in the list.) Maybe comparing the File
Version of each of the 126 DLLs would reveals some discrepancies, but that
is a long road from there I believe.

That is why I would hope that someone knows what is needed to be able to run
the C:\HDF5\HDF5dotNet\tests\hdf5csharptest.bat test batch file. Up to now
the requirements list I am building is:

- Windows XP Service pack 3;

- HDF5dotNet.zip (unzipped into the c:\HDF5 folder);

I kept thinking that installing the Visual Studio C# is not required to run
a program developed with the csharp wrapper, but I may be wrong. Also, I
have made some tests adding the following DLLs into the C:\Windows\System32
folder:

- hdf5dll.dll, szlibdll.dll, szlibdll.lib and HDF5DotNet.dll.

Jean

PS I'm not sure if replying to an e-mail with the hdf-forum@hdfgroup.org in
CC is good practice. Sorry if it's not. I could eventually send only the
answer to my question, if I found it.

From: John Huddleston [mailto:jhuddleston@hughes.net]
Sent: February-21-09 9:58 AM
To: 'Jean Gilbert'; hdf-forum@hdfgroup.org
Subject: RE: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Jean

You may have the HDF5DOTNET.DLL in your %PATH% but HDF5DOTNET.DLL depends
upon other DLLs.

You can use http://www.dependencywalker.com/ utility to check if all the
other DLLs are found.

I also use the Cygwin 'cygcheck' program from the BASH command line to
verify that all DLLs are found.

John Huddleston, PhD

  _____

From: Jean Gilbert [mailto:logiciels@prominov.com]
Sent: Friday, February 20, 2009 10:42 PM
To: hdf-forum@hdfgroup.org
Subject: [hdf-forum] Basic question concerning the HDF5 .Net wrapper

Hello,

Does anyone knows what are the settings or packages required to be able to
run the file "hdf5csharptest.bat" provided on the HDFGroup web site ?

(ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/hdf5/Csharp-prototype/HDF5dotNet.z
ip)

It successfully run on a computer having Visual Studio 2005 installed (and
many other things), but not on another that doesn't. The error message we
get is pasted at the bottom of this email.

We developed a C# application that use the C# wrappers and it has the same
behaviour. We would like to be able to run the program on a computer that
doesn't have Visual Studio installed.

So, simply knowing what is required to be able to run the package downloaded
from the HDFGroup on a freshly installed Windows XP would solve our problem.

Any help on this would be greatly appreciated !

Thanks,

Jean

P.S. We tried installing the "Microsoft Visual C++ 2005 Redistributable
Package", but it doesn't solved the problem.

================================

Testing C# API tests - limited

================================

cd h5files\bin\Debug

Unhandled Exception: System.IO.FileLoadException: Could not load file or
assembl

y 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral, PublicKeyToken=null'
or

one of its dependencies. This application has failed to start because the
applic

ation configuration is incorrect. Reinstalling the application may fix this
prob

lem. (Exception from HRESULT: 0x800736B1)

File name: 'HDF5DotNet, Version=1.0.2616.13243, Culture=neutral,
PublicKeyToken=

null' ---> System.Runtime.InteropServices.COMException (0x800736B1): This
applic

ation has failed to start because the application configuration is
incorrect. Re

installing the application may fix this problem. (Exception from HRESULT:
0x8007

36B1)

   at h5files.Program.Main(String[] args)

cd h5groups\bin\Debug

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.2/1963 - Release Date: 02/20/09
19:22:00