Problem with httpContext.RewritePath on IIS 7
Posted
by
PNR
on Stack Overflow
See other posts from Stack Overflow
or by PNR
Published on 2011-02-12T07:20:46Z
Indexed on
2011/02/12
7:25 UTC
Read the original article
Hit count: 170
I am using httpContext.RewritePath in Global.asax for som URLrewriting, and it works very well in my development environment on the Cassini server. But when I copy it to the production server, witch is a IIS 7 it isn't working. I have also tried to use Context.Server.TransferRequest but thne I get the error: "This operation requires IIS integrated pipeline mode." on both Cassini and IIS 7, and on IIS 7 the website is running in "Integreret" mode in the AppPool.
I rewrite all urls on the website like /[The main menuname]/[pagename].aspx fx from /web/thesite.aspx?mainmenu=manager to /manager/thesite.aspx OR /web/theOtherSite.aspx?mainmenu=about to /about/theOtherSite.aspx And so on...
Thanks very much in advance!
© Stack Overflow or respective owner