Post link not working

Topics: ASP.NET 2.0
Jul 15, 2011 at 8:08 AM


New 2.5 set up, seems to be working except when I write a post and click save I get the standard page cannot be found.  If I then go back to the homepage the new post is there but again if I click on the post title I get page cannot be found.  I had the include date option enabled but disabled it and still not working, I also read something about code highlight extensions so tried disabling them but still can't open a post.

Anyone any idea what it might be?


Jul 15, 2011 at 10:16 AM

You might want to try turning off custom errors in the web.config file in case an error is occurring and you are being redirected to error.aspx or possibly error404.aspx.  You would want to change the mode to Off (it's case sensitive):

<customErrors mode="Off" ..... />

This may or may not help.  If it does help, then you'll probably see some error details rather than getting "Post Not Found" -- but not sure entirely.

Jul 15, 2011 at 11:02 AM

Thanks for that, it showed up a problem with the theme, just commented the code below out and it's working now.


if (Post.AuthorProfile.PhotoUrl != "")
	AuthorImg.InnerHtml = "<img src=\"" + Post.AuthorProfile.PhotoUrl.ToString() + "\" width=\"60px\"  height=\"60px\" alt=\"" + Post.AuthorProfile.FullName.ToString() + "\" ";
	AuthorImg.Visible = true;