Could not load type 'test'.

  • Thread starter Thread starter Nigel Findlater
  • Start date Start date
N

Nigel Findlater

I have been using Visual Studio 2003 to generate aspx and
aspx.vb file. On my development platform they all work
fine, but when I load them on the server I get the
message:

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

Source Error:
Line 1: <%@ Page Language="vb" AutoEventWireup="false"
Codebehind="test.aspx.vb" Inherits="test"%>

The source files where very simple, Does anyone know what
went wrong?

Nigel...

Test.aspx:
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="test.aspx.vb" Inherits="test"%>
<HTML>
<HEAD>
</HEAD>
<body>
</body>
</HTML>

Test.aspx.vb
Public Class Test
Inherits System.Web.UI.Page

End Class
 
You need to copy the BIN folder as well on the server. In it you'll see the
dll that holds the compiled version of what you've wrote.
Have you done that?

Branimir Giurov
MCSD.NET, MCDBA
eAgility LLC
 
Back
Top