To debug a service, after all the things already discussed have been done to
get your service installed, open the service project and open a client or
service consumer project. Attach the debugger to the consumer project and
set a break point in your service.
HTH
Dale Preston
MCAD, MCDBA, MCSE
"cyshao" <(E-Mail Removed)> wrote in message
news:uR#(E-Mail Removed)...
> How to debug a service ?
>
> Hi, friends:
>
> I created a new C# service project and wrote some log in OnStart()
> function.
> But when I type F5 to debug it, system prompt me
> "Can't debug a service program by debugger. Please use
installutil.exe
> to install it."
>
> So, I tried to use " installutil MyPorgram.exe". But there is an error
> written in logfile.
> I don't know what does "public installers " mean ? What shall I do to
> solve that?
>
> Thanks
>
> Charles Shao :-)
>
> ------------------------------Log File -----------------------------------
>
> No public installers with the RunInstallerAttribute.Yes attribute could be
> found in the
>
d:\project\directoryservices\directoryservices\agent\bin\deubgunittests\asti
> .bos.directoryservices.agent.exe assembly.
> Remove InstallState file because there are no installers.
>
>
>
|