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...Building ExtensionsBuilding ExtensionsModulesModulesCustom Module to OracleCustom Module to Oracle
Previous
 
Next
New Post
9/6/2011 12:04 AM
 
Hi, I need help with some errors I am encountering after converting from MSSQL to Oracle.

I have already added the OracleSqlHelper object in SqlDataProvider.cs. And return all the data as usual. But my gridview is just unable to retrieve and display the data but instead. It is displaying me some error.

Error: Email Templates Admin is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for 'Websparks.Modules.EmailTemplates.DataProvider' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Websparks.Modules.EmailTemplates.DataProvider' threw an exception. ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) at Websparks.Modules.EmailTemplates.DataProvider.CreateProvider() at Websparks.Modules.EmailTemplates.DataProvider..cctor() --- End of inner exception stack trace --- at Websparks.Modules.EmailTemplates.DataProvider.Instance() at Websparks.Modules.EmailTemplates.EmailTemplatesController.GetEmailTemplates() at Websparks.Modules.EmailTemplates.ViewEmailTemplates.RetrieveGrid() at Websparks.Modules.EmailTemplates.ViewEmailTemplates.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---


ViewEventTemplates.ascx.cs

private void RetrieveGrid()
        {
            EmailTemplatesController controller = new EmailTemplatesController();


            EmailTemplatesGrid.DataSource = controller.GetEmailTemplates();
            EmailTemplatesGrid.DataBind();


            if (EmailTemplatesGrid.Items.Count == 0)
            {
                litEmailTemplates.Visible = true;
                EmailTemplatesGrid.Visible = false;
            }
        }


EmailTemplatesController.cs

public List<EmailTemplatesInfo> GetEmailTemplates()
        {
            return CBO.FillCollection<EmailTemplatesInfo>(DataProvider.Instance().GetEmailTemplates());
        }


SqlDataProvider.cs

public override IDataReader GetEmailTemplates()
        {
            OracleSqlHelper OracleSqlHelper = new OracleSqlHelper();
            return (IDataReader)OracleSqlHelper.ExecuteReader(ConnectionString, ObjectQualifier + "GetEmailTemplates");
        }


It will be great if someone who has successfully developed custom modules using AcuitiDP to help out. Thanks a lot.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustom Module to OracleCustom Module to Oracle


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