title: asp deploying a website on a server
body: <p>I am using visual web developer express and when I build the website on localhost, everything is fine. But when I try to deploy it on a server O get many errors like:</p>
  
  <pre><code>line 18:
  
  Parser Error Message: It is an error to use a section registered as
  allowDefinition='MachineToApplication' beyond application level.
  This error can be caused by a virtual directory not being configured
  as an application in IIS.
  
  Source Error: 
  
  Line 16: &lt;customErrors mode="Off"/&gt;
  Line 17: 
  Line 18:       &lt;profile enabled="true"&gt;
  Line 19:        &lt;!--&lt;anonymousIdentification enabled="true"/--&gt; 
  Line 20:         &lt;properties&gt;
  </code></pre>
  
  <p>When I take this part off I get an error on line 3:</p>
  
  <pre><code>Parser Error Message: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified.
  
  Source Error: 
  
      Line 1:  &lt;%@ Master Language="C#" AutoEventWireup="true"   CodeFile="MasterPage.master.cs"           Inherits="MasterPage" %&gt;
      Line 2:  
      Line 3:  &lt;%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %&gt;
      Line 4:  
      Line 5:  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0    Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
  
  Source File: /zimmer/MasterPage.master    Line: 3 
  
  Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.
  
  WRN: Assembly binding logging is turned OFF.
  To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
  Note: There is some performance penalty associated with assembly bind failure logging.
  To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
  </code></pre>
  
  <p>How can I fix this?</p>