I have a C# library Cryptography.dll made in C# (by a third party) that exports a class X.
I need to instantiate that class and excecute its methods from java.
For that I'm trying DotNetFromJava.
The first step sopose me to excecute the following line:

java -cp .\dotnetfromjava.jar gr.dotnetfromjava.codegen.Net2JCodeGen fullPathToTheDLL

That throws the following exception:

C:\dotnetfromjava1.1>java -cp .\dotnetfromjava.jar gr.dotnetfromjava.codegen.Net
2JCodeGen C:\dotnetfromjava1.1\lib\Cryptography.dll
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\dotnetfromjava1.1\
gr.DotNetFromJava.cpp.dll: This application has failed to start because the appl
ication configuration is incorrect. Reinstalling the application may fix this pr
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.jav a:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java :1703)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at gr.dotnetfromjava.base.NETManager.<clinit>(NETMana ger.java:50)
at gr.dotnetfromjava.codegen.Net2JCodeGen.main(Net2JC odeGen.java:33)

Any suggestions are welcome.

Thanks in advance,