none
The type initializer for 'System.Net.ComNetOS' threw an exception. RRS feed

  • Question

  • Hi all

    I have just attempted to create a windows service to consume the PullSubscription for message to the inbox, however when I run:

    ExchangeService _exchangeService = new ExchangeService();
    

    I get the error The type initializer for 'System.Net.ComNetOS' threw an exception.

    OS is Vista Home, running VS2010 Professional as administrator.

    I have binged and googled without a possible solution.

    Cheers

    J.

    Thursday, November 11, 2010 5:47 AM

Answers

  • Finally worked this one out... it was a configuration file issue in particular a malformed node (didn't have appSettings). Something so simple in the end!

    • Marked as answer by Special_Jimmy Thursday, November 11, 2010 10:25 PM
    Thursday, November 11, 2010 10:24 PM