 |
|
 |
|
Next: File download issues from one of our websites
|
| Author |
Message |
External

Since: Jan 18, 2007 Posts: 2
|
(Msg. 1) Posted: Thu Jan 18, 2007 12:11 pm
Post subject: HTTPModule Archived from groups: microsoft>public>inetserver>iis (more info?)
|
|
|
I'm developping a module to count the number of bytes pass to a IIS
server for each request. I am working with IIS 5 and I use C# with .net
framework 2.0
My solution for the moment is a HTTPModule... I compile it and put the
dll in the bin directory of each site under the dfault web site.
Everything work fine with it, but what I want is to be able to produce
a DLL and map it on my Default web site in IIS (Properties->home
directory->configuration->mapping) like an old ISAPI filter. Is it
possible to do it from a HTTPModule ? If not, is there others solutions
?
thx >> Stay informed about: HTTPModule |
|
| Back to top |
|
 |  |
External

Since: Jan 15, 2007 Posts: 6
|
(Msg. 2) Posted: Thu Jan 18, 2007 7:15 pm
Post subject: Re: HTTPModule [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi Dan,
I think you've actually got the right idea here. The HTTP module is the
way you use managed code to acheive your ends in IIS 7. ISAPI filters are
the old way of handling the request - and require native code (C++)
programming. What is it you want to do with the ISAPI-type of dll that you
can't do with HTTPModule?
Regards,
Matt Small
"Dan" wrote in message
> I'm developping a module to count the number of bytes pass to a IIS
> server for each request. I am working with IIS 5 and I use C# with .net
> framework 2.0
>
> My solution for the moment is a HTTPModule... I compile it and put the
> dll in the bin directory of each site under the dfault web site.
>
> Everything work fine with it, but what I want is to be able to produce
> a DLL and map it on my Default web site in IIS (Properties->home
> directory->configuration->mapping) like an old ISAPI filter. Is it
> possible to do it from a HTTPModule ? If not, is there others solutions
> ?
>
> thx
> >> Stay informed about: HTTPModule |
|
| Back to top |
|
 |  |
External

Since: Dec 22, 2006 Posts: 560
|
(Msg. 3) Posted: Thu Jan 18, 2007 9:51 pm
Post subject: Re: HTTPModule [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
What you want to do is not possible with managed code prior to IIS7.
Your choices are (in increasing difficulty):
1. Use IIS7 -- very easy -- simply GAC your HttpModule and add its
managed type to the default <modules> list and it's done.
2. Prior to IIS7, write ISAPI Filter with native code
3. Prior to IIS7, re-write ASP.Net to host its managed-to-native shim
as an ISAPI Filter instead
Thus, if you insist on staying with IIS5/6, easiest choice is to write
an ISAPI Filter. If you use IIS7, then you can directly use your
existing httpModule.
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
Dan wrote:
> I'm developping a module to count the number of bytes pass to a IIS
> server for each request. I am working with IIS 5 and I use C# with .net
> framework 2.0
>
> My solution for the moment is a HTTPModule... I compile it and put the
> dll in the bin directory of each site under the dfault web site.
>
> Everything work fine with it, but what I want is to be able to produce
> a DLL and map it on my Default web site in IIS (Properties->home
> directory->configuration->mapping) like an old ISAPI filter. Is it
> possible to do it from a HTTPModule ? If not, is there others solutions
> ?
>
> thx >> Stay informed about: HTTPModule |
|
| Back to top |
|
 |  |
External

Since: Oct 16, 2004 Posts: 126
|
(Msg. 4) Posted: Fri Jan 19, 2007 12:24 am
Post subject: Re: HTTPModule [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
You might want to check out forums.asp.net. They have a forums specially
HTTP Modules. In IIS7, you'll be able to register this just like a
ISAPI-filter today.
Tx,
Steve Schofield
Microsoft MVP - IIS
"Dan" wrote in message
> I'm developping a module to count the number of bytes pass to a IIS
> server for each request. I am working with IIS 5 and I use C# with .net
> framework 2.0
>
> My solution for the moment is a HTTPModule... I compile it and put the
> dll in the bin directory of each site under the dfault web site.
>
> Everything work fine with it, but what I want is to be able to produce
> a DLL and map it on my Default web site in IIS (Properties->home
> directory->configuration->mapping) like an old ISAPI filter. Is it
> possible to do it from a HTTPModule ? If not, is there others solutions
> ?
>
> thx
> >> Stay informed about: HTTPModule |
|
| Back to top |
|
 |  |
External

Since: Jan 18, 2007 Posts: 2
|
(Msg. 5) Posted: Fri Jan 19, 2007 6:52 am
Post subject: Re: HTTPModule [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Thanks a lot for all your answers. I finally kept my HTTPModule. I put
it in the GAC and I add an element HTTPModules in the machine.config.
David Wang a écrit :
> What you want to do is not possible with managed code prior to IIS7.
>
> Your choices are (in increasing difficulty):
> 1. Use IIS7 -- very easy -- simply GAC your HttpModule and add its
> managed type to the default <modules> list and it's done.
> 2. Prior to IIS7, write ISAPI Filter with native code
> 3. Prior to IIS7, re-write ASP.Net to host its managed-to-native shim
> as an ISAPI Filter instead
>
> Thus, if you insist on staying with IIS5/6, easiest choice is to write
> an ISAPI Filter. If you use IIS7, then you can directly use your
> existing httpModule.
>
>
> //David
> http://w3-4u.blogspot.com
> http://blogs.msdn.com/David.Wang
> //
>
>
>
> Dan wrote:
> > I'm developping a module to count the number of bytes pass to a IIS
> > server for each request. I am working with IIS 5 and I use C# with .net
> > framework 2.0
> >
> > My solution for the moment is a HTTPModule... I compile it and put the
> > dll in the bin directory of each site under the dfault web site.
> >
> > Everything work fine with it, but what I want is to be able to produce
> > a DLL and map it on my Default web site in IIS (Properties->home
> > directory->configuration->mapping) like an old ISAPI filter. Is it
> > possible to do it from a HTTPModule ? If not, is there others solutions
> > ?
> >
> > thx >> Stay informed about: HTTPModule |
|
| Back to top |
|
 |  |
External

Since: Nov 11, 2010 Posts: 1
|
(Msg. 6) Posted: Thu Nov 11, 2010 9:55 am
Post subject: Re: Thanks a lot for all your answers. I finally kept my HTTPModule. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hi,
Could please provide step by step process of loading an HTTPModule in IIS 6
> On Thursday, January 18, 2007 3:11 PM Dan wrote:
> I'm developping a module to count the number of bytes pass to a IIS
> server for each request. I am working with IIS 5 and I use C# with .net
> framework 2.0
>
> My solution for the moment is a HTTPModule... I compile it and put the
> dll in the bin directory of each site under the dfault web site.
>
> Everything work fine with it, but what I want is to be able to produce
> a DLL and map it on my Default web site in IIS (Properties->home
> directory->configuration->mapping) like an old ISAPI filter. Is it
> possible to do it from a HTTPModule ? If not, is there others solutions
> ?
>
> thx
>> On Thursday, January 18, 2007 7:15 PM Matthew R. Small wrote:
>> Hi Dan,
>> I think you've actually got the right idea here. The HTTP module is the
>> way you use managed code to acheive your ends in IIS 7. ISAPI filters are
>> the old way of handling the request - and require native code (C++)
>> programming. What is it you want to do with the ISAPI-type of dll that you
>> can't do with HTTPModule?
>>
>> Regards,
>> Matt Small
>>
>> "Dan" wrote in message
>>
>>> On Friday, January 19, 2007 12:24 AM Steve Schofield wrote:
>>> You might want to check out forums.asp.net. They have a forums specially
>>> HTTP Modules. In IIS7, you'll be able to register this just like a
>>> ISAPI-filter today.
>>>
>>> Tx,
>>>
>>> Steve Schofield
>>> Microsoft MVP - IIS
>>>
>>>
>>> "Dan" wrote in message
>>>
>>>> On Friday, January 19, 2007 12:51 AM David Wang wrote:
>>>> What you want to do is not possible with managed code prior to IIS7.
>>>>
>>>> Your choices are (in increasing difficulty):
>>>> 1. Use IIS7 -- very easy -- simply GAC your HttpModule and add its
>>>> managed type to the default <modules> list and it's done.
>>>> 2. Prior to IIS7, write ISAPI Filter with native code
>>>> 3. Prior to IIS7, re-write ASP.Net to host its managed-to-native shim
>>>> as an ISAPI Filter instead
>>>>
>>>> Thus, if you insist on staying with IIS5/6, easiest choice is to write
>>>> an ISAPI Filter. If you use IIS7, then you can directly use your
>>>> existing httpModule.
>>>>
>>>>
>>>> //David
>>>> http://w3-4u.blogspot.com
>>>> http://blogs.msdn.com/David.Wang
>>>> //
>>>>
>>>>
>>>>
>>>> Dan wrote:
>>>>> On Friday, January 19, 2007 9:52 AM Dan wrote:
>>>>> Thanks a lot for all your answers. I finally kept my HTTPModule. I put
>>>>> it in the GAC and I add an element HTTPModules in the machine.config.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> David Wang a =E9crit :
>>>>> Submitted via EggHeadCafe
>>>>> Visual Studio Async CTP Overview
>>>>> http://www.eggheadcafe.com/tutorials/aspnet/e78665f9-b949-4cc7-a024-65...3bbad6d >> Stay informed about: HTTPModule |
|
| Back to top |
|
 |  |
| Related Topics: | ISAPI vs. HTTPModule - Hi, I am trying to figure out the best way to implement some desired functionality. From the .NET framework, I can access the HTTPApplication events onStart and onEnd. But I have to create wrappers for some included files. I currently have an ISAP...
HTTPModule behavior different between IIS5 and IIS6 - The task is to create a httpmodule that will be mapped to the extension ".jpg", perform a task, and alow the request to continue. I have a httpmodule that is working exactly as I want it in winXP. When deployed to Win2k3, I get a very differ...
HTTPModule ... incoming HTTP request that is not ASP pages? - I've done some research on HTTPModule and successfully recreated and executed a couple of the sample found online. My question is that I want to be able to intercept any HTTP request (not necessary asp pages) and process the incoming message. How ca...
Connecting to Https is too slow form internet for IIS 6.0 - Does anyone who can help me to figure the following problem: First I set my web site to accept https connection only. It works in intranet is fine; however, when I try to connect it from internet, it takes me almost 1 minute to handshake. I've compared....
IISState Analysis - IIS stops serving ASP pages. Maybe possible memory leak or fragmented memory? Opened log file 'C:\iisstate\output\IISState-7772.log' *********************** Starting new log output IISState version 3.3.1 Sat Oct 30 18:45:20 2004 OS = Windows 2000.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|