_COMPlusExceptionCode
-
Tuesday, February 12, 2008 11:25 AM
Hi
I am trying to add a SOAP subscrition to the TFS . Here is the code :
DeliveryPreference
preference = new DeliveryPreference();preference.Schedule = DeliverySchedule.Immediate;
preference.Type =
DeliveryType.Soap;preference.Address =
http://raman2k3.fareast.corp.microsoft.com/workitemchange/Service.asmx; (Service on clientside )string userName = Environment.UserDomainName + @"\" + Environment.UserName;
try
{
int id = Shared.EventService.SubscribeEvent(userName, eventComboBox.SelectedItem.ToString(), textBoxExpression.Text, preference);}
catch (Exception ex){
MessageBox.Show(ex.Message, "Error subscribing to event", MessageBoxButtons.OK, MessageBoxIcon.Error);}
But i am getting an exception as "Attempted to perform an unauthorised operation " ?
I am not able to resolve this . PLease help ?
All Replies
-
Tuesday, February 19, 2008 2:47 PMModerator
Are you still having this problem? Does the user you're specifying have permission to access TFS and can they subscribe to events from the UI? -
Wednesday, April 02, 2008 4:49 PM
I have the same issue. Anyone found any clue to this exception? -
Monday, April 28, 2008 10:34 PM
Hello,
What is your objective in trying to subscribe to SOAP messages? Is this something you could do with BisSubscribe (http://blogs.vertigosoftware.com/teamsystem/archive/2006/07/03/Subscribing_to_Team_Foundation_Server_Events.aspx)? You might also want to check out the CodePlex project TFS Event Handler: http://www.codeplex.com/TFSEventHandler
Matt

