Strange error

Sep 30, 2008 at 8:21 PM
I've got this error tonight while I was logged off from my blog and nobody worked on remote on IIS. Any idea how to solve/fix it?

Thanks in advance,

ajitaM


 

Server Error in '/Ajitam' Application.

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 41: 		else if (Request.QueryString.Count == 0 || !string.IsNullOrEmpty(Request.QueryString["page"]) || !string.IsNullOrEmpty(Request.QueryString["theme"]) || !string.IsNullOrEmpty(Request.QueryString["blog"]))
Line 42: 		{
Line 43: PostList1.Posts = Post.Posts;Line 44: 			Page.Title = Server.HtmlEncode(BlogSettings.Instance.Name);
Line 45: 			if (!string.IsNullOrEmpty(BlogSettings.Instance.Description))

Source File: c:\Inetpub\wwwroot\Ajitam\default.aspx.cs    Line: 43

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   BlogEngine.Core.Category.get_Categories() in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Category.cs:105
   BlogEngine.Core.Category.GetCategory(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Category.cs:80
   BlogEngine.Core.Providers.XmlBlogProvider.SelectPost(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Providers\XmlProvider\Posts.cs:116
   BlogEngine.Core.Providers.BlogService.SelectPost(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Providers\BlogService.cs:84
   BlogEngine.Core.Post.DataSelect(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Post.cs:651
   BlogEngine.Core.Post.Load(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Post.cs:741
   BlogEngine.Core.Providers.XmlBlogProvider.FillPosts() in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Providers\XmlProvider\Posts.cs:242
   BlogEngine.Core.Post.get_Posts() in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Post.cs:351
   _default.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Ajitam\default.aspx.cs:43
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   BlogEngine.Core.Web.Controls.BlogBasePage.OnLoad(EventArgs e) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Web\Controls\BlogBasePage.cs:62
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
<!-- [NullReferenceException]: Object reference not set to an instance of an object. at BlogEngine.Core.Category.get_Categories() in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Category.cs:line 105 at BlogEngine.Core.Category.GetCategory(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Category.cs:line 80 at BlogEngine.Core.Providers.XmlBlogProvider.SelectPost(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Providers\XmlProvider\Posts.cs:line 116 at BlogEngine.Core.Providers.BlogService.SelectPost(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Providers\BlogService.cs:line 84 at BlogEngine.Core.Post.DataSelect(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Post.cs:line 651 at BlogEngine.Core.Post.Load(Guid id) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Post.cs:line 741 at BlogEngine.Core.Providers.XmlBlogProvider.FillPosts() in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Providers\XmlProvider\Posts.cs:line 242 at BlogEngine.Core.Post.get_Posts() in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Post.cs:line 351 at _default.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Ajitam\default.aspx.cs:line 43 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at BlogEngine.Core.Web.Controls.BlogBasePage.OnLoad(EventArgs e) in C:\Documents and Settings\Mads Kristensen\Skrivebord\BlogEngine.Core\Web\Controls\BlogBasePage.cs:line 62 at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ajitam\66693500\984b7807\App_Web_tbksb0hc.8.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->