Re: Windows Service / Registry security

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



14001 is a Side-by-Side (SxS) error. I would imagine that you are linking
to the DLL version of the C runtimes and did not install the appropriate C
runtime DLLs through SxS on the target computer.

--
Ken Johnson (Skywing)
Windows SDK MVP

"Mystagogue" <Mystagogue@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F4EE623B-4F96-4F04-9CF4-8212E4C63647@xxxxxxxxxxxxxxxx
I've taken over legacy code (no documentation of course), where I need to
"drop in" debug builds of executables / DLLs on top of an existing
installation of the legacy app (installed on XP SP1).

One of the executables (built with VS2003) is registered as a service in
the
"services" MMC. When I stop the service, and replace it with a debug
version
of the same exe (built with VS2005), and then restart the service, I get
this
message:

Could not start the <MyApp> service on Local Computer
Error 14001: This application has failed to stat because the application
configuration is incorrect. Reinstalling the application may fix this
problem.

I'm wondering if this is because my debug exe does not have an internal
checksum or ID that correctly matches a registry entry I found in
"HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Services ->
<MyApp> ->
Security". It contains:

Security REG_BINARY 01 00 14 80 90 00 00 00 ... <etc, etc>

In short, I'm making a guess that this app has some security built in
(perhaps leveraging win32 offerings) that tries to match the exe signature
against that registry entry (and unfortunately my debug build doesn't
"pass").

So I'm writing this in hopes that someone can confirm / deny that the
above
registry entry is "telltale" of the signature matching I'm suggesting. If
not, is it "telltale" of any particular windows / win32 idiom?

It may be that the above registry entry is entirely peculiar to the legacy
app. But if it is, unfortunately I have yet to find its origin in the
legacy
code.



.



Relevant Pages

  • Re: WM_TIMER crash (maybe)?
    ... addition, I suspect that, given the debug dialog IS, in fact, a dialog, and therefore it ... For example, if you install VC, it typically installs the ... that you could be replacing older DLLs with the latest redistributable DLLs. ... the rest were system DLLs, including OLE/COM libraries ...
    (microsoft.public.vc.mfc)
  • Re: How are we supposed to remote debug our mixed application?
    ... Do you have any tips on how to install them into the SxS ... Visual Studio on over 120 target systems just so we can debug a failure. ... in this case the DLLs. ... symbols for an optimized build using the release MFC DLLs is very possible. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Graphedit broken
    ... someone posted the steps here on how to extract and install the debug ... DLLs here. ... A Google Groups search will likely find the post. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Release build inconsistant behaviour
    ... What else did you install with it? ... versions of any DLLs your program depends on? ... >some of the WIN2K systems. ... Have a look at "Common Problems Switching from Debug to Release Build" ...
    (microsoft.public.dotnet.languages.vc)
  • Re: userName="machine" didnt work
    ... Juan, ... version) than the .42 dlls. ... Deleted the ASPNET account from "Local Users and Group – ... ASPNET user and allowed the ASP.NET install to re-create it. ...
    (microsoft.public.dotnet.framework.aspnet)