Thursday, February 03, 2005 - Posts

Solution: Microsoft.Pcw.currituck fails with error: "Access Denied: Not a system user"

When you create portfolio project in Team System Foundation Server, you might get the following error

Event Description: Initialization for plugin "Microsoft.Pcw.currituck" failed with error: "Access Denied: Not a system user"
Exception Type: Microsoft.VisualStudio.Currituck.Client.NotASystemUserException
Exception Message: Access Denied: Not a system user

This is a known issue in DEC CTP and it is mentioned in Foundation Server Team Blog. This error will come if you have user principal name different from email address of the user in active directory. This error has come in Beta 1 refresh also, I have blogged about it here.. 

I also faced this problem when i installed Foundation Server Dec CTP. I solved this problem using following workaround. User information for team system is stored in ADObjects table in Currituck database. So if you update this table to have email address alias name to be same as user principal name. This problem will be solved. To do this, run the following script in currituck database in foundation database server.

Update ADObjects set mailnickname = SamAccountName where Domainname like '<YourDomainName>'
GO
ALTER TRIGGER [dbo].[NewTrigger_1] ON [dbo].[ADObjects] WITH EXECUTE AS CALLER AFTER  INSERT, UPDATE AS
Update ADObjects set mailnickname = SamAccountName where Domainname like '<YourDomainName>'

Note: Since ADObjects table is synched with Active directory by a Currituck service, this table values will keep changing. therefore you need to create trigger to update this table when there is a change in this table.

with 1 Comments