Article View: borland.public.cppbuilder.deployment
Article #270Re: Windows 2003 Server and LoadLibrary
From: Mark Guerrieri
Date: Wed, 13 Oct 2004 16:13
Date: Wed, 13 Oct 2004 16:13
35 lines
2305 bytes
2305 bytes
Is it possible that the account the service is running in on the new box
does not have rights to load the dll? Not overly familiar with MS file
system rights, but could the account have file scan rights (which would
allow FileExist to succeed) but not read/and or execute rights?
Mark
"Kevin" <kevandtish@xtra.co.nz> wrote in message
news:416b5c63$1@newsgroups.borland.com...
> 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:
<416d5440$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<416b5c63$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f8e54,e71a775ea270dd24 X-Google-Attributes: gidf8e54,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Mark Guerrieri" <mguerrieri@cmsgrp.com> From: "Mark Guerrieri" <mguerrieri@cmsgrp.com> Newsgroups: borland.public.cppbuilder.deployment References: <416b5c63$1@newsgroups.borland.com> Subject: Re: Windows 2003 Server and LoadLibrary Date: Wed, 13 Oct 2004 12:13:59 -0400 Lines: 37 Organization: Creative Marketing Strategies X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 66.200.143.50 Message-ID: <416d5440$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097684032 66.200.143.50 (13 Oct 2004 09:13:52 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail