Note that there are some explanatory texts on larger screens.

plurals
  1. POnot marked as serialized error while the class was actually marked as Serialized with annotations
    primarykey
    data
    text
    <p>I have the following action methods in my controller. I have a multipage wizard scenario here. Now when I click next I get this "....type not marked as serialized" error message. I have seen posts related to same problem but couldn't get a solution for mine. </p> <pre><code> public ActionResult startOpenJAccount() { return View(vmJ); } for this method the view is something like: &lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"&gt; &lt;%using (Html.BeginForm("contReg")){ %&gt; &lt;%:Html.Serialize("vmJ", Model) %&gt; &lt;fieldset&gt; &lt;legend&gt; Individual Personal Profile&lt;/legend&gt; &lt;table class="col1"&gt; &lt;tr&gt; &lt;td&gt;&lt;div class="display-label"&gt;Title&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div class="display-field"&gt;&lt;%: Html.TextBoxFor(m=&gt;m.newMember.title) %&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;div class="display-label"&gt;First Name&lt;/div&gt;&lt;/td&gt; &lt;td&gt;&lt;div class="display-field"&gt;&lt;%: Html.TextBoxFor(m=&gt;m.newMember.FirstName )%&gt;&lt;/div&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;/table&gt; &lt;div class="command"&gt;&lt;input type="submit" name="next" value="Next" /&gt;&lt;/div&gt; &lt;div class="command"&gt;&lt;input type="submit" name="cancel" value="Cancel" /&gt;&lt;/div&gt; &lt;%}%&gt; &lt;/fieldset&gt; </code></pre> <p>This page posts to the following action method: </p> <pre><code> public ActionResult contReg(string next, string cancel) { if (next != null) { vmJ.members.Add(vmJ.newMember); vmJ.newMember = new Individual(); return RedirectToAction("displayRegInfo"); } if (cancel != null) return RedirectToAction("displayRegInfo"); return RedirectToAction("Index","default"); } </code></pre> <p>Which for the click of Next returns this error. The class mentioned as "not marked as serializable" is not even included in the objects involved so far, instead was used later down the line in the same controller.</p> <p>I am stuck due to this, please help asap.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload