+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Template File + The resource cannot be found

Template File + The resource cannot be found

2 posts, 0 answered
  1. WebGeek
    WebGeek avatar
    186 posts
    Registered:
    20 Dec 2006
    25 Aug 2009
    Link to this post
    I recently upgraded my site from 3.6sp to 3.7.  Now my template files are giving me a "http 404 - the resource can not be found" error.  This only happens for the ones that have a space in their name (My Template).  If I change the template name to (MyTemplate) everything works fine.  Any suggestions?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Aug 2009
    Link to this post
    Hello medicalwebgeek,

    We will provide a fix for this issue in 3.7 SP1. Meanwhile you could try using the workaround below:

    1. Create a new class in App_Code that inherits form CmsHttpModule.

    using System.Web;   
    using Telerik.Cms.Web;   
       
    public class CustomCmsHttpModule : CmsHttpModule   
    {   
        protected override CmsRequest GetCmsRequest(HttpContext context)   
        {   
            return new CmsRequest(context.Request.RawUrl);   
        }   
    }   
     

    2. Declare the module in your web.config file

    - integrated pipline mode.

    <system.webServer>   
           <modules>   
              ...   
              <add name="Cms" type="CustomCmsHttpModule, App_Code" />  
     

    - classic mode

    <system.web>   
           <httpModules>   
              ...   
              <add name="Cms" type="CustomCmsHttpModule, App_Code" />  
     


    Best wishes,
    Ivan Dimitrov
    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.
2 posts, 0 answered