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  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


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
622 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.

 


Adaptive InfoSystems, Inc.
We provide custom programming and various levels of support for DotNetNuke and the .Net framework.
www.aisysweb.com
Multipartner Virtual Data Rooms
The Virtual Data Rooms (VDR) provided by an expert advisor, far from any ordinary software company!, supporting the sellers and their consultants. Multipartner builds and services higly professional Virtual Data Rooms (VDR) specifically tailored to M&A, Real Estate and NPL deals.
www.multipartner.com
DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com

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