11-10-2014 02:37 AM - edited 11-10-2014 03:25 AM
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\ )
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.
11-10-2014 05:45 AM
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?
11-10-2014 06:33 AM
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).
11-10-2014 08:33 AM
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.