Rewritepath and IIS Integrated Mode

I have big issue with url-rewriting for IIS 7.0.

I've written simple module for rewriting for my NET3.5/IIS7 web application. Here is a part of the code.

    public void Init(HttpApplication context)
        context.BeginRequest += new EventHandler(context_BeginRequest);

    void context_BeginRequest(object sender, EventArgs e)
        HttpApplication app = sender as HttpApplication;
        if (app.Request.Path.Contains("pagetorewrite.aspx"))

And I register my module in web.config :

<validation validateIntegratedModeConfiguration="false"/>
              <add name="MyModule" type="MyModule" preCondition="" />

Under IIS 7.0 (Vista) using Classic ASP Pipeline it works perfect, but when I change pipeline mode to Integrated, then it stops working. There are no exceptions, errors and anything in debugger/events/logfiles - only message in a browser that page was not found. The stragnest thing is that pagename looks like mispelled or merged from parts of original page and rewrte-to page.

I've deployed my code at another computer (also vista -but x64- and iis 7.0) and it works perfect in both modes. It looks that there's an configuration issue or what?


Just a guess: Qualify your type with the assembly name (type="MyModule,MyAssembly")

Well, recommend you use URL Rewrite Module released by Microsoft which has been tested.

Wish you enjoy it.

Finally I found working solution.

.NET 3.5 TransferRequest

Need Your Help

How to dynamically bind repeater control to datasource

c# data-binding datarepeater

I have a page with a simple dropdown and repeater control in page.on submit repeater control is bound to datasource1 which has 3 columns.

Is there any generic date format available?

java javascript date datetime datetime-format

I am using format "yyyy-MM-dd_hhmmss" in one script and uses that in my script.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.