2
Vote

Object reference not set to an instance of an object

description

At least in VS2008, on Windows Vista x64 and connected to SQL2008, in today.aspx.cs at line 168:
sqlString.AppendFormat("SELECT COUNT(*) FROM CRM_TODOLIST_VIEW WHERE (EXPIRATIONDATE>='{0}' OR (EXPIRATIONDATE<'{0}' AND FLAGEXECUTED=0)) AND OWNERID={1};",UC.LTZ.ToUniversalTime(DateTime.Now).ToString(@"yyyyMMdd"), UC.UserId.ToString());
 
we have:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
 
and after this also on line (aprox.) 238:
string fromDate = UC.LTZ.ToUniversalTime(fromToday).ToString(@"yyyyMMdd HH:mm:ss").Replace('.',':');
 
the same issue.

file attachments

comments

meetdine wrote Dec 15, 2009 at 4:26 AM

I am sure, you are wasting your time while posting your comments and problems here. This site doesnot respond to any comment at allll

meetdine wrote Dec 15, 2009 at 4:28 AM

I don't get response

meetdine wrote Dec 16, 2009 at 11:36 AM

This is the problem with 2008 server registry, this function "TimeZones.GetTimeZone(190)" expects the Index key from the registry where 2008 server registry does not have this key.
Ex: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\India Standard Time]
"Index"=dword:000000be
Here I am attaching the reg file, If this file is executed to update the registry, your problem will be solved...

wrote Dec 16, 2009 at 11:36 AM

wrote Jul 18, 2010 at 8:09 PM

wrote Feb 22, 2013 at 12:17 AM