Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Null Reference exception in getusagedata method

30 views
Skip to first unread message

jeena

unread,
Sep 12, 2008, 12:14:00 AM9/12/08
to
i am working on a custom sharepoint usage report.i just work on getusagedata
method but it shows null reference exception.This is the code
using (SPweb =SPsite.OpenWeb())
{
System.DateTime dtValue = System.DateTime.Toda
dtValue = dtValue.AddDays(-1);
GridView1.DataSource
=SpWeb.GetUsageData(Microsoft.SharePoint.Administration.SPUsageReportType.user,Microsoft.SharePoint.Administration.SPUsagePeriodType.day,
12, dtValue);
GridView1.DataBind();
}
can u please help me please .i want it urgent

Thanks
jeena

suganyanataraj

unread,
Nov 6, 2009, 12:41:29 AM11/6/09
to
hi jeena,

Even am facing the same problem.have you got any solutions.if so,please help me.

jeen wrote:

Null Reference exception in getusagedata method
12-Sep-08

Thanks
jeena

Previous Posts In This Thread:

On Friday, September 12, 2008 12:14 AM
jeen wrote:

Null Reference exception in getusagedata method

Thanks
jeena

EggHeadCafe - Software Developer Portal of Choice
.NET Object Mapper / Code Generator For SQL Server
http://www.eggheadcafe.com/tutorials/aspnet/8a2be546-6c14-4d9c-8ed8-f5cece4363ef/net-object-mapper--code.aspx

suganya

unread,
Nov 6, 2009, 1:04:08 AM11/6/09
to
Hi jeena,
Even I am facing the same problem.Have you got any solutions.If so,
please help me.

url:http://www.ureader.com/msg/12332633.aspx

0 new messages