Download DOWNLOAD
Forums FORUMS
Blogs BLOGS
Forge FORGE
Help HELP
Marketplace MARKETPLACE
DotNetNuke Home
You are here >   Community > Forums
Register  |  Login

DotNetNuke Forums

DotNetNuke ForumDotNetNuke ForumArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem creating C# modules in Visual Studio 2005Problem creating C# modules in Visual Studio 2005
Previous
 
Next
New Post
10/13/2006 4:48 AM
 

Hi

I have followed those step to create module in visual studio 2005 for c# but I always get Exception when trying to create provider from DataAdapter class

http://vladan.strigo.net/Default.aspx?TabId=76

objProvider = (DataProvider)Reflection.CreateObject("data", "BlankModule", "");
(My default namespace is BlankModule)

The error I receive is following

{"Value cannot be null.\r\nParameter name: type"}

It´s very strange because I have tutorial project written in c# which is working in my Portal, and which I have been following to code my project.

Any Ideas

Regards

New Post
10/13/2006 5:06 AM
 

It seems correct. Something I have noticed (no matter which development method that you are using) is that any error will cause other errors to appear. So that code that is correct may throw an error if you have another error. If you have other errors, fix them first and rebuild.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
New Post
10/13/2006 5:33 AM
 

Hi Micheal

Thanks for your response, the problem is that my projects builds without any errors, I receive this error when I debug my module when it loads with some call to my Controller class

Regards

Jón Sveinsson

New Post
10/13/2006 5:43 AM
 
Try putting the name of the Assembly as the last parameter:

objProvider = (DataProvider)Reflection.CreateObject("data", "BlankModule", "<Assembly Name>");
New Post
10/17/2006 7:40 AM
 

Hi

I tried that, but still the same

Anyone

Regards

Jón Sveinsson

Previous
 
Next
DotNetNuke ForumDotNetNuke ForumArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem creating C# modules in Visual Studio 2005Problem creating C# modules in Visual Studio 2005

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.

Networks

Follow DNNCorp on Twitter

LinkedIn

Follow us on Twitter @DNNCorp or join the DotNetNuke Community on LinkedIn

Sponsors

DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation

Hosted by MaximumASP