Integrations and APIs for Service

Get Involved. Join the Conversation.

Topic

    Shakil Ahmed
    'SampleClient.RightNowService' already contains a...
    Topic posted August 29, 2014 by Shakil Ahmed 
    76 Views, 2 Comments
    Title:
    'SampleClient.RightNowService' already contains a definition for 'ExceptionCode' getting error C#
    Content:

    When I have added my wsdl as a service using the following instruction.I am getting this compilation error in .net.

    http://documentation.custhelp.com/euf/assets/devdocs/august2014/Connect_Web_Services_for_SOAP/Default.htm

    Error:

    Error    1    The namespace 'SampleClient.RightNowService' already contains a definition for 'ExceptionCode'    D:\VBCode\SampleClient\SampleClient\Service References\RightNowService\Reference.cs    18602    17    SampleClient

    Any suggestion please???

     

    Comment

     

    • Darsen Prasad

      Shakil,

      Make sure you have removed all duplicate reference of the RN connect web service. If still the issue persists try two things

      Make sure the same class is not defined in the page which you trying to use the Service.

      Delete the reference, clean up the designer files (designer.cs, if any - look for 'ExceptionCode') and  add the service reference again

      Regards,

      Darz

    • Shakil Ahmed

      Hi Darz,

      Thanks for your answer. I have tried to delete the duplicate from reference. I have attached the file which has generated after adding the wsdl file as a service reference.

      Thanks

      Shakil