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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Compilation error - Please HelpCompilation error - Please Help
Previous
 
Next
New Post
10/1/2008 10:13 AM
 

I have the following code in my DNN aplication wich used to be compiled without problems:

-----------------------------------------------------------------------------------------------------------------------------------------------------------

 

System System.Data

Imports

WorkMachine.DNN.Modules.Simulacao.Data

Namespace

 

 

 

#

WorkMachine.DNN.Modules.Simulacao.BusinessPublic Class SimulacaoControllerImplements Entities.Modules.ISearchableImplements Entities.Modules.IPortableRegion "Pulic Methods"

 

'---------------------------------------------------------------------

 

' TODO Implement BLL methods

 

' You can use CodeSmith templates to generate this code

 

'---------------------------------------------------------------------

 

 

 

Public Function List() As ArrayListReturn CBO.FillCollection(DataProvider.Instance().ListSimulacao(), GetType(SimulacaoInfo))End Function

 

 

 

Public Function GetByModules(ByVal ModuleId As Integer) As ArrayListReturn CBO.FillCollection(DataProvider.Instance().GetSimulacaoByModules(ModuleId), GetType(SimulacaoInfo))End Function

 

 

 

 

Public Function [Get](ByVal ItemID As Integer, ByVal ModuleId As Integer) As SimulacaoInfoReturn CType(CBO.FillObject(DataProvider.Instance().GetSimulacao(ItemId, ModuleId), GetType(SimulacaoInfo)), SimulacaoInfo)End Function

 

Public Function Add(ByVal objSimulacao As SimulacaoInfo) as integer

 

 

Return CType(DataProvider.Instance().AddSimulacao(objSimulacao.ModuleId, objSimulacao.Field1),Integer)End Function

 

 

DataProvider.Instance().UpdateSimulacao(objSimulacao.ItemId, objSimulacao.Field1)

 

Public Sub Update(ByVal objSimulacao As SimulacaoInfo)End Sub

 

DataProvider.Instance().DeleteSimulacao(ItemId)

 

Public Sub Delete(ByVal ItemID As Integer)End Sub

#

End Region

#

Region "Optional Interfaces"

 

 

Public Function GetSearchItems(ByVal ModInfo As Entities.Modules.ModuleInfo) As Services.Search.SearchItemInfoCollection Implements Entities.Modules.ISearchable.GetSearchItemsEnd Function

 

 

Public Function ExportModule(ByVal ModuleID As Integer) As String Implements Entities.Modules.IPortable.ExportModuleEnd Function

 

 

Public Sub ImportModule(ByVal ModuleID As Integer, ByVal Content As String, ByVal Version As String, ByVal UserId As Integer) Implements Entities.Modules.IPortable.ImportModuleEnd Sub

#

End Region

 

End

End Class Namespace

 -----------------------------------------------------------------------------------------------------------------------------------------------------------

But suddenly, it started giving this error message:

'AddSimulacao' is not a member of 'WorkMachine.DNN.Modules.Simulacao.Data.DataProvider'

'DeleteSimulacao' is not a member of 'WorkMachine.DNN.Modules.Simulacao.Data.DataProvider'

'GetSimulacao' is not a member of 'WorkMachine.DNN.Modules.Simulacao.Data.DataProvider'

'GetSimulacaoByModules' is not a member of 'WorkMachine.DNN.Modules.Simulacao.Data.DataProvider'

'ListSimulacao' is not a member of 'WorkMachine.DNN.Modules.Simulacao.Data.DataProvider'

'UpdateSimulacao' is not a member of 'WorkMachine.DNN.Modules.Simulacao.Data.DataProvider'

Any ideas of what is missing ?

 

Tnaks a lot.

 

 

Imports

Imports

 
New Post
10/2/2008 3:57 PM
 

Roberto,

THe most likely cause of this error is having an incorrect namespace or class name specified in your code behind. have you double checked your namespaces so that they are all consistent?

Take care,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Compilation error - Please HelpCompilation error - Please Help


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