the namespaces don't make any difference...
here's my code:


Class1.vb located within WebApplication1

Public Class Class1

Public MyMember As String

Sub New()
MyMember = "constructor worked"
End Sub

End Class



WebForm2.aspx.vb located within WebApplication1

Imports WebApplication1.Class1

Public Class WebForm2
Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here

Dim ThisWontWork As Class1

ThisWontWork = New Class1()

End Sub

End Class


the exact error msg is:
Compiler Error Message: BC30466: Namespace or type 'Class1' for the Imports 'WebApplication1.Class1' cannot be found.

Line 2: Imports WebApplication1.Class1


can anyone else get this simple example to work?? Just a simple class within a web application, where an aspx.vb file can import and dim an instance of that class. completely stumped.

-Kenton