.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Writing Http Handlers and Modules in IIS 7.5

Posted By: Amit Mehra     Posted Date: August 03, 2010    Points: 2   Category :IIS
This article describes how Http modules and handlers are to be written and configured in IIS 7.5. The concept of a handler and module remains same, so dose there programming model. In this section we start off with the concept of a Http module and a Http handler, then talk about how to code them and finally describe the two methods available to configure them.

View Complete Post

More Related Resource Links

ASP.NET Architecture - ASP.NET Worker Process - HTTP Pipleline - Http Modules and Handlers

"ASP.NET is a powerful platform for building Web applications, that provides a tremendous amount of flexibility and power for building just about any kind of Web application. Most people are familiar only with the high level frameworks like WebForms and WebServices which sit at the very top level of the ASP.NET hierarchy. In this article I'll describe the lower level aspects of ASP.NET and explain how requests move from Web Server to the ASP.NET runtime and then through the ASP.NET Http Pipeline to process requests.

Http Modules and the Http handlers in asp.net 4


I am using IIS 7 .when I tried to migrate  to asp.net 4 , the VS 2010  has removed the following tag on conversion .if I opened a web application  in 3.5 framework ,the following tag is added inside the Web.config file ,if i opened a asp.net4 application  the following tag is not added.

<validation validateIntegratedModeConfiguration="true" />

I know this tag is basically used when the application is running under the  Integrated mode.

Is this tag is required in asp.net 4 .Do we still need to configure the Http Modules and the Http handlers under the sytem.webserver in the Web.config?

Any suggestions are welcome

HTTP Handlers


Hi All,

I am attempting to convert an ASP.NET handler into SharePoint.

I have an ASP.NET handler which redirects users from index.html to default.aspx. I need to get this happening inside SharePoint. I have followed the MSDN article http://msdn.microsoft.com/en-us/library/bb457204.aspx to try and get it running.

I can call my ASHX page directly (http://portal/_layout/test/indexhttphandler.ashx, but i can not get the page to be called from a web request, That is http://portal/index.html, i get a 404.

How do I get the page to be called?




Problem Adding Custom HTTP Module with Ajax(System.Web.Handlers.ScriptModule)



I have Created a custom Module for my application. It works fine when i am testing on a sample website.

But when i integrated the same with the original application it dosent works fine. Actully i am using Ajax control toolkit and it uses its own module for request processing.System.Web.Handlers.ScriptModule.

Hence my handlers section becomes something like this :

      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add type="MyModule, MyModule,Version=, Culture=neutral, PublicKeyToken=ba11cfdfb1d1111b" name="SiteMinderHttpModule" />

 Now i think my module working fine but because of it there is some hinderence caused in the Ajax request processing.I get the error sys is undefined.

I have created a class library Project and implemented the iHTTPModule interface and then registered the assembly in GAC and then accessing the assembly from there..

Is there any work around for this problem as my page is not rendering properly.


Please Help.


What is http handlers and whts the use of it


Hi All,

I am new to http handler concept and havent worked on it.

What is http handlers and what is use of it??


Exception handling in projects which uses Ajax, ASP.NET, Http Module, MVC3 and Http Handlers


Dear All,

I am working on a project where we have used few of the web application plateforms & techniques. I need to build a robust exception handling framework for my applications that handles all type of exceptions i.e server exception, unhandled exception, http module exception and custom raised exception etc.

In our projects,

1) we have static ASP.net pages (without code behind) for jQuery menus which uses jquery ajax and custom HttpHandler to fetch the data from the server.

2) some aspx pages load and save application data using jQuery ajax and custom httpHandlers.

3) some functionalities are developed in MVC3 which uses strongly and non strongly type views. Strongly type view save the data through controller on page submit and non strongly type view used jQuery ajax and json to save the data from controller.

4) We are also using HttpModule in our web site to authenticate the user.


Please guide me how to handle exception from multiple sources and display custom error message to the user from asp.net pages and jquery ajax calls?

