IIS 7 Http Handler Development Issue

I am using VSTS 2008 + C # + .Net 3.5 + IIS 7.0 to develop an ASP.Net website. I want to develop an Http module that could check if an incoming request has any specific HTTP header (e.g. CustomerID), and if it does not have such a header, I redirect the user request to other pages.

I think I should develop using Http modules in IIS 7.0 integrated mode? Please correct me if I am wrong, or there are simpler solutions. Any reference samples or study guides? I am new to developing Http modules in IIS 7.0.

+3
source share
1 answer

There are a number of articles describing how to create standard HttpModules for ASP.NET. One such article can be found in the ASP.NET Infrastructure MSDN library, titled " Walkthrough: Creating and Registering a Custom HTTP Module ."

Be sure to follow the steps to register your module in IIS 7 integrated mode in this walkthrough or you will receive an error similar to the following:

" HTTP 500.0 - : , .NET. ASP.NET IIS. ASP.NET /​​configuration. /configuration ASP.NET.

IIS.NET, , IIS 7. " IIS 7.0 .NET Framework"

+4

Source: https://habr.com/ru/post/1722108/


All Articles