This is a migrated thread and some comments may be shown as answers.

ASP.NET MVC page - issue with non existing pages

3 Answers 77 Views
Compression
This is a migrated thread and some comments may be shown as answers.
GrZeCh
Top achievements
Rank 2
GrZeCh asked on 08 Aug 2009, 12:59 PM
Hello,

When I enable RadCompression by adding
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
to web.config and when I try to access page which not exists (something like http://WEBPAGEURL/123rawssas) instead of IIS error page:

Server Error in '/' Application.

The resource cannot be found


I'm getting weird output (it is longer):

��������`I�%&/m�{J�J��t��`$ؐ@�����iG#)�*��eVe]f@�흼��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h��������y�(��G�d^ϲe��!z���Ѳ�Y)5��G��A�8�VeU?������/I=�����Yd�E��n�գt����/�q� �IU�n �ۻ�/No������N�|� �&�} �0��e�

any idea how to fix it?

IIS7 with Application Pool in Integrated Pipeline mode. Issue can be reproduced on produciton server too (right now I'm trying to solve id on localhost).

3 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 12 Aug 2009, 11:39 AM
Hello GrZeCh,

You can overcome this behavior by using the following routes in your Global.asax file:
public static void RegisterRoutes(RouteCollection routes)  
        {  
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");             
            routes.MapRoute(  
               "Default",  
               "{controller}.aspx/{action}/{id}",  
               new { action = "Index", id = "" }  
             );  
 
            routes.MapRoute(  
              "Root",  
              "",  
              new { controller = "Home", action = "Index", id = "" }  
            );  
        } 
Note: After applying this routes you will have to rebuild the application!

You can find more detail on the following link:
http://www.asp.net/learn/mvc/tutorial-08-cs.aspx

All the best,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
GrZeCh
Top achievements
Rank 2
answered on 13 Aug 2009, 07:37 AM
Hello,

have you read anything else than title of my post? :) I don't want to solve problem of redirecting user when he access page which is not existing but this weird characters when RadCompression is added to web.config. Actually I want to have 404 error page with RadCompression turned on. Now instead of 404 error page I'm getting this weird characters output.
0
Rosen
Telerik team
answered on 18 Aug 2009, 08:30 AM
Hello GrZeCh,

Indeed I was able to observed the behavior you have described. However I'm happy to inform you that our developers has managed to address it, thus the fix will be available with next service pack of Q2 2009 RadControls for ASP.NET AJAX. Meanwhile you may keep an eye on latest internal builds for a preview version.

Please excuse us for the inconvenience.

Kind regards,
Rosen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Compression
Asked by
GrZeCh
Top achievements
Rank 2
Answers by
Nikolay Rusev
Telerik team
GrZeCh
Top achievements
Rank 2
Rosen
Telerik team
Share this question
or