Jose
Thank you very much. I suspected that it was an issue like this, which is
why I copied the .pdb file to System32.
That didn't work, and your approach did.
Regards
David
"José Joye" <jose.joye@__No_SPam__bluewin__maPS_oN__.ch> wrote in message
news:(E-Mail Removed)...
> When I create a service, what I normally do is to set the default
directory
> where the main assembly is located.
> Right at the beginning of OnStart(), I add the following:
>
> Process pc = Process.GetCurrentProcess();
> Directory.SetCurrentDirectory
>
(pc.MainModule.FileName.Substring(0,pc.MainModule.FileName.LastIndexOf(@"\")
> ));
>
> By the way, if I remember correctly, the default directory for a Service
is
> the \System32 dir. Since you tried to place the PDB(s) in the \System32,
I'm
> not sure it will solve your particular problem.
>
> Grive a try ;-)
>
> José
>
> "David Evans" <(E-Mail Removed)> a écrit dans le message de
> news:(E-Mail Removed)...
> > Hi
> >
> > I have a service created in VS.NET, which I can install and run quite
> > happily. After teh service is running, I can attach and run the
debugger.
> >
> > However, if I set a breakpoint in the IDE the break point is
(presumably)
> > hit, but after a long pause there is an error that says "Source code
> cannot
> > be found"
> >
> > I have tried:
> > putting the .pdb file into the install direcory and Windows\System32
> > installing into the default bin\Debug directory that VS.NET builds in
> >
> > Any help appreciated - debugging using trace is no fun...
> >
> > Regards
> >
> > David
> >
> >
>
>
|