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

Forums / Deployment / Admin very slow and has runtime errors in godaddy

Admin very slow and has runtime errors in godaddy

6 posts, 0 answered
  1. Alex Florin
    Alex Florin avatar
    13 posts
    Registered:
    31 Jul 2009
    05 Sep 2009
    Link to this post
    We've deployed a client site using sitefinity community v3.7 on godaddy using IIS7 as per your godaddy deployment doc.

    The problem comes when using the administrator on the hosted site. After selecting any page on the sitemap, the task can take upwards of 40-60 seconds.  Sometimes it does not come up at all and a run time error occurs.

    Also when editing a page or publishing a page, sometimes an error occurs after about 60 seconds of browser spinning.  The error below is one that came up after trying to edit a page:

    Server Error in '/strokeflsite' Application.


    RegisterRequiresControlState can only be called before and during PreRender.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidOperationException: RegisterRequiresControlState can only be called before and during PreRender.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     

    [InvalidOperationException: RegisterRequiresControlState can only be called before and during PreRender.]

       System.Web.UI.Page.RegisterRequiresControlState(Control control) +2643122

       System.Web.UI.Control.AddedControl(Control control, Int32 index) +8682789

       System.Web.UI.ControlCollection.Add(Control child) +80

       Telerik.Cms.Web.UI.ZoneDesigner.CreateChildControls() +464

       System.Web.UI.Control.EnsureChildControls() +87

       System.Web.UI.Control.PreRenderRecursiveInternal() +44

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Control.PreRenderRecursiveInternal() +171

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.4049


     
    After the error, if you go back in the browser then select the page again, the page either loads instantly or you get the error again.

    The webconfig has been setup as per the godaddy deployment doc.  In addition, web.config includes the following:
        <compilation debug="false">
        <scriptResourceHandler enableCompression="true" enableCaching="true"/>

    The slow load time and error occurs with either the above settings, or the reversed settings.

    The problems occured on both godaddy II6 and II7 servers (we upgraded with the hope that it would alleviate the issues).

    None of the problems occur in an XP development machine using localhost.

    Please help as this will be unacceptable to our client.

    Alex
  2. Alex Florin
    Alex Florin avatar
    13 posts
    Registered:
    31 Jul 2009
    05 Sep 2009
    Link to this post
    Also we get another error when uploading a image file through the radeditor:

    Server Error in '/strokeflsite' Application.


    Security Exception

    Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Exception Details: System.Security.SecurityException: Request failed.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     

    [SecurityException: Request failed.]

       System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +150

       System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) +100

       System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) +284

       System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) +69

       System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) +150

       System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +30

       System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +40

       System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +123

       System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) +54

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.4049

  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    06 Sep 2009
    Link to this post
    Hello Alex Florin,

    I suggest that you should switch to another hosting provider. Your current hosting company has some limitation regarding default Medium Trust settings. Please take a look at our hosting partners.

    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.
  4. Alex Florin
    Alex Florin avatar
    13 posts
    Registered:
    31 Jul 2009
    08 Sep 2009
    Link to this post

    Wait, you have a dedicated document specifically for deploying sitefinity in godaddy.  Plus your published product description states explicitly states that sitefinity supports medium trust content for shared hosting environments.

     

    Our plan was to migrate our clients to sitefinity (either the community version or the standard version, depending on the client) and many are hosted by godaddy.

    Is your final answer then that there is no current solution to sitefinity admin's peformance problem and runtime errors when hosted in godaddy?

  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    08 Sep 2009
    Link to this post
    Hello Alex Florin,

    We are not able to control the host environment. We use reflection for all public properties so that if you set  up Sitefinity in default Medium trust level there should not be any problem. Also there are several hosting plans that companies offer so some  of them could have different security settings that causes issues.

    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.
  6. Alex Florin
    Alex Florin avatar
    13 posts
    Registered:
    31 Jul 2009
    15 Sep 2009
    Link to this post
    For anyone who's interested or has had issues with deployment in godaddy, I figured I'd follow up as we have resolved our peformance problem (and so far have had no runtime errors either).  We now have a deployed site that is superfast both when running the website and in the admin.

    Godaddy has a new performance shared hosting plan called Grid Hosting which is just now comming out of beta.  Right now its at $5.00 a month but will go up to $20.00 very shortly when it's officially deployed.  Fortunately, we were able to lock the price for our clients at the $5.00 a month plan.  We deployed our test site using Grid Hosting and the admin page load times went from 45-60 seconds to 1-2 seconds.  Also, the expansion of the site map tree nodes are now near instant. This was a huge sigh of relief because we would have had a hard time convincing them to move their hosting to someone else just so we could convert them to sitefinity.

    So, if anyone has had issues with godaddy, I strongly recommend you look into their Grid Hosting plan.

    Cheers,

    Alex
Register for webinar
6 posts, 0 answered