ASP.NET MVC page - issue with non existing pages

4 posts, 0 answers
  1. GrZeCh
    GrZeCh avatar
    98 posts
    Member since:
    Dec 2007

    Posted 08 Aug 2009 Link to this post

    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).
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 12 Aug 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. GrZeCh
    GrZeCh avatar
    98 posts
    Member since:
    Dec 2007

    Posted 13 Aug 2009 Link to this post

    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.
  5. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 18 Aug 2009 Link to this post

    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.
Back to Top