开发者

Debugging ASP.NET 4.0 site in VS 2010 with URL Rewrite enabled

is this something basic or am I missing something?开发者_开发知识库

My ASP.NET (4.0) site has a web.config with URL rewrite rules. When I run it in debug mode (local webserver) all the URLs fail because the local web server does not recognize the rules (e.g. I have /register which maps to register.aspx etc.)

Is there someway I can get the debug system to recognize my URL rewrite rules? Should I be doing something else?


The best bet seems to be to move to IIS Express if you can, since that can use the same URL Rewriting module as "real" IIS, and should also have fewer other bug-causing differences than Cassini has.

An alternative would be to do your rewriting with UrlRewritingNet if that'll handle the rules that you need. That's a .NET HttpModule, so it'll work on either Cassini or IIS.


Make sure that you have the URL Rewriting Module installed in your IIS. (I assume you mean IIS with local webserver. Cassini won't work)

Its definetly possible to debug a webapplication running on local IIS that uses URL Rewriting

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