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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Error creating ProviderError creating Provider
Previous
 
Next
New Post
2/3/2009 1:29 AM
 

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?

               

 

 

 
New Post
2/5/2009 3:52 PM
 

 

Well I still haven't been able to determine what was wrong with the CreateObject call I quoted above.. However, I have just rewritten the DAL using an ASP WebService using LINQ to SQL so this is now a non-issue for me.  Wanted to let people know so they do not waste any time trying to help on this question.

Thanks all.

 

-Sedwards

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Error creating ProviderError creating Provider


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