I'm trying to follow your example and I feel i'm close but still have a few problems that I hope you can look at and see what I'm doing wrong. (I'm using Visual Web Developer 2005 Express and DNN 4 and trying to convert the original Events Module 3.2) also I'm a newbie and not very experienced in DNN or Visual Basic
You Said to:
to put into my App_Code subfolder five files: SqlDataProvider.vb, DataProvider.vb, EventInfo.vb, EventController.vb and EventBase.vb. I did that and got errors like EventInfo' is ambiquous in the namespace DotNetNuke.Modules.Events
When I changed "CodeBehind" to "CodeFile" I got ërros like 'EventMonth' is ambiquous in the namespace DotNetNuke.Modules.Events.
I think to fix this I have to delete the 2 dll files in the Bin Folder DotNetNuke.Modules.Events and DotNetNuke.Modules.SqlDataProvider. When I do this I end up with a few more problems like...
'DotNetNuke.Modules.Events.EventSignupsController' is not accessible in this context because it is 'Private' so I changed all these classes to Public and that seemed to fix that problem.
I don't have any plans of changing the custom web controls so I didn't do anything with web controls. (Left it as the install created it.) I commented out all the duplicate reference errors like you said with no problem.
Then I bult the Web Site and got O errors WOW! but when I went to view a page that has the event module on it I get this error
|
A critical error has occurred. The type initializer for 'DotNetNuke.Modules.Events.Data.DataProvider' threw an exception. |
It points to a function in EventController and says that ModuleID is Null
Public Function EventsMasterAssignedModules(ByVal ModuleID As Integer) As ArrayList
Return CBO.FillCollection(DataProvider.Instance().EventsMasterAssignedModules(ModuleID), GetType(EventMasterInfo))
End Function
Any help would be greatly appreciated or maybe someone knows where I could just get the DNN 4, Visual Web Developer 2005 Express friendly version of the Event 3.2 source already converted.
Thanks in advance Shirley