Error when accessing site | Episerver Developer Community

Error when accessing site

Member since: 2004
 

Hi, I installed Relate+ on a sample site and it all worked fine.

Subsequent access to the site is giving me a 'page could not be loaded' error: details are as follows :-

Stack trace:

[InvalidOperationException: Failed to compare two elements in the array.]
at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b)
at System.Array.SorterObjectArray.QuickSort(Int32 left, Int32 right)
at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
at System.Collections.ArrayList.IListWrapper.Sort(Int32 index, Int32 count, IComparer comparer)
at EPiServer.Common.Modules.ModuleCollection.Sort(IComparer comparer)
at EPiServer.Common.Settings.LoadModules()
at EPiServer.Common.Settings.LoadSettings()
at EPiServer.Common.Web.Global.OnBeginRequest()
at EPiServer.Common.Web.HttpModule.Context_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
[Inner exception TargetInvocationException: Exception has been thrown by the target of an invocation.]
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
at EPiServer.Common.ObjectComparer.GetPropertyValue(Object o, String propertyPath)
at EPiServer.Common.ObjectComparer.Compare(Object x, Object y)
at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b)
 
I also see in the EPiServer Log the following:
2009-01-02 16:00:55,175 ERROR [1] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
System.InvalidOperationException: Failed to compare two elements in the array. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> EPiServer.Common.Exceptions.FrameworkException: EPiServer Community failed to initialize. Correct the error and restart application. ---> System.ArgumentOutOfRangeException: Number must be either non-negative and less than or equal to Int32.MaxValue or -1.
Parameter name: dueTime
   at System.Threading.Timer..ctor(TimerCallback callback, Object state, Int32 dueTime, Int32 period)
   at System.Timers.Timer.set_Enabled(Boolean value)
   at System.Timers.Timer.Start()
   at EPiServer.Community.NewsFeed.NewsFeedAggregator.ResetTimer()
   at EPiServer.Community.NewsFeed.NewsFeedAggregator.Initialize()
   at EPiServer.Community.NewsFeed.NewsFeedAggregator..ctor()
   at EPiServer.Community.NewsFeed.NewsFeedModule.OnApplicationStart(CommunityContext context)
   at EPiServer.Community.CommunitySystem.LoadSettings()
   at EPiServer.Community.CommunitySystem.OnApplicationStart(IModuleContext context)
   at EPiServer.Common.Settings.LoadModules()
   --- End of inner exception stack trace ---
   at EPiServer.Community.CommunitySystem.get_CurrentContext()
   at EPiServer.Community.CommunitySystem.get_AdministrationNode()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   at EPiServer.Common.ObjectComparer.GetPropertyValue(Object o, String propertyPath)
   at EPiServer.Common.ObjectComparer.Compare(Object x, Object y)
   at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b)
   --- End of inner exception stack trace ---
   at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b)
   at System.Array.SorterObjectArray.QuickSort(Int32 left, Int32 right)
   at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
   at System.Collections.ArrayList.IListWrapper.Sort(Int32 index, Int32 count, IComparer comparer)
   at EPiServer.Common.Modules.ModuleCollection.Sort(IComparer comparer)
   at EPiServer.Common.Settings.LoadModules()
   at EPiServer.Common.Settings.LoadSettings()
   at EPiServer.Common.Web.Global.OnBeginRequest()
   at EPiServer.Common.Web.HttpModule.Context_BeginRequest(Object sender, EventArgs e)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2009-01-02 16:00:55,191 ERROR [1] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
 
Any ideas?

