Sitefinity ASP.NET CMS - Content Management System

Support Forum Thread

Home >  Support >  Forums home > Sitefinity 3.x > Bugs & Issues > Indexing Error

Reply
Scott Smith, 7/18/2008 5:26:22 PM
Hi...I'm having a problem indexing my site for the first time.  When I select ALL PAGES to index I am getting the following error when I then try the index:

 

Value cannot be null.
Parameter name: url

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: url

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: url]
   Telerik.Cms.Search.PageIndexerInfo..ctor(String url, Guid pageId, CultureInfo culture) +127
   Telerik.Cms.Search.PageIndexProvider.AddPage(ICmsPage page, List`1 list) +276
   Telerik.Cms.Search.PageIndexProvider.GetContentToIndex() +313
   Telerik.Search.Engine.IndexingService.GetContentToIndex() +92
   Telerik.Search.Engine.IndexingManager.StartIndexing(IIndexingService service, Boolean appendToIndex) +66
   Telerik.Search.WebControls.Admin.ControlPanel.Service_Command(Object sender, CommandEventArgs e) +307
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +105
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +132
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Reply
, 7/21/2008 10:24:25 AM
Hi Scott Smith,

This exception is result of page without Url being passed for indexing. It usually happens when you add pages to the CMS by code, not using the built-in form.

Please, check your table sf_CmsPageProps for PageType=2 and ExternalUrl=NULL and let us know of the results.

Kind regards,
Nikola
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center

Reply
Scott Smith, 7/31/2008 7:55:15 AM
Hi Nikola:

I do have one row in the database like this.  What do I need to do to fix it?

Scott

Reply
, 8/1/2008 11:03:52 AM
Hello Scott Smith,

Please accept our apologies for the delayed response.
The page of that type (External Page) needs to have an url, and the quickest way to fix it is to enter a valid url in ExternalUrl column.

Notice that when you create a page inside Sitefinity administration, the Url field is required for External pages. So you can get an empty Url value if you're trying to insert pages by code.

Don't hesitate to contact us if you have other questions.

Best wishes,
Nikola
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.