Page 1 of 1

.net connection error after build

Posted: Wed Mar 30, 2011 5:32 pm
by shanemichelon
Hi all. I am attempting to build a hello world project usng .net assemblies to connect to Jade. I have a strange error occuring. After a project build, when I run the poject I get the following error on the connection line:

error: The invoked member is not supported in a dynamic assembly



Dim Jcp As New JadeConnectionParams("D:\Greentree\DotNet\System", "D:\Greentree\DotNet\jadeGT.ini", _
JadeDBConnection.ConnectionType.MultiUser, "DotNetSchema", "DotNetConnect", "esa", "", 1)

con = New JadeDBConnection(Jcp)

I have built the project in C# but get the same error. The really strange part is that if I clear the orphaned connection using Jade Monitor and then rerun the app, it works. I have attempted to build the .Net assemblies using different versions of the framework, but still get the same error.

I am using Visual Studio 2010 .Net framework version 4 and Jade version 6.3.05.

Any pointers would be appreciated,

regards,

Shane Michelon

Re: .net connection error after build

Posted: Thu Mar 31, 2011 10:45 am
by PeterR
I notice you say that you are using ".Net framework version 4 and Jade version 6.3.05"
The JADE 6.3 .NET API uses .NET 3.5. A web search for your error, indicates there may be an issue if using .NET4.

Do you still have problem if you target your application for .NET3.5?

Re: .net connection error after build

Posted: Thu Mar 31, 2011 12:37 pm
by shanemichelon
First of all I would like to thank you for your pompt reply. So often I see forum requests for help go unanswered (on other forums). So Thanks.

Now, to the probem. I openned the exposure project an changed the target to 3.5 and recompiled. Then I replaced the DLLs in the test project. Then I changed it's targeted framework to 3.5 and cleaned and rebuilt. When I run it for the first time I get the same error: 'The invoked member is not supported in a dynamic assembly'

The I run Jade Monitor and 'Force Off' the node created by the conection attempt and then without recompiling, rerun the project. Now it works.Ie, same issue as originally.

Regards,

Shane Michelon

Re: .net connection error after build

Posted: Tue Apr 05, 2011 1:26 pm
by PeterR
Well its got me stumped. I suggest you package up a reproducer and put in a contact with JADE support.