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

Forums / Developing with Sitefinity / Custom "System is restarting..." page?

Custom "System is restarting..." page?

6 posts, 0 answered
  1. Mark
    Mark avatar
    12 posts
    Registered:
    04 Aug 2010
    05 Jul 2013
    Link to this post
    Is it possible to have a custom "System is restarting..." page? Has anyone ever tried to do this?
  2. Patrick Dunn
    Patrick Dunn avatar
    237 posts
    Registered:
    03 Nov 2014
    05 Jul 2013
    Link to this post
    Hello Mark,

     The system is restarting message is not generated by Sitefinity it is comming from .NET framework. I don`t think it can be changed, I was searching for a way, but didn`t find any. I've never actually seen it fire off on a live site either. I think it's a local, in debug, and/or iis express/cassini related page.

    Regards,
    Patrick Dunn
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Vladimir
    Vladimir avatar
    3 posts
    Registered:
    05 Feb 2005
    15 Aug 2014
    Link to this post

    From Sitefinity 7.1 it is possible to customize the default message: "The system is restarting message".

    Here is the solution:

    1.Create custom SitefinityHttpModule:

    namespace
    SitefinityWebApp.Tests

    {

        /// <summary>

        /// Custom Sitefinity HTTP module - customize the default
    "The system is restarting..." message

        /// </summary>

        public class CustomSitefinityHttpModule : SitefinityHttpModule

        {

            /// <summary>

            /// Called on begin request
    during system restarting. The request should be completed here, because the
    system will not be able to handle the request at this time.

            /// By default sends 'The system
    is restarting...' message and completes the request.

            /// Can be overridden to
    implement different behavior.

            /// </summary>

            /// <param name="context">The HTTP context.</param>

            protected override void OnSystemRestarting(HttpContext context)

            {

               
    SitefinityHttpModule.SendDelayedRedirect(context, "<h2>Custom restarting
    message</h2><p>Please wait a few seconds. You will be redirected
    automatically.</p>");

            }

        }

    }

     

     

    2.Register the module in the web.config replacing the default one:

      <system.webServer>

        <modules runAllManagedModulesForAllRequests="true">

          <add name="Sitefinity" type="SitefinityWebApp.Tests.CustomSitefinityHttpModule,
    SitefinityWebApp" />

          ...

     Regards,

    Vladimir

  4. Rich
    Rich avatar
    24 posts
    Registered:
    22 Oct 2012
    27 Aug 2014 in reply to Vladimir
    Link to this post
    I'm running Sitefinity 7.1.5200.0, but receive a "No suitable method found to override" for OnSystemRestarting.  Am I missing something?
  5. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    27 Aug 2014 in reply to Rich
    Link to this post

    http://www.sitefinity.com/developer-network/forums/general-discussions-/internal-hotfix-builds

     It stats that it is fixed 7.1.5205. So Rich that might be the problem, not.

    Markus

  6. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    06 Dec 2016
    01 Sep 2014
    Link to this post
    Hi,

    As Markus mentioned since the release of Sitefinity 7.1.5205 version it is possible to customize the default "The system is restarting..." server message while the website is restarting.

    Regards,
    Stefani Tacheva
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
6 posts, 0 answered