Error while trying to visit my web page

Topics: Controls
May 25, 2009 at 4:32 PM

 I can't log into our web page... Please help!  Sometimes it loads and sometimes it doesn't, its weird....

http://transgiving.com/blogengine.net/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 42:       {
Line 43:         int number = BlogSettings.Instance.NumberOfRecentPosts;
Line 44:         if (number > Post.Posts.Count)
Line 45:           number = Post.Posts.Count;
Line 46: 


Source File: d:\hosting\jacki2600\blogengine.net\App_Code\Controls\RecentPosts.cs    Line: 44

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   BlogEngine.Core.Category.CompleteTitle() in Category.cs:100
   BlogEngine.Core.Category.CompareTo(Category other) in Category.cs:253
   System.Collections.Generic.GenericArraySortHelper`1.SwapIfGreaterWithItems(T[] keys, Int32 a, Int32 b) +110
   System.Collections.Generic.GenericArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right) +87
   System.Collections.Generic.GenericArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +102

[InvalidOperationException: Failed to compare two elements in the array.]
   System.Collections.Generic.GenericArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +409
   System.Array.Sort(T[] array, Int32 index, Int32 length, IComparer`1 comparer) +207
   System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer) +95
   BlogEngine.Core.Category.get_Categories() in Category.cs:135
   BlogEngine.Core.Category.GetCategory(Guid id) in Category.cs:110
   BlogEngine.Core.Providers.DbBlogProvider.SelectPost(Guid id) in DbBlogProvider.cs:172
   BlogEngine.Core.Providers.BlogService.SelectPost(Guid id) in BlogService.cs:86
   BlogEngine.Core.Post.DataSelect(Guid id) in Post.cs:702
   BlogEngine.Core.Post.Load(Guid id) in Post.cs:794
   BlogEngine.Core.Providers.DbBlogProvider.FillPosts() in DbBlogProvider.cs:519
   BlogEngine.Core.Post.get_Posts() in Post.cs:362
   Controls.RecentPosts.BuildPostList() in d:\hosting\jacki2600\blogengine.net\App_Code\Controls\RecentPosts.cs:44
   Controls.RecentPosts..cctor() in d:\hosting\jacki2600\blogengine.net\App_Code\Controls\RecentPosts.cs:22

[TypeInitializationException: The type initializer for 'Controls.RecentPosts' threw an exception.]
   Controls.RecentPosts..ctor() +0
   ASP.themes_thumper_site_master.__BuildControlRecentPosts() in d:\hosting\jacki2600\blogengine.net\themes\Thumper\site.master:86
   ASP.themes_thumper_site_master.__BuildControlForm1() in d:\hosting\jacki2600\blogengine.net\themes\Thumper\site.master:13
   ASP.themes_thumper_site_master.__BuildControlTree(themes_thumper_site_master __ctrl) in d:\hosting\jacki2600\blogengine.net\themes\Thumper\site.master:1
   ASP.themes_thumper_site_master.FrameworkInitialize() in d:\hosting\jacki2600\blogengine.net\themes\Thumper\site.master.cs:912308
   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35
   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8664863
   System.Web.UI.Page.get_Master() +51
   System.Web.UI.Page.ApplyMasterPage() +15
   System.Web.UI.Page.PerformPreInit() +45
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282

Server Error in '/blogengine.net' Application.

Object reference not set to an instance of an object.