I am stuck in this issue for long, would really appreciate if anyone can help !!!
So I have a MVC web application which talks to Web API which calls powershell script.
I am using Visual studio 2013
Windows 7 64 bit OS
Exchange server 2010 SP3
Problem -
When ever my application invokes powershell script, it does add entry in AD ( as needed) but just after that when it comes back to application it throws exception -
Exception: System.TypeInitializationException
Message: The type initializer for 'Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging' threw an exception.
The same setup in in another server and works but its not working in my local IIS. I need it to work in order to debug my application, have tried many suggestions gieven by the forums but couldnt find the answer.
Would really appreciate any suggestions !! Thanks in advance.