Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • DTS17 3 posts 23 karma points
    Oct 12, 2021 @ 14:16
    DTS17
    0

    can not preview page not found content

    I am trying to add a 404 page to my site, but I am not able to see the preview of that file. I also am getting a 500 error when I am trying to run it locally. I have tried to clear the App_Data cache and done configuring in my web.config file with no effect. This should be straight forward. Can anyone shed some light on it for me? Thanks

    This is the error I am receiving when I try to preview

    I click this link and get the error

  • Joris Peters 5 posts 75 karma points
    Oct 17, 2021 @ 16:49
    Joris Peters
    0

    Hi DTS17,

    Have you tried looking for the 500 error in the Umbraco Log Viewer? I'm curious about the cause of this error. Does the error appear in the logs at all?

  • Ambert van Unen 175 posts 819 karma points c-trib
    Oct 18, 2021 @ 13:06
    Ambert van Unen
    0

    Im not 100% sure, but it looks like the 404 you're using is the default iis/404 page and not the Umbraco 404 page you have created.

    In the Umbracosettings.config you can supply an ID or a GUID of the 404 page you'd like to use.

  • DTS17 3 posts 23 karma points
    Oct 20, 2021 @ 14:05
    DTS17
    0

    Yes I did put the ID into the error404 tag 1487 enter image description here

    Also, when I make the 404 page and I try to use this link:

    enter image description here

    it goes to this page:

    enter image description here

    there used to be a 404 link on this page, but I don't know where it went. If that helps. enter image description here

  • DTS17 3 posts 23 karma points
    Oct 20, 2021 @ 15:08
    DTS17
    0

    I checked the error log and it gave me this error:

    An unhandled exception occurred

    System.Web.HttpCompileException (0x80004005): D:\local\Temporary ASP.NET Files\root\fb1b27b6\79b53e6c\AppWebpagenotfound.cshtml.65a2d1ee.sa7tx0sw.0.cs(36): error CS1646: Keyword, identifier, or string expected after verbatim specifie

Please Sign in or register to post replies

Write your reply to:

Draft