EDN Admin
Well-known member
Hello guys,
I am trying to work with HDF5 file format in .net 2008. There are some dlls (HDF5DotNet.dll) provided by HDF5 group but I am having difficulty invoking it. I get
"Could not load file or assembly HDF5DotNet, Version=1.0.2616.13243, Culture=neutral, PublicKeyToken=null or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)"
the moment I run the code even after including reference. I get all possible complitions if I type "HDF5." but it just does not run. Even a small program like:
<font color="#0000ff" size=2><font color="#0000ff" size=2>
using</font></font><font size=2> System;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Collections.Generic;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.ComponentModel;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Data;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Drawing;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Linq;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Text;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Windows.Forms;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> HDF5DotNet; </font><font color="#0000ff" size=2><font color="#0000ff" size=2>
namespace</font></font><font size=2> WindowsFormsApplication2
{
</font><font color="#0000ff" size=2><font color="#0000ff" size=2> public</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>partial</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>class</font></font> <font color="#2b91af" size=2><font color="#2b91af" size=2>Form1</font></font><font size=2> : </font><font color="#2b91af" size=2><font color="#2b91af" size=2>Form
{</font></font><font size=2> </font><font size=2>
</font><font color="#0000ff" size=2><font color="#0000ff" size=2> public</font></font><font size=2> Form1()
{
InitializeComponent();
}
</font><font color="#0000ff" size=2><font color="#0000ff" size=2> private</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>void</font></font><font size=2> Form1_Load(</font><font color="#0000ff" size=2><font color="#0000ff" size=2>object</font></font><font size=2> sender, </font><font color="#2b91af" size=2><font color="#2b91af" size=2>EventArgs</font></font><font size=2> e)
{
</font><font color="#2b91af" size=2><font color="#2b91af" size=2>H5FileId</font></font><font size=2> fileId;</font><font color="#008000" size=2><font color="#008000" size=2>// = H5F.create("myCSharp.h5", H5F.CreateMode.ACC_TRUNC);
</font></font><font size=2> }
}
} </font>
So I have started to wonder if it works with .net 2008. If any one has worked with HDF5 please let me know if I am to do any extra settings.
Thanks in advance
View the full article
I am trying to work with HDF5 file format in .net 2008. There are some dlls (HDF5DotNet.dll) provided by HDF5 group but I am having difficulty invoking it. I get
"Could not load file or assembly HDF5DotNet, Version=1.0.2616.13243, Culture=neutral, PublicKeyToken=null or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)"
the moment I run the code even after including reference. I get all possible complitions if I type "HDF5." but it just does not run. Even a small program like:
<font color="#0000ff" size=2><font color="#0000ff" size=2>
using</font></font><font size=2> System;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Collections.Generic;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.ComponentModel;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Data;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Drawing;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Linq;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Text;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> System.Windows.Forms;
</font><font color="#0000ff" size=2><font color="#0000ff" size=2>using</font></font><font size=2> HDF5DotNet; </font><font color="#0000ff" size=2><font color="#0000ff" size=2>
namespace</font></font><font size=2> WindowsFormsApplication2
{
</font><font color="#0000ff" size=2><font color="#0000ff" size=2> public</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>partial</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>class</font></font> <font color="#2b91af" size=2><font color="#2b91af" size=2>Form1</font></font><font size=2> : </font><font color="#2b91af" size=2><font color="#2b91af" size=2>Form
{</font></font><font size=2> </font><font size=2>
</font><font color="#0000ff" size=2><font color="#0000ff" size=2> public</font></font><font size=2> Form1()
{
InitializeComponent();
}
</font><font color="#0000ff" size=2><font color="#0000ff" size=2> private</font></font> <font color="#0000ff" size=2><font color="#0000ff" size=2>void</font></font><font size=2> Form1_Load(</font><font color="#0000ff" size=2><font color="#0000ff" size=2>object</font></font><font size=2> sender, </font><font color="#2b91af" size=2><font color="#2b91af" size=2>EventArgs</font></font><font size=2> e)
{
</font><font color="#2b91af" size=2><font color="#2b91af" size=2>H5FileId</font></font><font size=2> fileId;</font><font color="#008000" size=2><font color="#008000" size=2>// = H5F.create("myCSharp.h5", H5F.CreateMode.ACC_TRUNC);
</font></font><font size=2> }
}
} </font>
So I have started to wonder if it works with .net 2008. If any one has worked with HDF5 please let me know if I am to do any extra settings.
Thanks in advance
View the full article