hi,
im currently trying to get some unit tests for a custom DNN module to run. The problem i am running into is when i try to fetch an instance of the DAL+ DataProvider-
[code]
DataProvider d = DotNetNuke.Data.DataProvider.Instance();
[/code]
When this code is executed, the following error occurs:
System.TypeInitializationException: The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache)
at DotNetNuke.Data.DataProvider.CreateProvider()
at DotNetNuke.Data.DataProvider..cctor()
--- End of inner exception stack trace ---
ive been scouring every post on DNN module testing and ive turned up nothing (except something about DNN reflection and making sure all references are present and correct, which they seem to be), if anyone could help me out i would be very grateful.