Outlook 2010 and custom web services RRS feed

  • Question

  • while developing a custom add-in that uses custom web services, is there any pit falls to look out for?

    Are there any known issues and workarounds?

    Is there some code that we can add that says the web services are too busy?

    We are consuming web services via web references in a custom Outlook 2010 add-in. When it works, it works great, when it does not, it locks up Outlook completely, the only error that I can capture is that the web service times out.

    Any advice would be outstanding!!!!

    Wednesday, January 22, 2014 6:19 PM


All replies

  • Hello niyack,

    You can treat a VSTO add-in like a regular .Net application. There is nothing special to care about.

    Did you try to debug the code? What line of code freezes Outlook?

    Wednesday, January 22, 2014 6:28 PM
  • thus far no, the only info that I have been able to get is that it is timming out, I would suspect when I am calling the method of the web service
    Wednesday, January 22, 2014 7:18 PM
  • Did you try to run another threads for calling a web service?
    Wednesday, January 22, 2014 7:24 PM
  • I tried adding threads before and the web service stopped working.

    Do you have sample code for adding threads?

    Just looking to see what is the right way to code it vs what I did.

    Wednesday, January 22, 2014 8:58 PM
  • Well, the task is common for all .Net based applications. That's why I'd suggest asking such questions in the Visual C# or Visual Basic forums instead.

    Anyway, you can read about threads in How to: Create Threads article in MSDN. Also you may be interested in the How to run method in separate thread forum thread.

    Wednesday, January 22, 2014 9:11 PM
  • Thanks the forum link, showed me what I was missing
    • Marked as answer by niyack Wednesday, January 22, 2014 9:20 PM
    Wednesday, January 22, 2014 9:20 PM