Last post Mar 05, 2009 04:56 PM by joepo5
Mar 05, 2009 04:56 PM|joepo5|LINK
I have read the posts about nullreference exceptions having to do with routing issues but none of these apply to me. I am running on IIS 7.0 but still get this error in some storefront code.
This line in ProductDisplay.ascx is throwing a NullReferenceException when the controller attempts to render this view.
I know that the issue is not Model.ProductCode because I can replace with any string literal and same exception.
<a href="<%= Html.BuildUrlFromExpression<CatalogController>(x => x.Show(Model.ProductCode)) %>"
If anyone has any idea about this, I would sincerely appreciate it. I don't know how to go about debugging this.
IIS 7.0 (Vista)
ASP.NET MVC RC 2