Display Code Error
<p>When I try to view the source code by using asp.net, I got this error. </p>

<p>Access to the path 'C:\Users\user\Desktop\Website1' is denied.</p>

<p>Anyone idea how to fix this? </p>

<p>The display code is as follow. I do not know how to fix this.</p>

<pre><code> &lt;%@ Page Language="C#" runat="server" Debug="true" %&gt;
   &lt;%@ Import Namespace="System.IO" %&gt; 
  &lt;script language="C#" runat="server"&gt;
void Page_Load()
{
 string filePath = 
Server.MapPath(Request.QueryString["filename"]);
FileName.Text = Request.QueryString["filename"];
FileInfo file = new FileInfo(filePath);

if (file.Extension != ".mdb" 
 &amp;&amp; file.Extension != ".xml" 
 &amp;&amp; file.Extension != ".exe")
{
 Code.Text = ReadFile(filePath);
 }
   else
{
  Code.Text = "Sorry you can't read a file with an extension of " + file.Extension;
}
  }

     private string ReadFile(string filepath)
    {
         string fileOutput = "";
     try
     {
        StreamReader FileReader = new StreamReader(filepath);
       //The returned value is -1 if no more characters are 
           //currently available.
      while (FileReader.Peek() &gt; -1)
      {
        //ReadLine() Reads a line of characters from the 
          //current stream and returns the data as a string.
        fileOutput += FileReader.ReadLine().Replace("&lt;", "&amp;lt;").
       Replace("  ", "&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;") 
                    + "&lt;br /&gt;";
          }
             FileReader.Close();
         }
           catch (FileNotFoundException e)
          {
        fileOutput = e.Message;
         }
        return fileOutput;
      }
     &lt;/script&gt;

      &lt;html&gt;
       &lt;head&gt;
     &lt;title&gt;code&lt;/title&gt;
         &lt;link rel="stylesheet" href="style1.css" type="text/css"&gt;
       &lt;/head&gt;
        &lt;body&gt;
           &lt;h1 class="pageHeader"&gt;Source Code&lt;/h1&gt;
          &lt;asp:label id="FileName" 
               CssClass="codeheader" Runat="server"/&gt;
        &lt;asp:Panel id="pnlCode" CssClass="code" 
         runat="server" Width="80%"&gt;
          &lt;asp:label id="Code" Runat="server" /&gt;
     &lt;/asp:Panel&gt;
    &lt;/body&gt;
      &lt;/html&gt;
</code></pre>
