Could not load type "namespace.class" Parser Error

Discussion in 'ASP .Net' started by Kris, Dec 18, 2003.

  1. Kris

    Kris Guest

    Hey everyone,

    I am trying to make a multi-project web application in
    visual studio that uses the server.transfer method in C#
    to get to the different aspx pages.
    However, when I call out to the page it gives me the
    Could not load type "MainConsole.Default". The code was
    working before when i had it all in one project. I want
    to seperate the one big project and create little ones to
    communicate to each other, just like a desktop
    application. Which would give me an easier time when I
    do bug fixes/upgrades/etc... If you want more code
    please let me know, I don't think it is the problem as
    much as the programmer's lack of knowledge.


    Line 1: <%@ Page language="c#"
    Codebehind="Default.aspx.cs" AutoEventWireup="false"
    Inherits="MainConsole.Default" %>
    Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN" >
    Line 3: <HTML>

    Thanks so much in advance,
    -Kristopher
     
    Kris, Dec 18, 2003
    #1
    1. Advertising

  2. Kris

    Teemu Keiski Guest

    Are project references OK and have you compiled the whole solution ebfore
    running the Page?

    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist


    "Kris" <> wrote in message
    news:021401c3c5af$e6865da0$...
    > Hey everyone,
    >
    > I am trying to make a multi-project web application in
    > visual studio that uses the server.transfer method in C#
    > to get to the different aspx pages.
    > However, when I call out to the page it gives me the
    > Could not load type "MainConsole.Default". The code was
    > working before when i had it all in one project. I want
    > to seperate the one big project and create little ones to
    > communicate to each other, just like a desktop
    > application. Which would give me an easier time when I
    > do bug fixes/upgrades/etc... If you want more code
    > please let me know, I don't think it is the problem as
    > much as the programmer's lack of knowledge.
    >
    >
    > Line 1: <%@ Page language="c#"
    > Codebehind="Default.aspx.cs" AutoEventWireup="false"
    > Inherits="MainConsole.Default" %>
    > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    > Transitional//EN" >
    > Line 3: <HTML>
    >
    > Thanks so much in advance,
    > -Kristopher
    >
    >
     
    Teemu Keiski, Dec 19, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BW
    Replies:
    2
    Views:
    869
    Bernard Willingham
    Aug 14, 2003
  2. Bernard Willingham

    Re: Parser Error: Could not load type

    Bernard Willingham, Aug 14, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    516
    Bernard Willingham
    Aug 14, 2003
  3. Jacob Yang [MSFT]
    Replies:
    3
    Views:
    2,283
  4. Kevin
    Replies:
    1
    Views:
    441
    Rajesh.V
    Oct 16, 2003
  5. Jerry Tovar
    Replies:
    1
    Views:
    703
    Natty Gur
    Oct 21, 2003
Loading...

Share This Page