none
_COMPlusExceptionCode

    Question

  • 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 ?

    Tuesday, February 12, 2008 11:25 AM

All replies