Technical Questions Technical questions on Kentico CMS Connector for Microsoft SharePoint.
Kentico CMS Connector for Microsoft SharePoint > Technical Questions > custom 404 page View modes: 
User avatar
Member
Member
lee.graves - 10/10/2011 12:03:03 PM
   
custom 404 page
Hello,

I have been having trouble with creating a custom 404 page for my site. I have added the follow if statement to my Global.asax.cs as instructed to by this article:

http://devnet.kentico.com/Knowledge-Base/API-and-Internals/Custom-404-error-page-together-with-the-friendly-U.aspx

However when I implement this I get a compliation error saying:


Compiler Error Message: CS1501: No overload for method 'RewriteUrl' takes '0' arguments

Source Error:

Line 591: RedirectToPageNotFound(siteName);
Line 592:
Line 593: if (URLRewriter.RewriteUrl() == URLRewritingResultEnum.NotPage)
Line 594: {
Line 595: Response.Redirect("/404.aspx");


Source File: c:\inetpub\wwwroot\mysite\App_Code\Global.asax.cs Line: 593


Can anyone please tell me where I am going wrong ?

Thanks
Lee

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/10/2011 1:12:38 PM
   
RE:custom 404 page
Hello,

This Knowledge Base article is only for the 3.1a version. The new versions of Kentico implement this feature by default. To configure custom extensions for your pages please check our documentation. To configure a custom 404 message, just set a valid url in CMSSiteManager / Settings / Content / Page not found URL.

Best regards,
Boris Pocatko

User avatar
Member
Member
lee.graves - 10/11/2011 10:47:57 AM
   
RE:custom 404 page
Hello,

I have follwed the steps above to set up a custom 404 page but i can't seem to get it to show up I know the page exsists as i can browse to it but when i go to a place on my site like: www.mysite.com/blah I get the message:

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Any ideas why it is going here and not to my 404 page?

Thanks
Lee

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/11/2011 2:19:16 PM
   
RE:custom 404 page
Hello,

Could you please post the link to your custom 404 page? Please try to insert an absolute URL. If some from your site doesn't work, please try to use something general like www.google.com.

Best regards,
Boris Pocatko