Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error GetType not definedError GetType not defined
Previous
 
Next
New Post
4/21/2009 11:19 AM
 

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?

 
New Post
4/21/2009 12:50 PM
 

I knew as soon as I posted I would figure it out. Time for more coffee. Never change your naming convention mid-coding.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Error GetType not definedError GetType not defined


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out