Could not load type 'Admin._default'

Last post 06-18-2009 7:55 AM by satish123mattaparti. 2 replies.

Sort Posts:

  • Could not load type 'Admin._default'

    05-25-2009, 5:49 AM
    • Member
      7 point Member
    • ariela
    • Member since 06-27-2008, 6:03 PM
    • Posts 58

    I opened a website wich was dotnet v.1.1 and Visual Studio converted it automatically to version 2.

    Now when I try to open the site in Visual Studio it tells me Could not load type 'Admin._default' in page Admin/default.aspx.

    The top line of admin/default.aspx is :

    <%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="Admin._default" %>

    I looked everywhere, and most of the answers were about changing something in IIS . This does not solve the problem of running the site from whithin Visual Studio.

    What could be done to solve it?

  • Re: Could not load type 'Admin._default'

    05-25-2009, 8:57 AM
    • Contributor
      2,325 point Contributor
    • Hubble
    • Member since 06-06-2003, 6:59 AM
    • Madrid (Spain)
    • Posts 335

    Have you checked that you have a file called "default.aspx.cs" in the same folder as your "default.aspx" and that it has a namespace called "Admin" and a class called "_default" (all case sensitive)?

    Hope this helps



    If this post is useful to you, please mark it as answer.
  • Re: Could not load type 'Admin._default'

    06-18-2009, 7:55 AM

    one of the  client  given to me   one website with functionality and old  design,he want  to integrate the website with new design, i done new design integration to all pages in the site,But actually in his site some pages are missing when i create new pages for his site it shows error only in remote not in my local system,this error comes only for newly created pages not for old pages ,Please help me very urgent,  that error is

    Parser Error body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }

     

    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.

    Parser Error Message: Could not load type 'Dupont.wholesale1'.

    Source Error:

    Line 1:  <%@ Page Language="vb" AutoEventWireup="false" Codebehind="whole1.aspx.vb" Inherits="test.whole1"%>
    Line 2:  <%@ Register TagPrefix="uc1" TagName="Header" src="Header.ascx" %>
    Line 3:  <%@ Register TagPrefix="uc1" TagName="LeftSidePanel" src="LeftSidePanel.ascx" %>

    Source File: /version/pages/wholesale1.aspx    Line: 1


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

     

     

     

    Here test is myproject dll

Page 1 of 1 (3 items)