Copied to clipboard

Flag this post as spam?

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


  • mannaky 12 posts 60 karma points
    Oct 02, 2013 @ 08:40
    mannaky
    0

    Getting a 404 error when rendering a page with template

    Hello, 

    I have written a small umbraco (v. 4.7.2) plugin (C#, ASP .NET) where I want to render a document and a template. However, always when I try to render the document with a specific template, I get forwarded to the standard 404 umbraco page. I absolutely do not have any clue why this is happening.

    The problem occurs, when the following code is processed:

    response += umbraco.library.RenderTemplate(documentId, templateId);

    The page and also the template do exist. The error also occurs when I do not process the response string but just call the RenderTemplate method.

    Can someone help me please?

    Kind regards,

    Manuel

     

  • mannaky 12 posts 60 karma points
    Oct 02, 2013 @ 09:07
    mannaky
    0

    I could just found out the problem of the 404 redirection. When I try to access the document in the umbraco backend I get the following error:

    Parametername: Property test (383) on Content Type Article could not be retrieved for Document 9176 on Tab Page Multimedia. To fix this problem, delete the property and recreate it.

     

    Is there a possibility to check the document at code level to skip the rendering of such (faulty) documents?

    Thanks in advance,

    Manuel

Please Sign in or register to post replies

Write your reply to:

Draft