MVC Razor Template Project

Corbin Camp
Member since: 2012

Has anyone had problems getting it to run? I can't create a page at all. Get a YSOD with this:


Parameter has no value set
Parameter name: contentLink

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: Parameter has no value set
Parameter name: contentLink

Source Error:

Line 25:             var startPage = _contentLoader.Get<StartPage>(ContentReference.StartPage);
Line 26:             
Line 27:             var companyPages = _contentLoader.GetChildren<PageData>(startPage.CompanyInformationPageLink)
Line 28:                 .FilterForDisplay(requirePageTemplate: true)
Line 29:                 .ToList();

Source File: C:\EPiServer\Sites\AlloyMVC\Business\PageViewContextFactory.cs    Line: 27


What is the contentLink? Does it have something to do with custom routing?


#65428 Jan 29, 2013 17:49

    Looks like the CompanyInformationPageLink property on the start page isn't set. It should be by the import package though. Did you have any issues during the initial content import?

    #65435 Jan 30, 2013 7:48