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:
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?
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
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
is working on a reply...