Answered by:
Upgraded 2007 to 2010: Users cannot be edited. Exception has been thrown by the target of an invocation

Question
-
Hi!
I upgraded Project Server 2007 to Project Server 2010 and installed the latest CU 2010-10 Update on Project Server 2010.If I go to PWA --> Server Settings --> Manage Users --> and edit any user that has been migrated, I receive an error message (see below for error log).
If I create a new user and edit the user, it works fine, so it seems to be only a problem with the migrated users.Any help would be appreciated!
Thanks,
Gerald
ERROR LOG:
11/02/2010 12:23:54.98 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:http://vie195nt:80/projectserver/_layouts/pwa/Admin/AddModifyUser.aspx?RESOURCE_UIDS=cea81279-a4d6-45d1-ab04-a2a22c66fa6f&IS_BULK_EDIT=false&returnLocation=0) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.20 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Logging Correlation Data xmnv Medium Site=/projectserver d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.28 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://vie195nt:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/PWA.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IPWA' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/SecurityCheckUserPagePermission' MessageId: 'urn:uuid:fc795060-69ae-4fb0-97ac-3a0762aa31bc' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.28 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://vie195nt.company.cmp:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/PWA.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/SecurityCheckUserPagePermission' MessageId: 'urn:uuid:fc795060-69ae-4fb0-97ac-3a0762aa31bc' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.28 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.29 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=3.16353056044833 d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.29 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://vie195nt:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Security.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.ISecurity' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Security/CheckUserGlobalPermission' MessageId: 'urn:uuid:8cc101fd-b0a7-45bf-ac2a-6233f48e6e33' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.31 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://vie195nt.company.cmp:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Security.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Security/CheckUserGlobalPermission' MessageId: 'urn:uuid:8cc101fd-b0a7-45bf-ac2a-6233f48e6e33' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.31 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.31 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=2.43913681766817 d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:55.42 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://vie195nt:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Resource.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IResource' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Resource/ReadResource' MessageId: 'urn:uuid:8301377f-9ee4-4891-8836-f71dbaebc36c' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.12 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://vie195nt.company.cmp:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Resource.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Resource/ReadResource' MessageId: 'urn:uuid:8301377f-9ee4-4891-8836-f71dbaebc36c' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.12 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.34 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=215.574325787216 d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.34 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (ExecuteWcfOperation:http://schemas.microsoft.com/office/project/server/webservices/Resource/ReadResource). Execution Time=927.875190841294 d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.46 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation General 8sl3 High DelegateControl: Exception thrown while building custom control 'Microsoft.SharePoint.SPControlElement': Exception has been thrown by the target of an invocation. d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.56 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://vie195nt:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Project.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IProject' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Project/ReadServerListSeparator' MessageId: 'urn:uuid:2dc58d71-4a35-42e1-aa7d-fd0e9bd858ba' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.57 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://vie195nt.company.cmp:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Project.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Project/ReadServerListSeparator' MessageId: 'urn:uuid:2dc58d71-4a35-42e1-aa7d-fd0e9bd858ba' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.57 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.57 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=5.00845777885178 d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.67 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://vie195nt:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/PWA.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IPWA' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/ResourceUserGuidsToNames' MessageId: 'urn:uuid:d8b7ec82-1aaa-4d0e-8bc4-a3d9746a535f' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.68 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://vie195nt.company.cmp:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/PWA.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/ResourceUserGuidsToNames' MessageId: 'urn:uuid:d8b7ec82-1aaa-4d0e-8bc4-a3d9746a535f' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.68 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.70 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=19.9841041249656 d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.73 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://vie195nt:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/PWA.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IPWA' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/ResourceUserGuidsToNames' MessageId: 'urn:uuid:2d31e176-5d54-4b4d-8b70-7dcf7aa259a1' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.74 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://vie195nt.company.cmp:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/PWA.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/project/server/webservices/PWA/ResourceUserGuidsToNames' MessageId: 'urn:uuid:2d31e176-5d54-4b4d-8b70-7dcf7aa259a1' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.74 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.74 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=3.03781625877032 d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.76 w3wp.exe (0x0468) 0x0C04 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://vie195nt:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Admin.svc' Channel: 'Microsoft.Office.Project.Server.Interfaces.IAdmin' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Admin/GetServerCurrency' MessageId: 'urn:uuid:8d9f4cdf-d407-4b0b-a4fa-3cc520006840' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.78 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://vie195nt.company.cmp:32843/7af6fa683e4f4c86b7de70b69e6e8190/PSI/Admin.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/office/project/server/webservices/Admin/GetServerCurrency' MessageId: 'urn:uuid:8d9f4cdf-d407-4b0b-a4fa-3cc520006840' d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.78 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) d3415d8a-5f43-4f3b-aceb-bd565623745e
11/02/2010 12:23:56.78 w3wp.exe (0x0B64) 0x15B8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=2.46372094777409 d3415d8a-5f43-4f3b-aceb-bd565623745e
Tuesday, November 2, 2010 11:35 AM
Answers
-
Hi!
I checked the log again and found the REAL issue:
11/05/2010 13:48:52.31 w3wp.exe (0x165C) 0x2634 Project Server Project Web App 2q1k Exception System.ArgumentOutOfRangeException: 'idBaseCalendar' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value at System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) at System.Web.UI.WebControls.ListControl.PerformSelect() at Microsoft.Office.Project.PWA.ApplicationPages.AddModifyUserPage.InitBaseCalendarDropDown() at Microsoft.Office.Project.PWA.ApplicationPages.AddModifyUserPage.InitControls() at Microsoft.Office.Project.PWA.ApplicationPages.AddModifyUserPage.PJWebPage_OnLoad(EventArgs e) at Microsoft.Office.Project.PWA.PJWebPage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean i... a9a1804e-0e09-41f0-b332-31f6dc959540
--> 'idBaseCalendar' has a SelectedValue which is invalid because it does not exist in the list of items
I checked the table MSP_CALENDARS in the PUBLISHED database if there are entries where the base calendar does not exist:
(There is a parent-child relation between CAL_BASE_UID and CAL_UID:
select * from MSP_CALENDARS where CAL_BASE_UID not in (select CAL_UID from MSP_CALENDARS)
ALL entries hat a CAL_BASE_UID which did not exist, I set those back to my base standard calendar:
update MSP_CALENDARS set CAL_BASE_UID = (select CAL_UID from msp_calendars where cal_is_base_cal = 1 and CAL_IS_STANDARD_CAL=1) whereCAL_UID in (select CAL_UID from MSP_CALENDARS where CAL_BASE_UID not in (select CAL_UID from MSP_CALENDARS))
Now I can edit my users again!
I also did the same thing with the table MSP_PROJECT_CALENDARS.
I don't know why the ID was wrong, maybe the upgrade process from 2007 to 2010 created the standard calendar new and did not updated the CAL_BASE_UID column? I don't know.
problem solved!
kind regards,Gerald- Marked as answer by Gerald Tauchner Friday, November 5, 2010 1:25 PM
Friday, November 5, 2010 1:25 PM
All replies
-
Hmm, Looking at the log it thows an error looking at Delegates...
- DelegateControl: Exception thrown while building custom control 'Microsoft.SharePoint.SPControlElement': Exception has been thrown by the target of an invocation. d3415d8a-5f43-4f3b-aceb-bd565623745e
Can you check any delegate permissions etc for this user, ie is this user a delegate for someone?
Ben Howard [MVP] blog | web- Proposed as answer by Christophe FiessingerMicrosoft employee Wednesday, November 3, 2010 12:37 AM
Tuesday, November 2, 2010 1:19 PM -
Hi!
Thank you for the hint. But I did a migration of Project Server 2007 and did not configure any delegates yet. And unfortunatly I am not able to edit any user.
Any other hints?
kind regards,
Gerald
Wednesday, November 3, 2010 8:50 AM -
- Marked as answer by Gerald Tauchner Friday, November 5, 2010 1:21 PM
- Unmarked as answer by Gerald Tauchner Friday, November 5, 2010 1:21 PM
Wednesday, November 3, 2010 8:49 PM -
Hi!
I checked the log again and found the REAL issue:
11/05/2010 13:48:52.31 w3wp.exe (0x165C) 0x2634 Project Server Project Web App 2q1k Exception System.ArgumentOutOfRangeException: 'idBaseCalendar' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value at System.Web.UI.WebControls.ListControl.PerformDataBinding(IEnumerable dataSource) at System.Web.UI.WebControls.ListControl.PerformSelect() at Microsoft.Office.Project.PWA.ApplicationPages.AddModifyUserPage.InitBaseCalendarDropDown() at Microsoft.Office.Project.PWA.ApplicationPages.AddModifyUserPage.InitControls() at Microsoft.Office.Project.PWA.ApplicationPages.AddModifyUserPage.PJWebPage_OnLoad(EventArgs e) at Microsoft.Office.Project.PWA.PJWebPage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean i... a9a1804e-0e09-41f0-b332-31f6dc959540
--> 'idBaseCalendar' has a SelectedValue which is invalid because it does not exist in the list of items
I checked the table MSP_CALENDARS in the PUBLISHED database if there are entries where the base calendar does not exist:
(There is a parent-child relation between CAL_BASE_UID and CAL_UID:
select * from MSP_CALENDARS where CAL_BASE_UID not in (select CAL_UID from MSP_CALENDARS)
ALL entries hat a CAL_BASE_UID which did not exist, I set those back to my base standard calendar:
update MSP_CALENDARS set CAL_BASE_UID = (select CAL_UID from msp_calendars where cal_is_base_cal = 1 and CAL_IS_STANDARD_CAL=1) whereCAL_UID in (select CAL_UID from MSP_CALENDARS where CAL_BASE_UID not in (select CAL_UID from MSP_CALENDARS))
Now I can edit my users again!
I also did the same thing with the table MSP_PROJECT_CALENDARS.
I don't know why the ID was wrong, maybe the upgrade process from 2007 to 2010 created the standard calendar new and did not updated the CAL_BASE_UID column? I don't know.
problem solved!
kind regards,Gerald- Marked as answer by Gerald Tauchner Friday, November 5, 2010 1:25 PM
Friday, November 5, 2010 1:25 PM -
-
No, this has nothing to do with User Delegation in Project Server. It's a SharePoint error.Monday, November 22, 2010 7:48 AM