title: Error hosting asp.net application Can't load type
body: <p>i have created a simple asp.net application which runs fine locally. </p>
  
  <p>I have uploaded the application to my website and ran through as error saying </p>
  
  <blockquote>
    <p>" 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
    appliction."</p>
  </blockquote>
  
  <p>this error was due to the fact that the subfolder i uploaded my application to is not configured as an application in the webserver (IIS ? maybe) and therefore i can't have multiple config files.</p>
  
  <p>i solved this issue by moving some entries from the subfolder config file to the root config file. </p>
  
  <p>HOWEVER, THIS HAS INTRODUCED ANOTHER ERROR. </p>
  
  <blockquote>
    <h2>Server Error in '/' Application.</h2>
    
    <p>Parser Error  Description: An error occurred during the parsing of a
    resource required to service this request. Please review the following
    specific parse error details and modify your source file
    appropriately. </p>
    
    <p>Parser Error Message: Could not load type 'CvForm._Default'.</p>
    
    <p>Source Error: </p>
    
    <p>Line 1:  &lt;%@ Page Title="Home Page" Language="C#"
    MasterPageFile="~/Site.master" AutoEventWireup="true" Line 2:<br>
    CodeBehind="Default.aspx.cs" Inherits="CvForm._Default" %> Line 3:    </p>
    
    <p>Source File: /CvForm/Default.aspx    Line: 1 </p>
    
    <p>-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3625;
    ASP.NET Version:2.0.50727.3634</p>
  </blockquote>
  
  <p>I have been trying for the last 4-5 hrs to solve this issue with no luck.</p>
  
  <p>I will appreciate someone pointing me to a way to solve this issue. 
  ( im sure im doing something the wrong way.. I'm new to asp.net world! ). </p>
  
  <p>Kindest Regards,
  Aamran</p>