Tag Archives: ASP.NET

A potentially dangerous Request.Path value was detected from the client

Posted on

I have a Odata service implementation and started getting errors where one of parameters in query has ‘:’. Solution: <system.web> <httpRuntime requestValidationMode=”2.0″ requestPathInvalidCharacters=””/> <pages validateRequest=”false”> Tweet

cannot convert from ‘void’ to ‘System.Web.WebPages.HelperResult

Posted on

Today i was trying to convert ASP.NET MVC 2 master pages to ASP.NET MVC3 Razor master layout.chtml and hit following error trying to call @Html.RenderAction(“Footer”, “Root”); which has been converted from <% Html.RenderAction(“Footer”, “Root”); %>. To solve problem simply use @{Html.RenderAction(“Footer”, “Root”); }. It calls RenderAction and ignores return type. @Html.RenderAction(“Footer”, “Root”); is trying to   …Continue Reading