Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • prasathP
    New Member
    • Sep 2007
    • 1

    #1

    Error

    hai,

    i am open a webform in asp.net and try to run it but the error will come "Could not load type" and the build is also failed so please give solution for this error



    prasath
  • davef
    New Member
    • Sep 2007
    • 98

    #2
    Originally posted by prasathP
    hai,

    i am open a webform in asp.net and try to run it but the error will come "Could not load type" and the build is also failed so please give solution for this error



    prasath
    Your form possibly doesn't inherit the right class defined in the code behind because it was renamed or moved into another directory or the namespace changed.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Originally posted by prasathP
      hai,

      i am open a webform in asp.net and try to run it but the error will come "Could not load type" and the build is also failed so please give solution for this error



      prasath

      Make sure that your page directive's CodeFile attribute points to the corresponding .NET code, and make sure that the Inherits attribute also points to the corresponding .NET code.

      Eg.
      A Page directive:
      [code=asp]
      <%@ Page Language="VB" AutoEventWireup ="false" CodeFile="Login .aspx.vb" Inherits="Login " %>
      [/code]
      Notice the CodeFile="Login .aspx.vb", this is the name of the file that contains the .NET code for the aspx page. Also notice the Inherits="Login ", this is the name of the Class that's contained in your .NET code.

      Comment

      Working...