B
booner
I have a business component I've built in its .vb file. Compiled the .vb
file and copied the outputted dll to the bin directory of my virtual
directory. Now in my aspx page when I attempt to utilize the business
component, I get this:
Compiler Error Message: BC30002: Type 'MyClass' is not defined
Here is the .vb file:
Imports System
Namespace myComponents
Public Class MyClass
Public Sub New()
End Sub
Public Function Authenticate(username As String, password As String) As
Boolean
return True
End Function
End Class
End Namespace
to compile the .vb file I did the following:
vbc /t:library myClass.vb
In my .aspx file:
<%@ Import Namespace="myComponents" %>
Then in some of my logic I go to use the class:
Dim misc As New MyClass
I'm using 2.0 Framework - clearly I'm a newbie (an ASP convert).
Any help you can provide would be much appreciated.
BBB
file and copied the outputted dll to the bin directory of my virtual
directory. Now in my aspx page when I attempt to utilize the business
component, I get this:
Compiler Error Message: BC30002: Type 'MyClass' is not defined
Here is the .vb file:
Imports System
Namespace myComponents
Public Class MyClass
Public Sub New()
End Sub
Public Function Authenticate(username As String, password As String) As
Boolean
return True
End Function
End Class
End Namespace
to compile the .vb file I did the following:
vbc /t:library myClass.vb
In my .aspx file:
<%@ Import Namespace="myComponents" %>
Then in some of my logic I go to use the class:
Dim misc As New MyClass
I'm using 2.0 Framework - clearly I'm a newbie (an ASP convert).
Any help you can provide would be much appreciated.
BBB