I am sure hoping someone can help me out here as I have been banging my head on this one for a bit.
Recently I started working on building a module using the 4.9.1 starter kit templates for a Complied C# module. For the UI I am designing my views to use Silverlight 2. I have taken the DAL from the starter kit template and encapsulated that code into a WCF Service module so the Silverlight applications and the compiled module can interact with the data through the same DAL object. The problem I am having is that whenever it executes the static CreateObject call in the Dataprovider.cs file it's failing.
private static void CreateProvider()
{
try
{
objProvider = (DataProvider)DotNetNuke.Framework.Reflection.CreateObject("data", "ESoft.Modules.JBApplication", "WcfJukeAppDataServices");
}
catch (Exception e)
{
string errMsg;
errMsg = "Create Provider Failed\n" + e.Message + "\n" + e.InnerException;
EventLog.WriteEntry(sSource, errMsg, EventLogEntryType.Error);
}
}
The Error that I see in the Eventlog is:
Create Provider Failed
Value cannot be null.
Parameter name: type
I have tried various versions of the overload call to CreateObject, specifying (typename, namespace) or (typename, namespace, assemblyname) with similar results. Anyone have any ideas I can try?