Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

MVC Razor Template Project

Vote:
 

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
Vote:
 

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
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.