473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 2352
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: moid | last post by:
Sir we are implementing front controller in asp.net. we implement three event-handler 1. PreRequestHandlerExecute 2. PostRequestHandlerExecute 3. BeginRequest we just want to initialize...
2
by: Kenneth Myhra | last post by:
Hi, We are trying to make an authorization module for our web dav folder using ..NET and implementing the IHttpModule. We have already done this in a previous version of our product, with an...
2
by: silesius | last post by:
Hi all, I'm using Visual Studio to create an HttpModule. I created a class library project added my code and two directives System and System.Web, but every time I try to compile it gives me this...
4
by: Mike | last post by:
I've created a custom IHttpModule that does custom authentication. Currently it stores authenticated user info in a hashtable within the class so I don't have to re-authenticate against a database...
2
by: CD | last post by:
Hi, I have created a HttpModule to do some preprocessing for a web application. This preprocessing is to be done before each page of the application is loaded. I have created a separate project...
6
by: Andy G | last post by:
I am trying to implement the global error handling described on this page... http://www.dotnetdevs.com/articles/GlobalErrorHandling.aspx I'm a VB person and don't understand much of C# when it...
5
by: Richard | last post by:
I've developed a small ASPX template framework (based on Chun Li's article on CodeProject: http://www.codeproject.com/aspnet/headerfooter.asp#xx849313xx) which uses a IHttpModule to apply...
1
by: Osama Sayed | last post by:
I have a class that implements IHttpModule to handle URLs with a "RESTful" nature. It handles them according to a custom configuration section in the website's Web.Config file. My questions are:...
8
by: =?Utf-8?B?UGhpbGlw?= | last post by:
When is the IHttpModule Dispose driven ?....at application recycle time ? I developed a test HttpModule to trace INIT, BeginRequest, EndRequest and Dispose....and the Dispose never gets driven. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.