locked
c# - remote power shell to exch 2010. Getting FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.Data, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' RRS feed

  • General discussion

  • Hi All,

    I have a c# application where in I connect to Exchange server 2010 SP1 using remote powershell. I get mailboxes by executing a powershell command (get-mailbox).

    For this mailbox user, I need to get all properties including MultiValued Properties. For this, I have used classes like Microsoft.Exchange.Data.MultiValuedProperty.

    As soon as the control goes here, I get

    System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.Data, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
    File name: 'Microsoft.Exchange.Data, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

    My c# app is running is on another machine part of same domain as that of exchange server. This machine has exchange management tools installed.

    Please let me know what could be the issue. Please help. Thanks!


    /M

    Monday, October 1, 2012 4:42 PM

All replies

  • Solved :)

    Thanks to http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/37234c46-67be-4285-bbb8-5be2680943c9

    Thanks again Williams!


    /M

    Monday, October 1, 2012 7:13 PM