Community
Showing results for 
Search instead for 
Do you mean 
Reply

SDK V17 URGENT REQUEST - Product Version Mismatch

Bronze Elite Contributor
Posts: 1,409
Country: United_Kingdom

SDK V17 URGENT REQUEST - Product Version Mismatch

[ Edited ]

I have written a small C# script with SDK v16, which I want to port over to v17.

 

All I want to do for now is log into the v17 databse - so its very basic:

 

   ActFramework _framework = new ActFramework();
   _framework.LogOn("<path>.pad","<user>", "<pass>");

 

I am using the Globals Assemblies of my ACT v17 installation medium.

(exact path is: ACT\Install\ACTWG\GlobalAssemblyCache\ )

 

Act.Framework

Act.Data

Act.Shared.Collections

Act.Shared.ComponentModell

 

All seems correct to me. Nevertheless the program crashes with a Product Version Mismatch Exception:

Unhandled Exception: Act.Framework.ProductVersionMismatchException: Error in the application.

 

Am I missing something?

Getting a bit desperate.

Copper Super Contributor
Posts: 52
Country: United_Kingdom

Re: SDK V17 URGENT REQUEST - Product Version Mismatch

Hello ch1p,

 

I have a couple of questions.

 

- Is your application a desktop application or web application?

- When adding references to the Act! libraries dd you copy the to your project directory?

- Have you opened the database in Act! v17 before attempting to open with your application?

 

Kind regards,

 

 

Russell

Bronze Elite Contributor
Posts: 1,409
Country: United_Kingdom

Re: SDK V17 URGENT REQUEST - Product Version Mismatch

Hi, 

 

Thanks for your reply.

 

It is a desktop console application in C#.

 

I tried all sorts of variations of getting the libraries in.

With physical copies in the folders and with references only, with copy flags on and off.

 

I got it to run though on a different machine(one which has the v17 client installed).

 

Here is the thing:

I had developed it on a v16 local installation.

Then I just replaced the libraries and tried to make it talk to the v17 installation on a remote server (already running before the program ist started, to answer your question).

 

Can it be that the v16 installation interferes with the libs that the project wants to use? (I am thinking some more general ACT related DLLs).

Copper Super Contributor
Posts: 52
Country: United_Kingdom

Re: SDK V17 URGENT REQUEST - Product Version Mismatch

Hi ch1p,

 

Usually I would create a folder inside my project called ACTDlls or something similar. You should copy the Act! libraries into this directory and reference from here.

 

You do not need to include them when compiling. A standalone exe should be able to access an Act! database.

 

You should use the files from the oldest version of Act! you want to support.

 

I hope this helps.

 

Regards,

 

 

Russell

 

Bronze Elite Contributor
Posts: 1,409
Country: United_Kingdom

Re: SDK V17 URGENT REQUEST - Product Version Mismatch

Russell, 


Thanks for you help.

 

Regards,

Copper Super Contributor
Posts: 52
Country: United_Kingdom

Re: SDK V17 URGENT REQUEST - Product Version Mismatch

[ Edited ]

Hi ch1p,

 

Not a problem at all.

 

Did you manage to solve the issue you were having?

 

Regards,

 

 

Russell

Bronze Elite Contributor
Posts: 1,409
Country: United_Kingdom

Re: SDK V17 URGENT REQUEST - Product Version Mismatch

Yes thanks.

 

Managed to find an exact match on SDK and ACT V17 versions.

 

Thanks agin for your help