title: System.Runtime.InteropServices.COMException: Invalid file name in Crystal Report
body: <p>I am using <code>Visual Studio 2010</code> with <code>Crystal Report</code>. It is working fine in my local server but on web server, it is giving error :
  <code>System.Runtime.InteropServices.COMException: Invalid file name</code>.<br><br>
  I tried many solutions like put <code>.rpt</code> file in any folder and provide that path, give full permission to windows temp folder, enable parent path form IIS etc.<br><Br>
  But none of them is working. Please help me to solve this.
  <br><br>
  <strong>My current path :</strong></p>
  
  <pre><code>crystalReport.Load(Server.MapPath("~/PurchaseOrder1.rpt"));
  </code></pre>
  
  <p><br>
  <a href="https://i.stack.imgur.com/Beq6z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Beq6z.png" alt="Crystal Report error"></a></p>