.net - @Html.RenderAction and Action always return "Input string was not in a correct format." -
I'm actually stumped on this one. I am searching for everything and trying what I can think. My job or rendering always gives an error "Input String was not in the correct format." I have a MVC 5 page with the following code
@ Html.Action ( "GetSocialLinks", new {constituent presentation = Modlkkanpanent presentations, customer id = 501}) < / code>
I've also tried
@ {HTML.RenderAction ( "GetSocialLinks", new {constituent presentation = Modlkkanpanent presentation, customer id = 501} )}}
the controller action looks like this: [ChildActionOnly] public function GetSocialLinks (IComponent presentation component presentation, Intel client id) {// some code here Nshik Return View ( "social links", social links); }
I've verified that the action is called and just runs fine. PartialView runs the call right and I can run the value after it runs. I have also removed all the HTML from SocialLinks can see to make sure that it was not an issue with HTML. Why did not I get that scene? I need to call back a child's action, so get more data
MVC 5 Net 4.5
Here's a small stack trace
< code> `System.Text.StringBuilder.AppendFormat (the IFormatProvider provider, string format, object [] args) [+13914049 System.String.Format (IFormatProvider provider, string format,] args object) 136 System.Web.Mvc.VirtualPathProviderViewEngine .GetPathFromGeneralName (ControllerContext controllerContext, List11 places, string name, string controllerName, string cache, string [] and searched places) +211 System Web. MVC Virtual pathproverviriengine Getpath (controller Kantboks controller Kantboks, String [] location, String [] area, Sthanproprti string name, string name, string Niyntrknam, string Kasekepipriks, use Boolean cash, String [] and discovered places) +958 system. Web. VVRLPitProverViewinFindPartyualW (Controller Contact Controllant Contains, String Partial Visible, Boolean User) +192 System. Web. Multimedia Drishyinjin Cynkfind (Fnk`2 lookup, Boolean Traksekaapia quarter) 174 System.Web.Mvc.PartialViewResult.FindView (ControllerContext reference) 85 System.Web.Mvc.ViewResultBase.ExecuteResult (ControllerContext reference) + 147` < / Pre>
Comments
Post a Comment