I am experimenting with DD4T 2. I'm getting the the latest alphas of everything from NuGet, and I've selected Autofac as my DI system.
When I start the application with a request for /
, I get an exception, which appears to be thrown from the following code in TridionControllerBase
.
[HandleError]
public virtual ActionResult Page(string url)
{
url = AddWelcomePageToUrl(url);
IPage page = GetPage(url);
if (page == null) { throw new HttpException(404, "Page cannot be found"); }
return View(GetViewName(page), page);
}
In the broker database, my root page is index.aspx
. I have tried adding a DD4T.WelcomeFile
appSetting, but this doesn't help.
My debugging session is a bit iffy, but it's fairly clear that page
is evaluating to null. (url
is already null by the time my PageController gets invoked.) What might be the cause of this, and how can I further investigate?
url
contain at the time of this request, and is there a corresponding page in the broker for that?url
is null, thenAddWelcomePageToUrl(url)
hopefully turns that intoindex.aspx
. But without debugging working it's not really precision guess work, so not my cup of tea ;o). Maybe add another question about your issues with debugging, surely that shouldn't be so difficult to setup?