Delete Error: The page cannot be found

Mar 12, 2009 at 9:19 PM
Edited Mar 12, 2009 at 9:19 PM
I've done a search on this topic and I can find one specifically relating to this.  I recently downloaded BE and I'm running it on a test webserver.  I can add and edit posts, but when I try to delete, I get the page cannot be found.

Same thing when I try to delete the included sites in the blogroll.  Running IIS 6 and I believe I have the correct Web.config, but any help would be appreciated.
Coordinator
Mar 12, 2009 at 9:30 PM
So you click 'Delete' and then you see a page cannot be found error?  What is the URL in the address bar before you click 'Delete' and what is the URL in the address bar when you see the page not found error?  Also, after you get the error and go back to the blog, is the post (or blogroll site) still there, or did it get deleted?
Mar 12, 2009 at 9:34 PM
I click 'Delete' and then comes the page not found error.  This is the URL being displayed:

http://news-webdev/post/2009/03/12/Test-Post-2.aspx?deletepost=1b1e338e-9168-4bf0-99d5-53f827515fef

When I get the error, and go back to the blog, the post (and/or blogroll site) is still there.
Coordinator
Mar 12, 2009 at 9:41 PM
Is your blog installed directly in news-webdev?  Or is it installed in a blog folder/application?  In other words, is your blog's homepage URL

http://news-webdev/
-- or something like --
http://news-webdev/blog/
Mar 12, 2009 at 9:44 PM
Yes, http://news-webdev/ is the install of the blog.  The blog IS the site.  When I click on the post header, this is the url:  http://news-webdev/post/2009/03/12/Test-Post-2.aspx
Coordinator
Mar 12, 2009 at 10:31 PM
Edited Mar 13, 2009 at 3:37 AM
EDIT:  Not important.  The next post below is probably the issue.
Coordinator
Mar 12, 2009 at 11:18 PM
Edited Mar 13, 2009 at 3:37 AM
Do you have URLScan installed on your server?  According to this, URLScan failures result in 404 errors.  Searching for 404 errors in your W3SVC log will include failures due to URLScan blocking.

Another BlogEngine user reported URLScan problems when the querystring included the word "deletepost".

EDIT: This would also explain why you are getting errors trying to delete entries out of the BlogRoll.  Clicking the 'Delete' link navigates you to a URL like:

http://localhost/admin/Pages/Blogroll.aspx?delete=SomeBlog

In this case too, "delete" is in the querystring.

You could disable the filter for the word 'delete' in URLScan (as jsmcmullen brought up in the that other post).  Or, you could make some (somewhat minor) modifications to your BlogEngine code so it would use a different keyword in the querystring -- other than 'delete'.
Mar 13, 2009 at 1:22 PM
That was it!  Our system admin installed URLScan on the test webserver yesterday.  Thanks for your help!
Jun 5, 2009 at 1:21 PM

i'm having this issue when trying to delete blogroll entries.  i do NOT have URLScan installed.  any ideas?

Jul 3, 2009 at 6:41 AM

I am on linux and I changed the permissions on the admin directory to 777 or everyone full access and it solved the problem.