Server Error in '/' Application.

Post not found

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.Web.HttpException: Post not found

Source Error:


Line 48:         if (post == null) { throw new HttpException(404, "Post not found"); }
Line 49: 
Line 50:         Page.Title = string.Format("{0} - {1}", post.Title, Blog.Title);
Line 51:         Page.Description = post.Excerpt;
Line 52:         lastModified = post.LastModified;

Source File: c:\inetpub\wwwroot\Index.cshtml    Line: 50

Stack Trace:


[HttpException (0x80004005): Post not found]
   ASP._Page_Index_cshtml.Execute() in c:\inetpub\wwwroot\Index.cshtml:50
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +165
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4494.0