.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old July 3rd, 2009, 12:58 PM
fez7860 fez7860 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 12 fez7860 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 12 m 33 sec
Reputation Power: 0
ASP.Net/C# - Object reference not set to an instance of an object

Hello, i am creating a report by sending a star and end month so i can get data within that time frame

however if i put a start month of: Jan 2009 and an end month of: Feb 2009, the data is retrieved and the report is generated

however,

if i put in a start month of: jan 2009 and an end month of: May 2009

i get this error
Object reference not set to an instance of an object

as anyone encountered this problem with reports?

i put all the grouping and keep together true.

Reply With Quote
  #2  
Old July 3rd, 2009, 02:17 PM
rclark's Avatar
rclark rclark is offline
I do .NET for a living
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Florida
Posts: 1,435 rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 20 h 37 m 13 sec
Reputation Power: 157
Quote:
Originally Posted by fez7860
Hello, i am creating a report by sending a star and end month so i can get data within that time frame

however if i put a start month of: Jan 2009 and an end month of: Feb 2009, the data is retrieved and the report is generated

however,

if i put in a start month of: jan 2009 and an end month of: May 2009

i get this error
Object reference not set to an instance of an object

as anyone encountered this problem with reports?

i put all the grouping and keep together true.


What does the code look like that grabs the data? Sounds like you have a try catch around it but are still returning the dataset which is null. Perhaps the query is large enough with that date range that it's timing out and you're not handling that error properly?
__________________
Roger (.NET MCP)

Reply With Quote
  #3  
Old July 3rd, 2009, 02:57 PM
fez7860 fez7860 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 12 fez7860 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 12 m 33 sec
Reputation Power: 0
but for some reason it works on my local system but when i uploaded it on to to the web so the clients can use, then i am having the problem =S

Reply With Quote
  #4  
Old July 3rd, 2009, 03:17 PM
rclark's Avatar
rclark rclark is offline
I do .NET for a living
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Florida
Posts: 1,435 rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level)rclark User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 20 h 37 m 13 sec
Reputation Power: 157
Quote:
Originally Posted by fez7860
but for some reason it works on my local system but when i uploaded it on to to the web so the clients can use, then i am having the problem =S


Are you hitting the same database on the same server? Maybe your machine has a better path to the data? Force it to fail on your dev machine and see what the results are (change the password to the data source in your connection string so it will fail).

That's where I'd head first anyway...

Reply With Quote
  #5  
Old July 3rd, 2009, 03:41 PM
fez7860 fez7860 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 12 fez7860 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 12 m 33 sec
Reputation Power: 0
yes it is a different database that is running to, on my local its call PCFMDEV and on the server its called PCFM, i did run the same scripts and everything. however, i restored my PCFMDEV db as PCFM so i can have the same data.

like it should work cuz i copied my PCFMDEV like my PCFM.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > ASP.Net/C# - Object reference not set to an instance of an object


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek