Could not load type 'Test1.Pages.default.aspx.cs' RRS feed

  • Question

  • User-1223265732 posted

    Hi All,

    I have a project that is written asp.net and C#. When I am building (Compiling) that code my getting the follwoing error:

    "Could not load type 'Test1.Pages.default.aspx.cs'.

     But the class is present in the default.aspx.cs.

     and following namespace is used at the beginning of default.aspx.cs

    namespace Test1.Pages


    using System;

    using System.Web;

    using System.Collections;

    using System.Globalization;

    using System.IO;

    using System.Web.UI.WebControls;

    using System.Web.UI.HtmlControls;


    /// Supporting class for default.aspx. Handles population of server session variables,

    /// and exporting the contract list.


    public class Default : PageManager {

    AND THEN THE CODE.......



    Could any one please help and let me know the solution.

    Thanks in advance.

    Saturday, January 27, 2007 12:19 PM

All replies

  • User-1601743557 posted


    I dont think it is possible because in "Test1.Pages"  the portion after "Test1" becomes the extension.

    Saturday, January 27, 2007 1:22 PM
  • User-1069184416 posted

    Make sure the PageManager build correctly first!

    Also, try to remove all temporary files from the following place:

    {Drive Letter}:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files


    Hope this helps!


    Saturday, January 27, 2007 2:20 PM
  • User445179017 posted

    Seems like you have changed the CodeFile attribute rather the Inherits attribute in the html part of the .aspx page. The html part of your Default.aspx should look this way

    <% Page Language......  CodeFile="Default.aspx.cs" Inherits="Test1.Pages.Default" ..... %>


    Sunday, January 28, 2007 12:49 AM