YABE .9 BUG

Sep 19, 2008 at 5:00 PM
The parameters dictionary does not contain a valid value of type 'System.Int32' for parameter 'year'. To make a parameter optional its type should either be a reference type or a Nullable type.

[InvalidOperationException: The parameters dictionary does not contain a valid value of type 'System.Int32' for parameter 'year'. To make a parameter optional its type should either be a reference type or a Nullable type.]
   System.Web.Mvc.ControllerActionInvoker.ExtractParameterFromDictionary(ParameterInfo parameterInfo, IDictionary`2 parameters) +213
   System.Web.Mvc.<>c__DisplayClass4.<InvokeActionMethod>b__3(ParameterInfo parameterInfo) +12
   System.Linq.WhereSelectArrayIterator`2.MoveNext() +78
   System.Linq.Buffer`1..ctor(IEnumerable`1 source) +259
   System.Linq.Enumerable.ToArray(IEnumerable`1 source) +81
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(MethodInfo methodInfo, IDictionary`2 parameters) +152
   System.Web.Mvc.<>c__DisplayClassb.<InvokeActionMethodWithFilters>b__8() +55
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +199
   System.Web.Mvc.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() +20
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(MethodInfo methodInfo, IDictionary`2 parameters, IList`1 filters) +209
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +386
   System.Web.Mvc.Controller.ExecuteCore() +112
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +23
   System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +7
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContextBase httpContext) +107
   System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext) +39
   System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext) +7
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Sep 20, 2008 at 12:06 AM
Edited Sep 20, 2008 at 1:10 AM
Nirvana, can you share with me the URL you were browsing to when this happened.  We are currently using the following url scheme.
http://[domain]/{year}/{month}/{day}/{title}
so if you put it something like
http://localhost/2008
it will return all posts for 2008
http://localhost/2008/9
would return all posts for september of 2008 and
http://localhost/2008/9/10
would return all posts for september 10th of 2008.  0therefore if you don't have a number for the first parameter you will get an exception except in the case of matching one of the controller names as these have a higher precendence in the routing.
Some of these routes include
http://localhost/Login
http://localhost/tag/{tag}
http://localhost/Posts for the post controller
http://localhost/Feeds/rss20
http://localhost/Feeds/atom
http://localhost/Admin/ 
We will enhance the routes to have regular expression for more accurate matching.  But they should work now if you go to one of the above routes.
Sep 20, 2008 at 5:40 AM
URL: http://localhost/aboutme/
http://localhost/resume/
http://localhost/project/

The parameters dictionary does not contain a valid value of type 'System.Int32' for parameter 'year'. To make a parameter optional its type should either be a reference type or a Nullable type

ADN

In TagDL.CS:
static public List<vwTagCount> GetTagCounts()
{
    tagCloud = context.vwTagCounts.ToList();   //Null reference Exception
}
Sep 20, 2008 at 3:51 PM
Edited Sep 20, 2008 at 3:53 PM
Thank you.  I will add these to the issue tracker.  I can also add you as a developer if you like, to help us fix these issues.