title: Structure Saved in a Session Variable
body: <p>The ReportInfo is a structure.  The structure works fine on one web page but I am trying to use it on another web-page.  Here is where I saved the ReportInfo structure to the Session Variable</p>
  
  <p>Session["ReportInfo"] = reportInfo;</p>
  
  <p>On the other web-page, I re-created the Structure and then assign the session variable to it, like this...</p>
  
  <p>reportInfo = (ReportInfo)(Session["ReportInfo"]);</p>
  
  <p>I get the following run-time error:</p>
  
  <p>System.InvalidCastException was unhandled by user code
    Message="Specified cast is not valid."
    Source="App_Web_-s8b_dtf"</p>
  
  <p>How do I get the ReportInfo structure out of the Session variable to use again?</p>