EWS API throws error “No Mailbox with such GUID”

Recently i was working with an ISV/application developer, who created this custom application using EWS (Exchange Web Services) API. It worked with the account with impersonation rights to access other mailboxes/calendars in Azure/Office 365/Exchange Online. But when they tried to access a specific mailbox calendar, they see the error “No mailbox with such GUID”. We…


Deep dive # 1: How to configure Exchange on-premise Server hybrid integration with Office 365/Azure Infrastructure and test REST API calls?

This is one of the regular discussion that comes across at my desk, how we can configure Hybrid Exchange on-premise server integration with Office 365/Exchange Online, so that users can make use of REST API. So I thought let me stitch all of them together which can be handy for both the Exchange administrators and…

7

Office.js debug: Office add-in throws “Sorry, we couldn’t load the app because your browser version is not supported”

One of the ISV pointed out that they see the following error with Office Add-ins that they develop. It throws error “Sorry, we couldn’t load the app because your browser version is not supported. Click here for a list of supported browser versions.” During the investigation we noticed the end user’s browser (Internet Explorer) is…


Office.js web add-in throws HTTP 401 Unauthorized

One of my dev customer, created Outlook Web add-in (using Office.js/JavaScript) and tried calling EWS call (mailbox.makeEWSRequestAsync method). It throws HTTP error 401 for mailbox.makeEWSRequsetAsync() method. They noticed the error or behaviour when they tested with Outlook on the Web and Outlook Web Access for devices. The API call throws, the following HTTP error: “The…


Debug: Graph API throws HTTP 403 with $filter for some users

In recent times, i worked with one of the ISV developer who reported that for some users when they use $filter with Graph API calls throws HTTP 403 – Forbidden. The same call works fine with $filter for most of the users. We chased and found it happens for some users (and not for all…


Graph API : Subscription lifetime changes for Outlook resources

If your application uses user tokens to create subscriptions to Outlook resources, then you need to update your apps as needed to handle this scenario. This only applies to applications that use user tokens to create subscriptions. Applications that use app tokens to create subscriptions are not affected by this change. Existing applications do not…


Graph Developer: Microsoft Graph API fails with error RESTAPINotEnabledForComponentSharedMailbox

One of my customer tried accessing the Graph/REST API call using Microsoft Graph API in their mailbox and they get error “RESTAPINotEnabledForComponentSharedMailbox”. It worked for their couple of other mailboxes, but failed for this given mailbox. Their error stack (detailed one) looked like the following: {     “error”:     {         “code”: “RESTAPINotEnabledForComponentSharedMailbox”,         “message”:…

2

Office.js: MakeEWSRequestAsync throws “The request exceeds the 1 MB size limit. Please modify your EWS request”

One of my customer created Outlook Web add-in (Office.js) and when he calls mailbox.makeEwsRequestAsync method. But they got the following error “The request exceeds the 1 MB size limit. Please modify your EWS request”. At the app level, the developer is making the call from web add-in to create a mail item in drafts folder…


Get-UserPhoto cmdlet may throw UserPhotoNotFoundException

Based on my last Get-userphoto blogpost, if you run the Exchange Powershell then you may get the following error: Error on proxy command ‘Get-UserPhoto -Identity:’CN=svcadmin,OU=xxxx.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=xxxx,DC=xxx,DC=outlook,DC=com” to server xxxx.xxxx.xxx.outlook.com: Server version 15.20.xxxx.0000, Proxy method PSWS: Cmdlet error with following error message: Microsoft.Exchange.Data.Storage.UserPhotoNotFoundException: There is no photo stored here.    at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory,…


Understand more about Office.js, it’s add-in runtime environment and Internet Explorer protected mode!!

In addition to the earlier blog post, you can refer the following: – Microsoft Office addins using the Apps for Office platform are designed to run in isolation, using a low rights sandbox. – Several features, such as the task pane view, use web views provided using Internet Explorer APIs.  – To ensure these components…


Debug: Outlook office addin (apps for office) fails to load, errors out

Recently one of my developer customer reported that he designed a new Outlook addin (apps for office) which fails to load and it throws the error “This app could not be started. Close this dialog to ignore the problem or click “Restart” to try again.” During troubleshooting we noticed that this issue occur because protected…

4

Debug EWS subscription error – You have exceeded the available subscriptions for your account

Recently i was investigating an issue reported by an app developer. They created a custom EWS (Exchange Web Services) application which tries to open streaming subscription to Exchange Server 2013 using EWS. It worked fine for a while and later they noticed the following error: You have exceeded the available subscriptions for your account. Remove…

3

Debug: WebAPI/Web Service fails to hit Load Balancer when called from Outlook add-in

Recently i worked with this app developer, who created a custom Outlook add-in through which they try to make use of custom ASP.Net Web Service/Web API using REST call. This URL works fine from the browser on a machine running the Outlook with the Add-in installed. But it fails with the below error from within…