468,457 Members | 1,764 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,457 developers. It's quick & easy.

A question about IHTTPModule and debugging

Hi,

We have been trying to develop an IHTTPModule (that was supposed to replace
or take over the ISAPI Filters, as far as we know). We have developed one in
C# and it seems to be working. The problem is that it is not working as it
is supposed to work and we *need* to debug it. We made a search on MSDN
already. Either my search keywords were irrelevant (we used <IHTTPModule
debug> and <IHTTPModule debugging>, without the greater and smaller signs.
We got no relevant results).

We have a support deal with Microsoft. We would like to have support on this
issue and we would also like to have more information about how your support
deals/support contracts work (It said 5-pack support. What goes into a pack?
Also what happens after 5? Do we pay per incident? Or can we buy a 5-pack
more? A URL or document that could enlighten us about these questions would
be valuable).

To repeat our real problem: We could not manage to debug an IHTTPModule with
Just-In-Time debugging (meaning debugging from VS.NET with step into and
break points). We would like support on this issue. We can provide further
details (like we tried all 3 Isolation modes in the web application Low,
Medium, Isolated. We tried this and that etc. if you ask for details).
Nov 18 '05 #1
2 2178
Hi Kenneth,

I never had problems debugging IHttpModules so far. If your breakpoint does
not work
this indicates that either the module is never loaded, the debugger is not
attached to
the application, or the code containing your breakpoint is never executed.

Make sure you have
1. configured your IHttpModule in web.config (httpModules section)
2. compiled your module in Debug mode
3. started the web app from within VS using "Debug" or attached the debugger
to the ASP.NET worker process after starting the app

Then, try to set a breakpoint in "void Init(HttpApplication context)". If it
still doesn't work, may you can give us a minimal code example of
what you're doing along with httpModules part of your web.config.

--
Dennis

"Kenneth Myhra" <ke**********@hotmail.com> schrieb im Newsbeitrag
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Hi,

We have been trying to develop an IHTTPModule (that was supposed to replace or take over the ISAPI Filters, as far as we know). We have developed one in C# and it seems to be working. The problem is that it is not working as it
is supposed to work and we *need* to debug it. We made a search on MSDN
already. Either my search keywords were irrelevant (we used <IHTTPModule
debug> and <IHTTPModule debugging>, without the greater and smaller signs.
We got no relevant results).

We have a support deal with Microsoft. We would like to have support on this issue and we would also like to have more information about how your support deals/support contracts work (It said 5-pack support. What goes into a pack? Also what happens after 5? Do we pay per incident? Or can we buy a 5-pack
more? A URL or document that could enlighten us about these questions would be valuable).

To repeat our real problem: We could not manage to debug an IHTTPModule with Just-In-Time debugging (meaning debugging from VS.NET with step into and
break points). We would like support on this issue. We can provide further
details (like we tried all 3 Isolation modes in the web application Low,
Medium, Isolated. We tried this and that etc. if you ask for details).

Nov 18 '05 #2
Thanks Dennis, the problem was that I didn't manually attach to the asp .net
worker process, now it works.

-Kenneth

"Dennis Homann" <anonymous@discussions> wrote in message
news:ud**************@TK2MSFTNGP09.phx.gbl...
Hi Kenneth,

I never had problems debugging IHttpModules so far. If your breakpoint does not work
this indicates that either the module is never loaded, the debugger is not
attached to
the application, or the code containing your breakpoint is never executed.

Make sure you have
1. configured your IHttpModule in web.config (httpModules section)
2. compiled your module in Debug mode
3. started the web app from within VS using "Debug" or attached the debugger to the ASP.NET worker process after starting the app

Then, try to set a breakpoint in "void Init(HttpApplication context)". If it still doesn't work, may you can give us a minimal code example of
what you're doing along with httpModules part of your web.config.

--
Dennis

"Kenneth Myhra" <ke**********@hotmail.com> schrieb im Newsbeitrag
news:eQ**************@TK2MSFTNGP09.phx.gbl...
Hi,

We have been trying to develop an IHTTPModule (that was supposed to replace
or take over the ISAPI Filters, as far as we know). We have developed one in
C# and it seems to be working. The problem is that it is not working as

it is supposed to work and we *need* to debug it. We made a search on MSDN
already. Either my search keywords were irrelevant (we used <IHTTPModule
debug> and <IHTTPModule debugging>, without the greater and smaller signs. We got no relevant results).

We have a support deal with Microsoft. We would like to have support on

this
issue and we would also like to have more information about how your

support
deals/support contracts work (It said 5-pack support. What goes into a

pack?
Also what happens after 5? Do we pay per incident? Or can we buy a 5-pack more? A URL or document that could enlighten us about these questions

would
be valuable).

To repeat our real problem: We could not manage to debug an IHTTPModule

with
Just-In-Time debugging (meaning debugging from VS.NET with step into and
break points). We would like support on this issue. We can provide further details (like we tried all 3 Isolation modes in the web application Low,
Medium, Isolated. We tried this and that etc. if you ask for details).


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by moid | last post: by
2 posts views Thread by Kenneth Myhra | last post: by
2 posts views Thread by silesius | last post: by
4 posts views Thread by Mike | last post: by
2 posts views Thread by CD | last post: by
6 posts views Thread by Andy G | last post: by
5 posts views Thread by Richard | last post: by
1 post views Thread by Osama Sayed | last post: by
8 posts views Thread by =?Utf-8?B?UGhpbGlw?= | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.