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  |  

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


  Ads  
Aspose - The .NET & Java component publisher
 


  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...  "Object reference not set to an instance of an object" when run module on DNN 4.6.2
Previous Previous
 
Next Next
New Post 11/15/2007 12:55 AM
User is offline Many UD
9 posts
10th Ranked


"Object reference not set to an instance of an object" when run module on DNN 4.6.2 

Hi all.  I'm developing module on DNN 4.6.2 using C# 2005. I have encoutered a problem as the code below:

.......
            MiniHRController _miniHRController = new MiniHRController();
            //
            List<MiniHRInfo> empList;
            empList = _miniHRController.MyModule_GetEmployeeAll(ModuleId);
.........

When run on DNN it raises an error:  "Object reference not set to an instance of an object"
I'm a newbie. Let help me!

Thanks and Best  Regards!

 
New Post 11/15/2007 7:30 AM
User is offline Snoek8
49 posts
www.mexmax-internet.com
10th Ranked


Re: "Object reference not set to an instance of an object" when run module on DNN 4.6.2 

In order to resolve this issue you have to debug the module. I think the problem is in the controller. It may be returning Null which generated the error. Place a breakpoint at the line "empList = _miniHRController.MyModule_GetEmployeeAll(ModuleId);" and place one in the controller at "MyModule_GetEmployeeAll". Step through it and you will get more details about the error.

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  "Object reference not set to an instance of an object" when run module on DNN 4.6.2
 


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.

 


Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca
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 Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP