Frage

I'm creating a windows service. This service has to read data from an Advantage Database once a day.

I copied the Advantage database on my computer and it works fine but when I try the service on the server I have the following error :

"AdsException : Error 6082: Error loading the Advantage Local Server library."

According to the doc (link) I have to put the ADSLOC32.DLL in \WINDOWS\SYSTEM directory.

I try that but it does not work.

Any ideas?

EDIT : I created a console application that executes exactly the same code as my windows service, and it works exactly as it should. It seems that the problem is from my service, but I don't know what part of my service is wrong...

EDIT 2 : I checked with the process monitor and my service doesn't try to load adsloc32.dll, it tries to load adsloc64.dll. I did not found an adsloc64.dll file so I make a copy of adsloc32.dll to my application directory and named it adsloc64.dll but it didn't work.

War es hilfreich?

Lösung

I found the solution.

I used Process Monitor from Windows Sysinternals to know from where the program tries to load the dll files. And it wasn't trying to load adsloc32.dll, it was loading adsloc64.dll.

I just put the adsloc64.dll file to my application directory and it works now.

Andere Tipps

Try putting adsloc32.dll to the same directory as your application. Maybe there are some problems with rights

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top