Microsoft Content Management Server - ClientAccountName - strange problem...

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > February 2006 > ClientAccountName - strange problem...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ClientAccountName - strange problem...
Victor-Seán

2006-02-20, 7:47 am

Hi all,
MCMS 2002 + SP1a
VS 2003

Check this out here:
Data is an array list of posting objects.

foreach (Posting p in data)
{
string resp = p.CreatedBy.ClientAccountName.ToString();
string path = p.Path;
path = path.Substring(siteChannel.Path.Length);
DataRow dr1 = table.NewRow();
dr1[0] = p.Name;
dr1[1] = resp;
dr1[2] = p.LastModifiedDate;
dr1[3] = p.ExpiryDate;
dr1[4] = p.State;
dr1[5] = path;
dr1[6] = p.Url;
table.Rows.Add(dr1);
}

Looks straightforward enough but... no matter what I do the string
"resp" always returns null even though if I step through the code I can
see that the clientaccountname returns a value. Appending to the
string, splitting it, assigning to the datarow directly and I still
can't use the value. I have rebooted, cleared the gac, flush the cache
etc but I can't get this value.

Is this is a bug?

Thanks in advance for your help,
Vic

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com