Article View: borland.public.cppbuilder.deployment
Article #269Windows 2003 Server and LoadLibrary
From: Kevin
Date: Tue, 12 Oct 2004 04:24
Date: Tue, 12 Oct 2004 04:24
20 lines
1708 bytes
1708 bytes
Hi
I have an existing service that has been running fine on Windows 2000 server
for ages. It makes use of a third party dll that is loaded shortly after
the service starts up, using LoadLibrary("c:\fullpath\thedll.dll"). I
recently had to move the service over to a Windows 2003 server and now the
LoadLibrary fails with error code 126 (module not found). I call a
FileExist before the LoadLibrary to verify that the dll is in fact where
expected (and it is...). Stranger still is that if I run the service in its
debug (application) form instead it loads the library fine. I have double
(and triple and quadruple) checked the file paths etc. I have registered
the dll correctly.
I know that Windows 2003 server has increased security features but I can't
find anything that seems related. Is there something obvious here that I'm
missing? Anybody else had this problem?
Thanks
Kev
Technical Details
Message-ID:
<416b5c63$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f8e54,e71a775ea270dd24,start X-Google-Attributes: gidf8e54,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Kevin" <kevandtish@xtra.co.nz> Newsgroups: borland.public.cppbuilder.deployment Subject: Windows 2003 Server and LoadLibrary Date: Tue, 12 Oct 2004 17:24:00 +1300 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 203.97.8.98 Message-ID: <416b5c63$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097555043 203.97.8.98 (11 Oct 2004 21:24:03 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail