Exchange server 2010: .NET 3.5 c# application does not work on .NET 4.0 RRS feed

  • Question

  • Hello All,

    I have a c# application built using .NET 3.5 framework. This application manages mailboxes on exchange server 2010 by loading 2010 snap-ins locally.

    This works fine if I have 3.5 installed on my system. If I have only 4.0, the same application breaks :(

    I update my application config file to add

    <supportedRuntime version="v4.0"/>

    I get
    Problem while PowerShell execution System.Management.Automation.CmdletInvocationException: Value cannot be null.
    Parameter name: serverSettings ---> System.ArgumentNullException: Value cannot be null.
    Parameter name: serverSettings
       at Microsoft.Exchange.Configuration.Tasks.TaskVerboseStringHelper.GetADServerSettings(String cmdletName, ADServerSettings serverSettings)
       at Microsoft.Exchange.Configuration.Tasks.Task.LogCmdletIterationEvent()

    If I remove the above tags in config file and install 3.5, the same application works fine.
    Please let me know if there is anything I am missing ?


    Tuesday, July 9, 2013 1:13 PM