I'm trying to use MIKE DHI Matlab toolbox 2014 on MATLAB 2013a, to process MIKE 2012 output files. While executing the example scripts I'm getting the following error:

>> read_dfs0

Error using read_dfs0 (line 17)

Message: The type initializer for

'DHI.Generic.MikeZero.DFS.DfsDLLAccess' threw an exception.

Source: DHI.Generic.MikeZero.DFS

HelpLink:

Further I've tried to locate the DLL file and linked with the program, but the error continues. I copied assembly files (DHI.Generic.MikeZero.DFS.dll, DHI.Generic.MikeZero.EUM.dll ) from .NET folder to ../2012/bin folder and then built the "MatlabDfsUtil.2012.dll" file using "MatlabDfsUtilBuild.bat" linking the .DFS and .EUM dll files. Still the error continues.

Please help me out of this.


Thanks in Advance

Murali