Xml Deserilization
<p>I have a  control on aspx form. I select a xml file and deserialize it on localhost. It works fine. But I upload project files to my IIS server, select file and click deserialize button from client side, it gives me an error as below.</p>

<p>There is an error in XML document (0, 0). Root element is missing.</p>

<p>Code Details.</p>

<p>In aspx file </p>

<pre><code>&lt;input type="file" id="fD" runat="server"/&gt; 
&lt;asp:Button ID="btnXMLLoad" runat="server" Text="Load XML" onclick="btnXMLLoad_Click" /&gt;
</code></pre>

<p>In .cs file btnXMLLoad_Click event </p>

<pre><code>XmlSerializer serializer = new XmlSerializer(typeof(transfer)); 
FileStream fs = new FileStream(_fileName, FileMode.OpenOrCreate); 
TextReader reader = new StreamReader(fs); 
transfer input = new transfer(); 
input = (transfer)serializer.Deserialize(reader); 
</code></pre>

<p>It works local machine but users can not load XML file on the internet.</p>

<p>Please advise me..</p>
