title: Problem with the MvcSerializer after updating from MVC2 to MVC3
body: <p>I use the helper <code>Html.Serialize</code> in one of my views, to serialize an object, and then I deserialize it again in my Controller using the MvcSerializer like this:</p>
  
  <pre><code>(RegistrationViewModel) new MvcSerializer().Deserialize(serializedObject);
  </code></pre>
  
  <p>This worked fine before, but after upgrading to MVC3 (And MVC3 Futures) The <code>Deserialize</code> method has changed so that it now has one more parameter: SerializationMode.</p>
  
  <p>This I can set to either <code>Signed</code> or <code>EncryptedAndSigned</code>.</p>
  
  <p>Regardless of which of these I use, I get an <code>SerializationException</code> asking me to verify that the data was serialized with the same mode I'm trying to deserialize with.</p>
  
  <p>In my view, for some reason IntelliSense is not working for the Serialize method, so I don't know if this has gotten any additional overloads as well.</p>
  
  <p>But the question is quite simply: How can I now, in <code>MVC3</code>, deserialize the data inside my controller that I have serialized inside the View with <code>Html.Serialize</code>?</p>
  
  <p><strong>EDIT - ADDED SOME CODE</strong></p>
  
  <p><em>From the Controller</em></p>
  
  <p>private RegistrationViewModel registeredAccount;</p>
  
  <pre><code>protected override void OnActionExecuting(ActionExecutingContext filterContext)
  {
    var serialized = Request.Form["regData"];
    if (serialized != null)
    {
      registeredAccount = (RegistrationViewModel) new MvcSerializer().Deserialize(serialized, SerializationMode.EncryptedAndSigned);
      TryUpdateModel(registeredAccount); 
    }
    else
      registeredAccount = (RegistrationViewModel)TempData["regData"] ?? new RegistrationViewModel();
  }
  
  public ActionResult Index()
  {
    if (Request.Form["nextButton.x"] != null)
      return RedirectToAction("Details");
    return View(registeredAccount);
  }
  </code></pre>
  
  <p><em>From the view (The serialize call is at the start of the form)</em></p>
  
  <pre><code>@model VektNed.Models.RegistrationViewModel
  ...
  &lt;div class="BodyContainer RegistrationBody"&gt;
    @using (Html.BeginForm()){
      @Html.Serialize("regData", Model, SerializationMode.EncryptedAndSigned)
      &lt;div class="RegistrationGroup"&gt;
        &lt;p class="Description"&gt;e-posten din benyttes som brukernavn for å logge inn.&lt;/p&gt;
        &lt;p&gt;&lt;label for="Account_Email"&gt;e-post&lt;/label&gt; @Html.EditorFor(x =&gt; x.Account.Email)&lt;span class="ErrorMessage"&gt;&lt;/span&gt;&lt;/p&gt;
        &lt;p&gt;&lt;label for="RepeatEmail"&gt;gjenta e-post&lt;/label&gt;  &lt;input type="text" name="RepeatEmail" id="RepeatEmail" /&gt;&lt;span class="ErrorMessage"&gt;&lt;/span&gt;&lt;/p&gt;
        &lt;p&gt;&lt;label class="CheckboxLabel" for="ShareEmail"&gt;del din e-post med andre brukere. &lt;/label&gt; @Html.EditorFor(x =&gt; x.Account.ShareEmail)&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="RegistrationGroup"&gt;
        &lt;p&gt;&lt;label for="Account_FirstName"&gt;fornavn&lt;/label&gt;  @Html.EditorFor(x =&gt; x.Account.FirstName)&lt;span class="ErrorMessage"&gt;&lt;/span&gt;&lt;/p&gt;
        &lt;p&gt;&lt;label for="Account_LastName"&gt;etternavn&lt;/label&gt;  @Html.EditorFor(x =&gt; x.Account.LastName)&lt;span class="ErrorMessage"&gt;&lt;/span&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="RegistrationGroup"&gt;
        &lt;p&gt;&lt;label for="Password"&gt;ønsket passord&lt;/label&gt;  @Html.EditorFor(x =&gt; x.Password)&lt;span class="ErrorMessage"&gt;&lt;/span&gt;&lt;/p&gt;
        &lt;p&gt;&lt;label for="ConfirmPassword"&gt;gjenta passord&lt;/label&gt;  &lt;input type="password" name="ConfirmPassword" id="ConfirmPassword" /&gt;&lt;span class="ErrorMessage"&gt;&lt;/span&gt;&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="RegistrationGroup"&gt;
        &lt;input class="NextAlone" name="nextButton" type="image" src="../../Images/button_next.png" alt="Neste" /&gt;
      &lt;/div&gt;
    }
  &lt;/div&gt;
  </code></pre>
  
  <p>...</p>