title: The given path's format is not supported
body: <p>I am trying to downlaod an excel sheet and I am dynamically generating its filename which has to be in the following format:</p>
  
  <p>eg:</p>
  
  <pre><code>User_Wise_List_Of_Documents_2013_On_16_04_2013
  </code></pre>
  
  <p>For this I wrote the following code:</p>
  
  <blockquote>
    <p>string currentDate = DateTime.Now.Date.ToString();</p>
    
    <p>string currentYear=DateTime.Now.Year.ToString();</p>
    
    <p>filename = Server.MapPath("~/User/Documents/") +
    "User_Wise_List_Of_Documents_" + currentYear  + "<em>on</em>" + currentDate +
    ".xls";</p>
  </blockquote>
  
  <p>Somehow, its giving me the following exception:</p>
  
  <blockquote>
    <p><code>The given path's format is not supported.</code></p>
  </blockquote>
  
  <p>Any help will be appreciated.</p>