debugging httphandlers

Discussion in 'ASP .Net' started by =?Utf-8?B?c2hlZmFsaQ==?=, Jan 20, 2005.

  1. Hi,

    I've done the following but am failing to reach breakpoints in the code for
    my httphandlers:

    1. in VS created a breakpoint on the first line of code in the method
    ProcessRequest.

    2. In that same solution space, created a web application.

    3. copied the debug version of the httphandler dll to the bin dir of the web
    app

    4. attached to process aspnet_wp.exe, chosen clr and script as the types of
    program to debug.

    5. created a debug version of the web app, ran it in debug mode, it never
    reaches the breakpoint.

    What am I doing wrong?

    Thanks.
    -Shefali
     
    =?Utf-8?B?c2hlZmFsaQ==?=, Jan 20, 2005
    #1
    1. Advertising

  2. ok, some more, and I could debug my handlers!

    1. launch just-in-time debugging by adding the following code as the first
    line of code in rocessRequest:

    System.Diagnostics.Debugger.Launch();

    2. ran program, got an access denied error. searched MSDN for 'just-in-time
    debugging errors', and found instructions to add ASPNET to the debuggers
    group.

    -Shefali

    "shefali" wrote:

    > Hi,
    >
    > I've done the following but am failing to reach breakpoints in the code for
    > my httphandlers:
    >
    > 1. in VS created a breakpoint on the first line of code in the method
    > ProcessRequest.
    >
    > 2. In that same solution space, created a web application.
    >
    > 3. copied the debug version of the httphandler dll to the bin dir of the web
    > app
    >
    > 4. attached to process aspnet_wp.exe, chosen clr and script as the types of
    > program to debug.
    >
    > 5. created a debug version of the web app, ran it in debug mode, it never
    > reaches the breakpoint.
    >
    > What am I doing wrong?
    >
    > Thanks.
    > -Shefali
     
    =?Utf-8?B?c2hlZmFsaQ==?=, Jan 22, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Richard Brookes

    Using httpHandlers to allows access to mp3 files

    Richard Brookes, Jul 9, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    404
    Richard Brookes
    Jul 9, 2003
  2. Simen
    Replies:
    1
    Views:
    688
    Jason Chen
    Jul 24, 2003
  3. Chance Hopkins

    httpHandlers machine.config all applications

    Chance Hopkins, Oct 24, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,642
    Chance Hopkins
    Oct 24, 2003
  4. Patrick Kristiansen

    Clearing HTTPHandlers

    Patrick Kristiansen, Nov 1, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    391
    John Saunders
    Nov 2, 2003
  5. Rajagopalan

    Adding WebControls in HttpHandlers

    Rajagopalan, Jan 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    328
    John Saunders
    Jan 16, 2004
Loading...

Share This Page