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

Forums / Bugs & Issues / Compression not working on production environment

Compression not working on production environment

12 posts, 0 answered
  1. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    25 Jun 2009
    Link to this post
    Hi,

    I am using radscriptmanager in my sitefinity website. It creates WebResource.axd file of around 365 KB. But after compressing, size is becoming of 100 KB. This is situation of my local website.
    But when I deploy same thing on production server, size of the same is nt getting compressed, it is 365 only. Why?

    Please help......
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    26 Jun 2009
    Link to this post
    Hello shraddha,

    Generally there should not be a difference between your development server and production server regarding the RadCompression. Please make sure that all settings are set on your production server..

     <httpModules> 
    ... 
    <!-- Add this line exactly as is - the name value is important --> 
    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
    </httpModules> 
    <!-- If you're using IIS7, then add this, too--> 
    <system.webServer> 
     <modules> 
       ... 
       <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
     </modules> 
    ...  

    If you are running IIS with Integrated mode you should add the RadCompression between modules node as the code snippet above shows.
    The problem could be if your production is using Classic mode, but you have added the RadCompression for Integrated pipeline mode and vice versa.

    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.
  3. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    05 Oct 2009
    Link to this post
    Hi,
    My Application is running on IIS 6 and i have added
     <httpModules>    
    ...    
    <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />    
    </httpModules>    
     
    in local as well as live web.config.
    Is there anything else that I can check for this issue????

    ---Thanx
    Shraddha
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    05 Oct 2009
    Link to this post
    Hello shraddha,

    There could be something specifically related to the production server that blocks the module.

    1. Add the module on the first place of your list to ensure that it will be called.
    2. Check whether there are any related errors in Sitefinity's error log.
    3. Check whether there are any js error thrown when you request a page.
    4. Make sure that your host does not block the module.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    08 Oct 2009
    Link to this post
    hi Ivan.
    I am getting folowing errors in sitefinity.log file when I first time hit website.
    10/8/2009 12:31:52 PM [EXCEPTION]  
    ************************************************************************************  
    ID: 09bf4e83-2b16-4906-a9e4-abcc48f8afc5; Code: 100103; Occurrence: 1; Sequence: 2  
    ------------------------------------------------------------------------------------  
     
    Application information:  
        Machine name: ALPHA  
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2  
        Product Version: 3.6.1936.2  
        Application Path: D:\IIS Websites\QuantumMFWebsite\  
        Debug: False  
     
    Process information:  
        Process ID: 12348  
        Process Name: w3wp  
     
    Request information:  
        Request URL: /Default.aspx  
        Rewrite URL: http://quantumtest.idealake.com/Default.aspx  
        Url Referrer:   Is Authenticated: False  
        Authentication Type:    User:   User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.25 Safari/532.0  
        User Address: 210.18.178.82  
     
    Variables:  
     
    - L0 -------------------------------------------------------------------------------  
     
    Exception Type: System.Configuration.ConfigurationErrorsException  
     
    Message: Cannot load module "Telerik.News.CustomNewsModule, App_Code"! Pleas check if the specified assembly exists and the type name is spelled correctly.  
     
    Source:   
     
    Stack Trace:   
     
    ------------------------------------------------------------------------------------  
     
     
     
    10/8/2009 12:31:55 PM [EXCEPTION]  
    ************************************************************************************  
    ID: 17576899-10fe-45d6-90f2-63830522b018; Code: 100103; Occurrence: 2; Sequence: 3  
    ------------------------------------------------------------------------------------  
     
    Application information:  
        Machine name: ALPHA  
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2  
        Product Version: 3.6.1936.2  
        Application Path: D:\IIS Websites\QuantumMFWebsite\  
        Debug: False  
     
    Process information:  
        Process ID: 12348  
        Process Name: w3wp  
     
    Request information:  
        Request URL: /Default.aspx  
        Rewrite URL: http://quantumtest.idealake.com/Default.aspx  
        Url Referrer:   Is Authenticated: False  
        Authentication Type:    User:   User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.25 Safari/532.0  
        User Address: 210.18.178.82  
     
    Variables:  
     
    - L0 -------------------------------------------------------------------------------  
     
    Exception Type: System.ArgumentException  
     
    Message: Invalid indexing client name specified.  
     
    Source: Telerik.Search  
     
    Stack Trace:   
       at Telerik.Search.Engine.IndexingService..ctor(IIndexingServiceInfo settings)  
       at Telerik.Search.Engine.IndexingManager.Initialize()  
       at Telerik.Framework.ServiceHost.Initialize()  
    ------------------------------------------------------------------------------------  
     
     
     
    10/8/2009 12:31:56 PM [UNKNOWN]  
    ************************************************************************************  
    ID: c7dbd3cd-c701-452c-b778-604699296c31; Code: 3005; Occurrence: 1; Sequence: 4  
    ------------------------------------------------------------------------------------  
     
    Application information:  
        Machine name: ALPHA  
        OS Version: Microsoft Windows NT 5.2.3790 Service Pack 2  
        Product Version: 3.6.1936.2  
        Application Path: D:\IIS Websites\QuantumMFWebsite\  
        Debug: False  
     
    Process information:  
        Process ID: 12348  
        Process Name: w3wp  
     
    Request information:  
        Request URL: /Default.aspx  
        Rewrite URL: http://quantumtest.idealake.com/Default.aspx  
        Url Referrer:   Is Authenticated: False  
        Authentication Type:    User:   User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.25 Safari/532.0  
        User Address: 210.18.178.82  
     
    Variables:  
     
    - L0 -------------------------------------------------------------------------------  
     
    Exception Type: System.Web.HttpException  
     
    Message: There were errors during services initialization, check the error log for details.  
     
    Source: Telerik.Framework  
     
    Stack Trace:   
       at Telerik.Framework.ServiceHost.Initialize()  
       at Telerik.Cms.Web.CmsHttpModule.Init(HttpApplication context)  
       at System.Web.HttpApplication.InitModulesCommon()  
       at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)  
       at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)  
       at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)  
       at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  
    ------------------------------------------------------------------------------------ 
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Oct 2009
    Link to this post
    Hello shraddha,

    You have a custom module that cannot be found - CustomNewsModule. The module is located in App_Code. The error is related to your web.config configuration.

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    08 Oct 2009
    Link to this post
    Hi Ivan,
    I have done changes as per your suggestion for 1 of my requirement.
    and that is working fine.
    Check the following link fo rthe reference.
    http://www.sitefinity.com/support/forums/sitefinity-3-x/bugs-issues/news-index-for-different-categories.aspx
    and i am getting this error only 1st time after my app pool get restarted.
    Let me know if anything more has to be done with this.

    Thanx.....
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Oct 2009
    Link to this post
    Hi shraddha,

    The error is thrown only the first time - generally after restarting the application pool which causes initialization. This control - Telerik.News.CustomNewsModule located in app code cannot be found by your application.  Please check it and compare the namespace.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    08 Oct 2009
    Link to this post
    Hi Ivan,
    using System;  
    using System.Collections.Generic;  
    using System.Web;  
    using Telerik.News;  
    using Telerik.Framework.Search;  
    using Telerik.News.WebControls.Search;  
     
    namespace Telerik.News  
    {  
        /// <summary> 
        /// Summary description for CustomNewsModule  
        /// </summary> 
        public class CustomNewsModule : NewsModule, IIndexingSupportModule  
        {  
            public CustomNewsModule()  
            {  
                //  
                // TODO: Add constructor logic here  
                //  
            }  
     
            #region IIndexingSupportModule Members  
     
            IServiceClientInfo[] IIndexingSupportModule.GetSeviceClients()  
            {  
                return new IServiceClientInfo[]   
                {  
                    new IndexingServiceClientInfo("NewsIndex"  
                        , typeof(CustomNewsIndexProvider)  
                        , typeof(NewsIndexSettingsControl).FullName  
                        , typeof(NewsIndexViewControl).FullName  
                        , "NewsIndexProvider"  
                        )  
                };  
            }  
     
            #endregion  
        }  
     Above given is the CustomNewsModule.cs class
    <modules> 
      <add type="Telerik.News.CustomNewsModule, App_Code"/>  
    </modules> 
    and this is the config entry I m adding for that. I don't think there i sproblem is namespace as that functionality is working properly.

    ..Thanx.
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Oct 2009
    Link to this post
    Hi shraddha,

    This is the actual error:

    Message: Cannot load module "Telerik.News.CustomNewsModule, App_Code"!
    Pleas check if the specified assembly exists and the type name is spelled correctly.


    There is a problem with accessing this class or there are any problems with the methods inside it. You could try overriding Title and Name properties. Currently they are not overridden and this could make a conflict with the default News Module. Let us know if the errors appear after you try the suggestions.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. shraddha
    shraddha avatar
    87 posts
    Registered:
    18 May 2009
    30 Oct 2009
    Link to this post
    Hi Ivan,
    Thanx for the reply.
    But as I already mentioned that CustomNewsModule.CS is given by you only; so if any changes has to be made in that , we will need your guidence. Please give in details where and what changes has to be done.


    --- Thanx
    Shraddha
  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    30 Oct 2009
    Link to this post
    Hi shraddha,

    1. Have you tried the following suggestion and what is the result of  it 

    "You could try overriding Title and Name properties. Currently they are not overridden and this could make a conflict with the default News Module. Let us know if the errors appear after you try the suggestions"

    Below is a sample code that works without problems with Sitefinity 3.7 SP1.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Telerik.News;
    using Telerik.Framework.Search;
    using Telerik.News.WebControls.Search;
    using Telerik.Rss;
    using Telerik.News.WebControls.Rss;
     
    /// <summary>
    /// Summary description for NewsModuleCustom
    /// </summary>
    public class NewsModuleCustom : NewsModule, IIndexingSupportModule, IRssProviderModule
    {
        public NewsModuleCustom()
        {
        }
         
     
        #region IIndexingSupportModule Members
     
        public IServiceClientInfo[] GetSeviceClients()
        {
            return new IServiceClientInfo[]
                {
                    new IndexingServiceClientInfo("NewsIndex"
                        , typeof(NewsIndexProviderCustom)
                        , typeof(NewsIndexSettingsControl).FullName
                        , typeof(NewsIndexViewControl).FullName
                        , "NewsIndexProvider"//TODO:Get it from resources
                        )
                };
        }
     
         
        #endregion
     
        #region IRssProviderModule Members
     
        RssProviderInfo[] IRssProviderModule.GetRssProviders()
        {
            return new RssProviderInfo[] { new RssProviderInfo(NewsModuleCustom.ModuleName + " Rss Provider",
                    typeof(Telerik.News.Rss.RssChannelProvider).FullName + ", " + typeof(Telerik.News.Rss.RssChannelProvider).Assembly.FullName,
                new Dictionary<string, string>(),
                typeof(RssSettingsControl).FullName + ", " + typeof(Telerik.News.Rss.RssChannelProvider).Assembly.FullName,
                typeof(RssViewControl).FullName + ", " + typeof(Telerik.News.Rss.RssChannelProvider).Assembly.FullName)
                };
        }
     
     
        #endregion
        internal const string ModuleName = "NewsModuleCustom";
    }


    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Telerik.News;
     
    /// <summary>
    /// Summary description for NewsIndexProviderCustom
    /// </summary>
    public class NewsIndexProviderCustom : NewsIndexProvider
    {
        public NewsIndexProviderCustom()
        {
        }
     
        protected override Telerik.Framework.Search.IIndexerInfo GetIndexerInfo(string path, Telerik.Cms.Engine.IContent content, System.Globalization.CultureInfo cult)
        {
            // here change the result page url depending on category
            string category = content.GetMetaData("Category") as string;
            if (!string.IsNullOrEmpty(category))
            {
                string url = string.Format("~/IndexNewsCategory.aspx?category={0}", category);
                return base.GetIndexerInfo(url, content, cult);
            }
            return base.GetIndexerInfo(path, content, cult);
     
        }
    }


    We can provide you with some guidance, but we do not provide dedicated development that requires completing your tasks.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
12 posts, 0 answered