Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Exchange 2010 application on Visual Studio 2012 (.NET 4.0): Cannot load Exchange powershell snap-in: The type initializer for 'Microsoft.Exchange.Data.*' threw an exception

$
0
0

Hi

I have recently upgraded my application from .NET framework 2.0 to 4.0. I am facing a strange problem after upgrade. I am unable to load Microsoft Exchange Assemblies. 

 rc = RunspaceConfiguration.Create();
                warning = null;
                if (Version == "2010")
                    info = rc.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.E2010", out warning);

I am unable to understand the cause of the problem. But with reference to the this article, I have concluded that this is a bug. Please suggest the soultion. 
Thanks in advance


Rizwan Ahmed. Software Engineer - Microsoft Lync | Exchange | SharePoint | Blackberry Enterprise Server | .NET


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>