I'm writing my first custom DNN module and I have one last error that I haven't been able to figure out. I know that it is probably something simple that I just can't see because I've been looking at this for to long.
The error is in my controller.vb "Compiler Error Message: BC30002: Type 'atActivityInfo' is not defined."
Line 11: ByVal ActivityName As String, ByVal IsCurrent As Integer) As atActivityInfo
----File Text ----
Imports
Imports
DotNetNuke.Services.Search
Imports
System
Imports
System.Configuration
Imports
System.Data
Imports
System.Xml
Namespace
#
DotNetNuke.Modules.atActivityPublic Class atActivityControllerRegion "Public Methods"
ActivityName, IsCurrent),
Public Function at_GetActivity(ByVal ActivityId As String, _ByVal ActivityName As String, ByVal IsCurrent As Integer) As atActivityInfoReturn CType(CBO.FillObject(DataProvider.Instance().at_GetActivity(ActivityId, _GetType(at_ActivityInfo)), at_ActivityInfo)End Function
#
End Region
End
End Class Namespace
-----
I've created the atActivityInfo Class in my Info.vb
Imports
Microsoft.VisualBasic
Imports
System
Imports
System.Configuration
Imports
System.Data
Namespace
#
DotNetNuke.Modules.atActivityPublic Class atActivityInfoRegion "Private Members"
Private _ActivityId As String
Private _ActivityName As String
Private _IsCurrent As Integer
#
End Region
#
Region "Contstructors"
Public Sub New()End Sub
#
End Region
#
Region "Properties"
Public Property ActivityId() As String
Get
Return _ActivityIdEnd Get
_ActivityId = value
Set(ByVal value As String)End Set
End Property
Public Property ActivityName() As String
Get
Return _ActivityNameEnd Get
_ActivityName = value
Set(ByVal value As String)End Set
End Property
Public Property IsCurrent() As Integer
Get
Return _IsCurrentEnd Get
_IsCurrent = value
Set(ByVal value As Integer)End Set
End Property
#
End Region
End
End Class Namespace
-----
I'm missing something really simple, right?