#26853 Jan 02, 2009 17:09
  •  

    I am getting the exact same error.

    Standard express installation first, installation successful, started getting the error after I clicked on the Community tab in edit mode. After that unable to access any of the site, receive this error every time. IIS resets don't help.

    Uninstalled the site, then re-installed using the deployment manager. Same thing happened. Installation successful, site loads. Enter edit mode, click on the Community administration tab and receive the error. All site pages now fail to load.

    Has anyone managed to resolve this issue? Are we missing something during installation?

    All pre-reqs and install instructions double checked. Running in a VM with only 2 other R2 sites on the same version.

    #26872 Jan 06, 2009 12:43
  •  

    Hi,

     

    Could you provide your values for the aggregationInterval from the newsfeed section in your web.config?

     <newsfeed aggregationInterval="00:10:00" aggregationSpan="1.00:00:00" />

     

    Also, putting this little snippet into an aspx file on the site where you installed Relate+, and going to that page should display the actual loaded value, could you also, if possible, provide this?

    <%@ Page language="c#" AutoEventWireup="True" %>
    <%= EPiServer.Community.NewsFeed.NewsFeedModule.Instance.AggregationInterval.TotalMilliseconds %>
     
    /Håkan 
    #26881 Edited, Jan 07, 2009 10:48
  • This message was deleted by Mark Bagnall at Jan 07, 2009 13:30.
  • Member since: 2004
     
    #26890 Jan 07, 2009 13:31
  • Member since: 2004
     

    web.config settings

            <newsfeed aggregationInterval="00:10:00" aggregationSpan="1.00:00:00" />

    value from .aspx page: 600000

     

    However, my site appears to be working now...

    #26892 Jan 07, 2009 13:35
  •  

    Okay, those settings are, as one would suspect, set to their default values.

    Do you know if anything has changed between when it didn't work and now?

     

    The way we have been able to find to reproduce the problem is by setting the aggregationInterval to a very high value; more than 24.86 days (Int32.MaxValue ms), in which case this error occurs due to an integer overflow inside the System.Timers.Timer class.

    #26893 Jan 07, 2009 14:06
  •  

    Did we get a definitive answer on what was causing this?  I'm getting the same error as above, I can't add the code snippit to a page as not a single page will load without the error message.

    I've already re-installed the Relate+ and the error has happened again.  The only thing I did previously that may have changed things was to create a new page type in VS2008, but i didn't even get to adding it properly as a page type within the CMS

    #26900 Jan 07, 2009 15:09
  •  

    For the purposes of troubleshooting, could you instead make the following change to global.asax:

    <%@ Application Language="C#" Inherits="EPiServer.Global" %>
    <script language="C#" runat="server">

    void Application_BeginRequest(object source, EventArgs e) {
        try
        {
            EPiServer.Common.Web.Global.OnBeginRequest();
        } catch (Exception ex) {
            throw new ApplicationException("Newsfeed aggregation interval: " + EPiServer.Community.NewsFeed.NewsFeedModule.Instance.AggregationInterval.TotalMilliseconds.ToString(), ex);
        }
    }
    </script>

     

    And comment out the EPiServer.Common.Web.HttpModule http module in web.config:

    <!--      <add name="EPiServerCommon" type="EPiServer.Common.Web.HttpModule, EPiServer.Common.Web" preCondition="managedHandler" />-->

     

    That should throw an exception with the interesting value in the message. (This change should not be made permanent, however.)

     

    #26904 Jan 07, 2009 16:28
  •  
    The value i'm getting is 600000, do I need to modify this in Web.Config?  Is this the value that is incorrect..... what needs to be changed?
    #26906 Jan 07, 2009 16:54
  •  
    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:


    Line 57:
    Line 58: // Get tags and data bind the tag control
    Line 59: ucSiteTags.TagCloud = TagHandler.GetTagCloud(ucSiteTags.Limit);
    Line 60: ucSiteTags.DataBind();
    Line 61:

    Source File: C:\EPiServer\Sites\RelateNPIA\Templates\RelatePlus\Pages\Start.aspx.cs Line: 59

    Stack Trace:


    [NullReferenceException: Object reference not set to an instance of an object.]
    EPiServer.Common.Cache.CacheHandler.GetCachedObject(String keyPath) +33
    EPiServer.Common.Cache.CacheHandler.GetCachedObjectImplementation(Delegate cacheObjectGetter, Object[] getterArgs, Nullable`1 cacheTimeSpan, NotFoundInCacheAnnouncer notFoundInCacheAnnouncer, String[] key) +127
    EPiServer.Common.Cache.CacheHandler.GetCachedObject(Delegate cacheObjectGetter, Object[] getterArgs, TimeSpan cacheTimeSpan, String[] key) +102
    EPiServer.Common.Tags.TagHandler.GetTagCloud(Int32 numItems) +336
    EPiServer.Templates.RelatePlus.Pages.Start.OnLoad(EventArgs e) in C:\EPiServer\Sites\RelateNPIA\Templates\RelatePlus\Pages\Start.aspx.cs:59
    System.Web.UI.Control.LoadRecursive() +50
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

     

    #26907 Jan 07, 2009 17:19
First   1 2 3   Last 
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
Please login to post a reply