HTTP Handerl and Modules


What are HTTP Handelers and HTTP Modules, what is their roles...

reading books don't give any idea, please give some example

Writing custom MembershipProvider

ASP.NET Membership mechanism allows to use the build-in server tables to store and retrieve user data. By default, this mechanism can only be used with SQL Server database to which Microsoft provides suitable MembershipProvider class.
Inheriting from this abstract class, developer can use his own table(-es) from any database and use any database engine other than SQL Server, like Oracle, DB2 etc.

10 Tips for Writing High-Performance Web Applications

Writing a Web application with ASP.NET is unbelievably easy. So easy, many developers don't take the time to structure their applications for great performance. In this article, I'm going to present 10 tips for writing high-performance Web apps. I'm not limiting my comments to ASP.NET applications because they are just one subset of Web applications. This article won't be the definitive guide for performance-tuning Web applications-an entire book could easily be devoted to that. Instead, think of this as a good place to start.

Writing Custom Web Parts for SharePoint 2007

As I mentioned in an earlier blog post, SharePoint 2007 is built on top of ASP.NET 2.0, which means you can now use ASP.NET 2.0 features (Forms Authentication, Master Pages, Membership, Site Navigation, New Data Controls, etc) when building SharePoint sites. This is true for both the new Windows SharePoint Services 3.0 version (which will be a free download) as well as Microsoft Office SharePoint Server 2007 (which costs money).

Reading and Writing Images From a Windows Mobile Database using UltraLite 10(C#)

Periodically I get a request for information on how to read and write binary data to a database running on Windows Mobile. If you search the Internet you can typically find examples that are available on Windows Desktops or allow you to read and write to a local file system. The problem is that it can take a bit of work to get this code to work on Windows Mobile accessing a database.

Ultimately you might be asking, why would I want to store and image in a database? Well in an environment where you synchronizing data between a local mobile database and a consolidated (central) database this can be extremely useful. Imagine if an insurance adjuster went to an accident scene, took a picture of a damaged car, loaded it into his Windows Mobile database and then replicated that image up to the Insurance headquarters for approval. All of this could be done in a very short period of time when using images in the database. Another good example might be a doctor who was waiting for a patient chart to become available. If you could store the image in a database this chart could be sent down to the doctor's device once it became available.

For this article I am not going to get into how to synchronize the images to and from a remote and central database as this is typically fairly straightforward when using a data synchronization technologies like MobiLink

Open File Print File Excel

Batch print many Excel files without having to open each one at a time. Quickly print mass amounts of xls files at once with this program. You must have Excel installed on your machine..

XML Reading and Writing

We learned to process XML files using the Document Object Model as implemented by the XmlDocument class. To go further and make XML friendlier, the .NET Framework provides many other classes for different purposes, allowing you to create and manage nodes from custom .NET classes.
Besides the XmlDocument and the derived classes of XmlNode, the .NET Framework provides the XmlTextWriter class, which is derived from XmlWriter. The XmlTextWriter class works in a top-down approach to create, or deal with, the contents of an XML file. This class writes an XML node and moves down without referring

file upload in chunks or not buffering in memory before writing to disk?


What are the options for handling file uploads to reduce the memory footprint?  Is there a way to upload in chunks?  Is there a way to stream upload directly to disk instead of loading entire file in server memory?


HTTP Error 403 - Forbidden


(VB Express website directed me to ASP.NET Web Services which in turn redirected me to this forum).

 Hopefully someone can help me here...... 

I am using VIsual Web Developer and downloaded the small business application to use as a starting point to help my wife get a website up for her small business. When I load the application, I can F5 and it runs fine but as soon as I make any modification to the app and hit F5, I get the HTTP Error 403 - Forbidden when it tries to show the website.

I notice a pop up that occurs when I run that allows me to choose the link for my app and it displays correctly (I close the webpage that has the error on it).

This seems like a pain, is there a setting I'm missing - I would think that this should "just work".

What's up?????



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend