Re: How to debug in function AuthenticateToken()

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Julie Lerman (jlermanATNOSPAMPLEASEthedatafarm.com)
Date: 10/06/04


Date: Wed, 6 Oct 2004 10:37:49 -0400

actually, it's not always so easy for some reason and I finally figured out
how to get it to work when it doesn't. The issue isn't this particular code
but just some wierdness with debugging into web services when you have a
windows forms project and the web service project loaded into the same
solution. Tryingn to start the debugger in the windows form and have it also
debug the web service is a little funky.

Here is an article on builder.com that explains how to ensure that you can
debug into the webservice code as well.
http://builder.com.com/5100-6373-5035019.html

Also, remember an important thing about that authenticatetoken function. It
gets hit before ANYTHING, since it is checking to see if you are even
allowed to hit the web service it self. So when you debug, you will go to
this functino before you go to the web method itself.

I definitely need to blog about this.
hope it helps

julie
"Hervey Wilson [MSFT]" <herveyw.nospam@nospam.microsoft.com> wrote in
message news:%23S6UqF3qEHA.3428@TK2MSFTNGP11.phx.gbl...
> Shen wrote:
> > I tried to set a breakpoint in AuthenticateToken() function for a class
> > inherited from UsernameTokenManager class, and it seems that the VS .NET
2003
> > will never hit that breakpoint.
> >
> > Also, I used Debug.WriteLine method, and it does not seem to work
either.
> >
> > How should I debug in function AuthenticateToken()?
> >
>
> See the earlier posting in this group called "Debug Into Custom
> UsernameTokenManager". Basically, you must ensure that Visual Studio has
> loaded the symbols for your token manager in order to have the
> breakpoint take effect.
>
>
> --
> This posting is provided "AS IS", with no warranties, and confers no
rights.



Relevant Pages

  • Re: regsvr32 error code 0x80004002
    ... My breakpoint isn't hit yet, but there's a warning with odd syntax. ... See if those registry entries did indeed get ... debug version? ...
    (microsoft.public.vc.mfc)
  • Re: Heip on debugging
    ... is allowed in this website with the Internet Services Manager. ... After that, start a debug build in VS.NET (or alternately, start Internet ... should be able to hit the breakpoint once the compile is complete. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Cant debug some projects
    ... In one of the solutions, I can set breakpoints in the web service, and hit ... breakpoint will not currently be hit. ... The configuration shows "Debug" for all projects in both solutions. ...
    (microsoft.public.vsnet.debugging)
  • Re: Heip on debugging
    ... Have checked the .pdb files and they are of same ... (All other projects on the web server debug ok!) ... > should be able to hit the breakpoint once the compile is complete. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Basic Sql Sink Sample
    ... Check to make sure that the EventSinks projects have been compiled in debug ... Crockett ... > Writeand the breakpoint is never hit. ...
    (microsoft.public.vsnet.enterprise.tools)