Smcculloch, Thanks for all of your help, I've determined what the problem is and everything is working fine now.
Basically, everything above is correct except for one thing. The namespace for the sqlDataProvider class is:
Namespace sandbox.DNN.Modules.pictureAlbum.SQLDataProvider.Data
When it should be in the same namespace as the abstract dataProvider class in the module project which is:
Namespace sandbox.DNN.Modules.pictureAlbum.Data.
So, for anyone else reading this post in the future, if you are having similar problems check the following:
1) Make sure that both the sqlDataProvider class and the DataProvider class are in the same namespace. 2) Verify those namespaces using the object browser in visual studio 3) Verify that the solution outputs the dlls for both the module and data provider projects to the dotNetNuke bin directory 4) the CreateObject call in the dataProvider class should be as follows:
CreateObject("data", "<NAMESPACE OF DATAPROVIDERS>", "<NAME OF MODULE DLL>" , DataProvider)
Where the following explainations apply:
<NAMESPACE OF DATAPROVIDERS> = The namespace of the dataprovider class in the module project and the namespace of the sqldataprovider class in the dataProvider project (they should be in the same namespace).
<NAME OF MODULE DLL> = This is the name of the module dll that should be compiled into the dotNetNuke bin directory when the project is built (minus the ".dll" extension).
I hope that this helps any readers in the future avoid any of the heartache I've been through trying to figure this out.
I've set this post to email me if any replies are posted, please feel free to contact me if you are experiencing similar problems and the latter steps do not resolve the issue.
|