Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  DotNetNuke.Framework.Reflection.CreateObject( ????
Previous Previous
 
Next Next
New Post 1/19/2006 2:27 AM
User is offline nie seid
4 posts
10th Ranked


DotNetNuke.Framework.Reflection.CreateObject( ???? 

Based on DNN 1.1 I try build a module which communicates with a database to fill grids and read forms. A few forms running very well but since I tried to add a Textbox String into a database table I got the following exception:

DotNetNuke.Services.Exceptions.ModuleLoadException: Der Typeninitialisierer für MIS.DNN.Modules.ErrorMessageManagement.Data.DataProvider hat eine Ausnahme verursacht. ---> System.TypeInitializationException: Der Typeninitialisierer für MIS.DNN.Modules.ErrorMessageManagement.Data.DataProvider hat eine Ausnahme verursacht. ---> System.ArgumentNullException: Wert darf nicht Null sein. Parametername: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) at MIS.DNN.Modules.ErrorMessageManagement.Data.DataProvider.CreateProvider() at MIS.DNN.Modules.ErrorMessageManagement.Data.DataProvider..cctor() --- Ende der internen Ausnahmestapelüberwachung --- at MIS.DNN.Modules.ErrorMessageManagement.Data.DataProvider.Instance() at MIS.DNN.Modules.ErrorMessageManagement.Business.ErrorMessageManagementController.GetByModules(Int32 ModuleId, String SortField) at MIS.DNN.Modules.ErrorMessageManagement.ErrorMessageOverview.BindData(String SortField) at MIS.DNN.Modules.ErrorMessageManagement.ErrorMessageOverview.Page_Load(Object sender, EventArgs e) --- Ende der internen Ausnahmestapelüberwachung ---

As fare as I know the namespaces correctly defined inside the dataprovider:                                                 Private Shared Sub CreateProvider()
objProvider = CType(Framework.Reflection.CreateObject("data", "MIS.DNN.Modules.ErrorMessageManagement.Data", "MIS.DNN.Modules.ErrorMessageManagement"), DataProvider)
End Sub

I realy don't know whats the reason for the execption. Has anyone of you any ideas?


 
New Post 1/27/2006 10:02 AM
User is offline Charles Nurse
2901 posts
5th Ranked










Re: DotNetNuke.Framework.Reflection.CreateObject( ???? 
Is the AssemblyName correct AND located in the \bin. 

If correct and located in \bin, then are they the same version as the Module.  ie rebuild the SqlDataprovider and make sure the updated assemblies for both the module and the provider are in the \bin folder.

Charles Nurse
DotNetNuke Trustee,
Senior Architect, DotNetNuke Coporation
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
See my Blog for Articles on .NET, DNN and Module Development

View my Blog
 
New Post 2/2/2006 7:30 AM
User is offline nie seid
4 posts
10th Ranked


Re: DotNetNuke.Framework.Reflection.CreateObject( ???? 

Sorry about my late reply. I started work at an other module but run quickly in the same problem by installing  as well as including a module.

After every rebuild both assemblys were correct located in the DotNetNuke\bin folder. The isssue about the assambly version number makes me woundering but maybe I missunderstand you. Arn't the assembly-numbers of eache project stored in the assemblyInfo.vb? Although I don't know anything about that numbers I made them equal - with no positiv result.

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  DotNetNuke.Framework.Reflection.CreateObject( ????
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net
$7.16/mo - Powerful DotNetNuke / DNN Hosting
Powerful DotNetNuke / DNN Hosting on Windows 2008 and 2003 servers, starting at under $8/mo with FREE SQL 2008 on certain plans and FREE SQL 2005 on all plans with FREE Installation and expert support.
www.re-invent.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP