.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

Rewriter http module problem in IIS 7

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
I had this problem a few months ago however this time I cannot seem to fix it.The module uses redirection rules read from a database to redirect non-exisistant pages.  However I get resource cannot be found errors in IIS 7.IIRC the last time I simply set the application pool to classic and the redirecting worked.  I assumed doing this again would fix the problem. However it doesn't.  When I change the application pool for the site to  ASP.NET v4.0 Classic I get this error "Handler "PageHandlerFactory-ISAPI-4.0_32bit" has a bad module "IsapiModule" in its module list".The project has recently been upgraded to use v4 of the framework (it was v2 previously). What should I be looking at to try and solve this problem.

View Complete Post

More Related Resource Links

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.


http module calling order


Our site uses urlRewriter http module that does the url rewriting for us.

I want to create another http module that will handle our customize URL redirects. Now I want this new customize http module to be call before the UrlRewriter module (to avoid page not found messages the UrlRewriter generates). Is there a way we can contol the calling order ?

http module


I am trying to write a http module that redirect the url:




basically i got a lookup table that contain the Url Alias "breaking_news.aspx"  and its associate ID. Any idea how can i accomplished it?

problem viewing http://localhost/Reports


Basically http://localhost/Reports give me a "Internet Explorer cannot display the webpage" error

However http://localhost:8080/Reports/Pages/Folder.aspx works fine and takes me to the home page of SSRS.

Any idea what I should be looking for to get the first url to work correctly?


Using SSRS 2008

HTTP Module in ASP

is there any mechanism similar to HTTP Module in classic ASP?

An error occurred while receiving the HTTP response to xxx problem. WCF comunication

I have been having this problem transmiting data (XML from a microsoft sincronization session v1.0) to a WCF service on IIS 6.I have enabled tracing on my WCF service, verbose, but nothing shows up. No exceptions what so ever.My client connects over a GPRS line. But i have also done this over ADSL with the same results.The thing is, it starts transmiting ( i can see it on wireshark) but suddenly the server side sends a TCP RST packet and the transmission ends with a client exception like An error occurred while receiving the HTTP response to http://blabalblabla/Service.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.It never actually gets to my code (otherwise i would probably see something on my trace)Thank you!My binding are this (on client):<basicHttpBinding><binding name="BasicHttpBinding_Issap_mainSyncContract" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="

Webs Webservices problem : The request failed with HTTP status 401: Unauthorized

I am trying to run this code to get the web collection details. I am running this code in debug mode in Visual Studio 2005. I am running this code on sharepoint.acme.com, the same machine on which MOSS 2007 is installed.

        Webs websService = new Webs();
        System.Net.SystemNetworkCredential credentials =
        websService.Credentials = System.Net.CredentialCache.DefaultCredentials;
        websService.Url = "http://sharepoint.acme.com/_vti_bin/Webs.asmx";

        System.Xml.XmlNode myNode = websService.GetAllSubWebCollection();

I get this error. "The request failed with HTTP status 401: Unauthorized" in the last line while debug mode running. Earlier it used to work fine, but today I see this problem. Both acme\administrator and sharepoint\administrator can log into SharePoint. I tried running this code by logging in to my win2k3 desktop as acme\administrator once and launching Visual Studio 2005 and sharepoint\administrator another time. Both time it I got the same error.

Could someone please help me in resolving this error?

Http module works under IIS6, but not under IIS 7


I have a module named AbleVF, under IIS6, I map it to wildcard so it can process all requests, which worked fine.

Under IIS7,  at the beginning I could not make it work, after some search, put it under system.webServer like



HTTP Module :Item.Update() gives exception 'Operation is not valid due to the current state of the


Hi, I have created a http module to update the list item but when i use the Update function of SPListItem object it gives the error: "Operation is not valid due to the current state of the object". Below is the HTTP Module i have written to update the List Item. Please suggest






public class SiteUsage : IHttpModule



Problem With HTTP Moudle


I am using a http module which can handle unhandled errors. I do have a global.asax and HTTP module's application_error will override the global.asax application_error method. And them I am logging using log4net. Every thing is working fine till yesterday. Now i am facing a new problem.

If any unhandled exceptions came my http module can catch it. then the control move to global.asax file and calls the application_error method there (there is noting in that method) then again control move backs to Httpmodule application_error method and throwing new http exception.

I getting this error after control hitting the application_error metho in http module 2nd time.

Exception: Cannot redirect after HTTP headers have been sent.

I am using response.trasfer("error.aspx");

I am struck here...plzz help me...I would appreciate  your help...

HTTP Handler Problem


<img alt="httpHandler" src="getImage.ashx?id=1">

works fine

<asp:Label ID="sd" Text='<%# "getText.ashx" %>' runat="server"></asp:Label>

i have written httphandler which will display text of a label but processrequets of httphandler event is not being fired.

any help plese.

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 Module and PageLife Cycle in ASP.NET page


Hello All,

Need help on one issue, suppose you have a web page(aspx) and having Text box and Submit button on it.

you have added text in this text box and clickd on this submit buton.

In page life cycle where (in which events) you will get value of this text box. ? 

Thanks and Regards,

Nilesh Thakur.

Problem to group radio button across gridview rows

In general no one can easily group or make a single selection from radio button list inside gridview rows. There are a lot of way to make a single or unique selection from list. Here i want to share how i can address this problem in the most easiest way. Googling the problem most of the cases i saw the grouping in horizontal way. Thats why i tried to group the radio buttons in vertical manner. Let i have a requirement like below:

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.

Regrading Sharpoint 2010 problem and solutions

We can write your question and problem on this blogger.you get ans.use.

This sharpoint 2010 problem solving threads

Hi friend,

you can use this thread to solving problem and solutions.
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