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  |  

Affordable ASP.NET Hosting Service
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Biz Modules provides professional business modules and solutions for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at ...CreateInstance
Previous Previous
 
Next Next
New Post 4/4/2006 2:40 PM
User is offline Ray G
25 posts
10th Ranked


ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at ...CreateInstance 
I have searched a lot and almost every person who has reported this error found it while installing the Gallery module and the solution was to remove a section of the .dnn file. However, this is not my case, so, unfortunately, these threads I found have been of little or no help.

Please bear with me and offer help if you can.

I am trying to create my own module in DNN 3.2.2 using the dnnJungle VS project templates. I open the DotNetNuke solution I downloaded from this site that has a total of 35 projects. Compile. Everything OK.

I then add a new project to the solution using the VB DNN Module template (I will eventually do this using C#, but I am using VB to avoid any compatibility problems while I figure this error out) and making sure I am saving it in a new folder under ...\DesktopModules. The template adds a bunch of folders and files to my project. However, I leave it untouched and simply add my new project to the BuildSupport project's references. Compile. Everything OK again.

I go to DNN, log on as host, go to Host|Module Definitions|Add New Module Definition and set the values as follows:

Module Name: CSPM01
Folder Name: CSPM01 (that's the name of the folder created under DesktopModules which contains my project)
Friendly Name: CSPM01
Description: {blank}
Version: {blank}
Controller Class: {blank}
Premium: {unchecked}

And hit "Update".

I then type "CSPM01" in the "New Definition" text box and hit "Add Definition". Then "Add Control" and set the following properties for my control:

Module: CSPM01
Definition: CSPM01
Key: {blank}
Title: {blank}
Source: DesktopModules/CSPM01/CSPM01.ascx
Type: View
View Order: {blank}
Icon: {Not Specified}
Help URL: {blank}

And hit "Update".

I then go to one of my pages and add my new module to the content pane and get the following error inside of the module frame:

Error: CSPM01 is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for "COMPANY.DNN.Modules.CSPM01.Data.DataProvider" threw an exception. ---} System.TypeInitializationException: The type initializer for "COMPANY.DNN.Modules.CSPM01.Data.DataProvider" threw an exception. ---} System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) in C:\Inetpub\wwwroot\DotNetNuke\components\Shared\Reflection.vb:line 99 at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName) in C:\Inetpub\wwwroot\DotNetNuke\components\Shared\Reflection.vb:line 71 at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) in C:\Inetpub\wwwroot\DotNetNuke\components\Shared\Reflection.vb:line 45 at COMPANY.DNN.Modules.CSPM01.Data.DataProvider.CreateProvider() in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\Components\DataProvider.vb:line 22 at COMPANY.DNN.Modules.CSPM01.Data.DataProvider..cctor() in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\Components\DataProvider.vb:line 16 --- End of inner exception stack trace --- at COMPANY.DNN.Modules.CSPM01.Data.DataProvider.Instance() at COMPANY.DNN.Modules.CSPM01.Business.CSPM01Controller.GetByModules(Int32 ModuleId) in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\Components\CSPM01Controller.vb:line 21 at COMPANY.DNN.Modules.CSPM01.CSPM01.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\CSPM01.ascx.vb:line 26 --- End of inner exception stack trace ---


Please help.

Thank you in advance.
 
New Post 4/6/2006 6:31 AM
User is offline Ray G
25 posts
10th Ranked


Re: ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at ...CreateInst 
Guys please?
 
New Post 4/6/2006 11:45 AM
User is offline ech01
611 posts
7th Ranked




Re: ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at ...CreateInst 
I need help with this too. These forums are not as helpful as the asp.net forums.
www.blackhawksurfaces.com | www.nlsales.com | www.midwestfilmandvideo.com
 
New Post 4/6/2006 12:25 PM
User is offline Olivier Dupuis
112 posts
9th Ranked


Re: ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at ...CreateInst 
Do you have extra information under "Log Viewer" (Admin menu)?

Olivier Dupuis
Aikidev - An Agile Programming Experience
 
New Post 4/6/2006 3:05 PM
User is offline Ray G
25 posts
10th Ranked


Re: ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at ...CreateInst 
 odupuis wrote
Do you have extra information under "Log Viewer" (Admin menu)?


Yes, the same thing:

ModuleId: 411
ModuleDefId: 130
FriendlyName: CSPM01
ModuleControlSource: DesktopModules/CSPM01/CSPM01.ascx
AssemblyVersion: 03.02.02
Method: System.Activator.CreateInstance
FileName:
FileLineNumber: 0
FileColumnNumber: 0
PortalID: 0
PortalName: PORTALNAME
UserID: 1
UserName: host
ActiveTabID: 57
ActiveTabName: Access Requests
AbsoluteURL: /DotNetNuke/Default.aspx
AbsoluteURLReferrer:
ExceptionGUID: 171f491c-e2b4-48db-a0ff-7775e867bc0e
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
InnerException: The type initializer for "COMPANYNAME.DNN.Modules.CSPM01.Data.DataProvider" threw an exception.
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for "COMPANYNAME.DNN.Modules.CSPM01.Data.DataProvider" threw an exception. ---> System.TypeInitializationException: The type initializer for "COMPANYNAME.DNN.Modules.CSPM01.Data.DataProvider" threw an exception. ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey) in C:\Inetpub\wwwroot\DotNetNuke\components\Shared\Reflection.vb:line 99 at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName) in C:\Inetpub\wwwroot\DotNetNuke\components\Shared\Reflection.vb:line 71 at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) in C:\Inetpub\wwwroot\DotNetNuke\components\Shared\Reflection.vb:line 45 at COMPANYNAME.DNN.Modules.CSPM01.Data.DataProvider.CreateProvider() in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\Components\DataProvider.vb:line 22 at COMPANYNAME.DNN.Modules.CSPM01.Data.DataProvider..cctor() in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\Components\DataProvider.vb:line 16 --- End of inner exception stack trace --- at COMPANYNAME.DNN.Modules.CSPM01.Data.DataProvider.Instance() at COMPANYNAME.DNN.Modules.CSPM01.Business.CSPM01Controller.GetByModules(Int32 ModuleId) in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\Components\CSPM01Controller.vb:line 21 at COMPANYNAME.DNN.Modules.CSPM01.CSPM01.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\CSPM01\CSPM01.ascx.vb:line 26 --- End of inner exception stack trace ---
StackTrace:
Source:
Server Name: SERVERNAME
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  ERROR: System.ArgumentNullException: Value cannot be null. Parameter name: type at ...CreateInstance
 


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.

 


Icthus Technologies
Building Faith on the Internet
www.icthustech.com
Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com
DotNetNuke Training by Engage Software
Specializing in customized training, architecture and module solutions for large scale implementations lead by DNN Core Team Member Christopher Hammond.
engagesoftware.com

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