I'm using code on http://code.msdn.microsoft.com/office365/Office-365-Manage-users-by-cfc96d5e to connect to Office 365 via a test c# web application which basically connects to azure active directory and tries to execute couple of powershell cmdlets.
I'm getting this exception on the Pipeline.Invoke method on the Connect-MsolService cmdlet in my web app:
Exception of type 'Microsoft.Online.Administration.Automation.MicrosoftOnlineException' was thrown.
So far:
I can successfully execute connect-msolservice and run cmdlets using the Microsoft Online Services Module for Windows PowerShell on the same machine, using same account.
What else can I try?
Change IIS App Pool setting Load User Profile to True
http://community.office365.com/en-us/forums/172/p/165426/474632.aspx#474632
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.