My Tasks generates NullReferenceException but My Work link is fine

T

thinkmassive

Our PM noticed a peculiar error in PWA. For some accounts, the My
Tasks page generates an ASP.NET exception. This only happens for some
users, and it doesn't happen when *anyone* clicks the My Work link,
which also displays My Tasks. The only similar problem I have seen
involves not having spaces in custom field values, which we don't even
use.

I've included the entire error message below. If anyone can provide
any insight I will be grateful.

Thanks in advance!

Server Error in '/' Application.
--------------------------------------------------------------------------------

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.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an
object.]

Microsoft.Office.Project.PWA.CommonControls.XmlGrid.InitializePager(DataGridItem
item, Int32 columnSpan, PagedDataSource pagedDataSource) +651
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex,
Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object
dataItem, DataGridColumn[] columns, TableRowCollection rows,
PagedDataSource pagedDataSource) +249
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean
useDataSource) +1186

Microsoft.Office.Project.PWA.CommonControls.XmlGrid.CreateControlHierarchy(Boolean
useDataSource) +1122

Microsoft.Office.Project.PWA.CommonControls.XmlGrid.OnPreRender(EventArgs
e) +332
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161

System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
+62
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1360
 
T

thinkmassive

I apologize for immediately responding to my own post, but two
important things I should add:
1. Microsoft Project Server 2007
2. I have rebooted the server and nothing changed.
 
H

Hernán Mario

OK, MyWork and Tasks are diferent .aspx pages but use the same Webpart, if
the webpart work fine in one page its because the tasks.aspx page have a
problem, maybe the user tried to modify the properties of the webpart or
something.
You have to restore the configuration of the tasks.asp page:

Log as administrator, go to mytasks, edit the page, remove the webpart and
add it again.

See Sharepoint help for the action.

Regards

Hernán Mario


thinkmassive said:
Our PM noticed a peculiar error in PWA. For some accounts, the My
Tasks page generates an ASP.NET exception. This only happens for some
users, and it doesn't happen when *anyone* clicks the My Work link,
which also displays My Tasks. The only similar problem I have seen
involves not having spaces in custom field values, which we don't even
use.

I've included the entire error message below. If anyone can provide
any insight I will be grateful.

Thanks in advance!

Server Error in '/' Application.
--------------------------------------------------------------------------------

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.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an
object.]

Microsoft.Office.Project.PWA.CommonControls.XmlGrid.InitializePager(DataGridItem
item, Int32 columnSpan, PagedDataSource pagedDataSource) +651
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex,
Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object
dataItem, DataGridColumn[] columns, TableRowCollection rows,
PagedDataSource pagedDataSource) +249
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean
useDataSource) +1186

Microsoft.Office.Project.PWA.CommonControls.XmlGrid.CreateControlHierarchy(Boolean
useDataSource) +1122

Microsoft.Office.Project.PWA.CommonControls.XmlGrid.OnPreRender(EventArgs
e) +332
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161

System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
+62
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1360
 
T

thinkmassive

Thanks Hernán, that worked great!

Alex

OK, MyWork and Tasks are diferent .aspx pages but use the same Webpart, if
the webpart work fine in one page its because the tasks.aspx page have a
problem, maybe the user tried to modify the properties of the webpart or
something.
You have to restore the configuration of the tasks.asp page:

Log as administrator, go to mytasks, edit the page, remove the webpart and
add it again.

See Sharepoint help for the action.

Regards

Hernán Mario

thinkmassive said:
Our PM noticed a peculiar error in PWA. For some accounts, the My
Tasks page generates an ASP.NET exception. This only happens for some
users, and it doesn't happen when *anyone* clicks the My Work link,
which also displays My Tasks. The only similar problem I have seen
involves not having spaces in custom field values, which we don't even
use.
I've included the entire error message below. If anyone can provide
any insight I will be grateful.
Thanks in advance!
Server Error in '/' Application.
--------------------------------------------------------------------------------
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.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
Microsoft.Office.Project.PWA.CommonControls.XmlGrid.InitializePager(DataGridItem
item, Int32 columnSpan, PagedDataSource pagedDataSource) +651
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex,
Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object
dataItem, DataGridColumn[] columns, TableRowCollection rows,
PagedDataSource pagedDataSource) +249
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean
useDataSource) +1186
Microsoft.Office.Project.PWA.CommonControls.XmlGrid.CreateControlHierarchy(Boolean
useDataSource) +1122
Microsoft.Office.Project.PWA.CommonControls.XmlGrid.OnPreRender(EventArgs
e) +332
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
+62
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1360
 
M

Mike Christensen

Thanks Hernán, that worked great!

Alex

OK, MyWork and Tasks are diferent .aspx pages but use the same Webpart, if
the webpart work fine in one page its because the tasks.aspx page have a
problem, maybe the user tried to modify the properties of the webpart  or
something.
You have to restore the configuration of the tasks.asp page:
Log as administrator, go to mytasks, edit the page, remove the webpart and
add it again.
See Sharepoint help for the action.

Hernán Mario
"thinkmassive" <[email protected]> escribió en el mensajenews:c517c66d-02c1-496b-b8df-342c3af3c62a@s19g2000prg.googlegroups.com...
Our PM noticed a peculiar error in PWA.  For some accounts, the My
Tasks page generates an ASP.NET exception.  This only happens for some
users, and it doesn't happen when *anyone* clicks the My Work link,
which also displays My Tasks.  The only similar problem I have seen
involves not having spaces in custom field values, which we don't even
use.
I've included the entire error message below.  If anyone can provide
any insight I will be grateful.
Thanks in advance!
Server Error in '/' Application.
---------------------------------------------------------------------------­-----
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.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an
object.]
Microsoft.Office.Project.PWA.CommonControls.XmlGrid.InitializePager(DataGri­dItem
item, Int32 columnSpan, PagedDataSource pagedDataSource) +651
  System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex,
Int32 dataSourceIndex, ListItemType itemType, Boolean dataBind, Object
dataItem, DataGridColumn[] columns, TableRowCollection rows,
PagedDataSource pagedDataSource) +249
  System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean
useDataSource) +1186
Microsoft.Office.Project.PWA.CommonControls.XmlGrid.CreateControlHierarchy(­Boolean
useDataSource) +1122
Microsoft.Office.Project.PWA.CommonControls.XmlGrid.OnPreRender(EventArgs
e) +332
  System.Web.UI.Control.PreRenderRecursiveInternal() +77
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.WebControls.WebParts.WebPart.PreRenderRecursiveInternal()
+62
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Control.PreRenderRecursiveInternal() +161
  System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1360
---------------------------------------------------------------------------­-----
Version Information: Microsoft .NET Framework Version:2.0.50727.832;
ASP.NET Version:2.0.50727.832- Hide quoted text -

- Show quoted text -

BTW, the InitializePager bug happens when the grid attempts to load a
page index that does not exist. This bug was fixed in SP1.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top