|
URL Rewriting and Ajax Pro -- jmgp --
Well, This post is some kind of tale, not a fairy one :) To improve my app I did a URL Rewriting to get rid off the ugly query string params. I had no time to make tests, one of my memory banks has been smoked up. After a couple of days trying to find the problem I had no more patience, let's start from scratch, reinstall all OS and apps, restore the backup, etc. Then the problems began.... NOOOOO, my AJAX not working anymore, what the heck???? ERROR 404, the ashx files cannot be found. I start to curse my backup software who had corrupted my source files, dlls and more.... No, I was wrong, the problem is with the URL rewriting thing that I put in my Global.asax.vb. A week has past before I realize this. What's the point here??? If you want to do URL Rewriting with AJAX Pro do the right way, use the code from MSKB (link below) as HTTP Module and you will be fine. If you try the simple approach you'll have a lot of problems. http://msdn.microsoft.com/library/en-us/dnaspp/html/urlrewriting.asp |
|
-- AlbertWeinert --
j_m_g_p schrieb: To improve my app I did a URL Rewriting to get rid off the ugly query Then the problems began.... NOOOOO, my AJAX not working anymore, what the heck???? ERROR 404, the ashx files cannot be found. I start to curse my backup software who had corrupted my source files, dlls and more.... If you do a rewriting of urls, you must not rewrite urls with /ajaxpro/ in the Url. For a UrlRewriting component look at http://www.urlrewriting.net (Shameless plug :) -- Freundliche Grüße Albert Weinert http://der-albert.com |