... which may not really be the question at all, but that's what it looks like to me right now.
I have a controller structure that has several layers of inheritance. The base controller is the one that implements Controller and has a method called Create(Guid var1, DateTime? var2)
and is called like /MyDomain/Create/00000-0000-0000-000000
.
I'm currently trying to implement a method in a controller lower down in the inheritance tree with the signature Create()
which takes a QueryString parameter. (/MyDomain/Create?otherVar=somevalue
) However, ASP.NET decides this is not valid as an "endpoint" and throws an error message saying The parameters dictionary contains a null entry for parameter 'var1' of non-nullable type 'System.Guid' for method 'System.Web.Mvc.ActionResult Create(System.Guid, System.Nullable`1[System.DateTime])'
I don't really know what is going on here. If I try to call another method on the same controller (with a name that is unique and not used higher up in the inheritance stack e.g. /MyDomain/DifferentMethod
) it works without a problem.
My google-fu is coming up short on this problem.