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  |  

Vote for DotNetNuke as your choice for winner of this year's PackT Open Source CMS Award
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

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


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.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

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