문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top