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