P
phil
I recently tried converting my asp.net 1.1 app to 2.0 in visual studio
2005 beta 2.
I get several "type xxx is not defined" errors.
It seems that some of my code file within my web application can no
longer see the types defined in my asp.vb files.
Here is a simple example:
default2.aspx.vb
Partial Public Class Default2
Inherits System.Web.UI.Page
Public m_1 As Integer
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim testc As New Class1
testc.load(Me)
End Sub
End Class
class1.vb
Public Class Class1
Public Sub load(ByVal p As Default2)
' ???
End Sub
End Class
class1.vb is in the App_Code directory.
the error is reported for class1.vb is:
Type "Default2" is not defined
why can't class1 see the type defined in the aspx.vb file?
something obvious i am sure, but i remain confused.
2005 beta 2.
I get several "type xxx is not defined" errors.
It seems that some of my code file within my web application can no
longer see the types defined in my asp.vb files.
Here is a simple example:
default2.aspx.vb
Partial Public Class Default2
Inherits System.Web.UI.Page
Public m_1 As Integer
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim testc As New Class1
testc.load(Me)
End Sub
End Class
class1.vb
Public Class Class1
Public Sub load(ByVal p As Default2)
' ???
End Sub
End Class
class1.vb is in the App_Code directory.
the error is reported for class1.vb is:
Type "Default2" is not defined
why can't class1 see the type defined in the aspx.vb file?
something obvious i am sure, but i remain confused.