Last post Apr 12, 2012 02:48 PM by Eilon
Apr 02, 2012 11:18 PM|dwilson|LINK
Since I have started using VS11 I have had an issue with the debugger launching my page with the &s in the URL being URI escaped. I am working on an MVC 4 project.
The setting in my project properties under Web->Specific Page is:
When a browser is launched (any of the supported browsers) the URL in the browser bar looks like:
I receive this error from the server runtime:
The parameters dictionary contains a null entry for parameter 'cat' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Unsubscribe(Int32, System.Nullable`1[System.Guid], System.Nullable`1[System.Guid])' in 'Apps3.Membership.Mvc.Controllers.EmailController'.
An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
I can fix this by changing the %26 characters in the browser's URL bar to & and the page loads.
Is there a way to get VS 11 to stop URI encoding the URL before launching it in the browser. I did not have this issue in VS2010 with the same project.
Any assistance would be greatly appreciated.
Apr 12, 2012 02:48 PM|Eilon|LINK
This definitely appears to be a bug! I have logged a bug in our internal bug database so that the VS team can take a look at it.