Page view counter

Could not load type '_Default'.

Last post 09-04-2007 4:53 PM by dtabraha. 2 replies.

Sort Posts:

  • Could not load type '_Default'.

    09-03-2007, 5:33 AM
    • Loading...
    • aspforme
    • Joined on 08-30-2007, 12:53 PM
    • Posts 1
    • Points 0

     Hi

    I have uploaded my asp.net 2.0 application to the webserver using ftp. iam getting the following error. it displays in the last line Asp.net version as 1.1.4322.2407, I found the version of asp.net in the properties of the appliction in the IIS as 2.0.50727. what do i need to do to overcome this problem.

    I have uploaded the whole application folder to the hosting server. iam getting this error when iam trying to access the page.

    What all folders and files of the application i need to upload.

    Please if anybody can answer.

    Thanks

    Parser Error Message: Could not load type '_Default'.

    Source Error:

    Line 1:  <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
    Line 2:  
    Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


    Source File: E:\USERS\sadadint\www\sampleapp\default.aspx    Line: 1


    Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407

    Filed under: ,
  • Re: Could not load type '_Default'.

    09-03-2007, 6:18 AM
    Answer
    • Loading...
    • ziqbalbh
    • Joined on 02-26-2007, 12:58 PM
    • Lahore, Pakistan
    • Posts 350
    • Points 2,210

    Hi,

    Your application seems to be running on  Microsoft .NET Framework Version:1.1.4322.2407, and you have built it in 2.0. Try configuring it with 2.0

    Zafar Iqbal
    VP Technology
    Hansvits


    ** Please mark as ANSWER if my reply helped you
  • Re: Could not load type '_Default'.

    09-04-2007, 4:53 PM
    Answer
    • Loading...
    • dtabraha
    • Joined on 01-26-2006, 1:19 PM
    • Posts 7
    • Points 24

    Wow, what a helpful response. Stick out tongue

    aspforme, you may be able to configure the .Net Framework version in the IIS manager in MMC, but sometimes the option doesn't display.

    You may have to run the command line util to update the Framework version.

    http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

Page 1 of 1 (3 items)