.net connection error after build

For questions and postings not covered by the other forums
shanemichelon
Posts: 2
Joined: Wed Mar 30, 2011 5:24 pm

.net connection error after build

Postby shanemichelon » Wed Mar 30, 2011 5:32 pm

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

PeterR
Posts: 2
Joined: Thu Mar 31, 2011 10:17 am

Re: .net connection error after build

Postby PeterR » Thu Mar 31, 2011 10:45 am

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?

shanemichelon
Posts: 2
Joined: Wed Mar 30, 2011 5:24 pm

Re: .net connection error after build

Postby shanemichelon » Thu Mar 31, 2011 12:37 pm

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

PeterR
Posts: 2
Joined: Thu Mar 31, 2011 10:17 am

Re: .net connection error after build

Postby PeterR » Tue Apr 05, 2011 1:26 pm

Well its got me stumped. I suggest you package up a reproducer and put in a contact with JADE support.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 11 guests