Friday, January 22, 2016

Application Error net::ERR_CONNECTION_REFUSED in Visual Studio Emulator

Hi All,

While i ran into an issue while running my Cordova App in the Visual Studio Emulator. After logging in to my office 365 tenant, I was getting the following error:

Application Error net::ERR_CONNECTION_REFUSED in Visual Studio Emulator

Given i have all app configuration have been set properly in Azure AD and my settings file in my cordova app (app is o365 connected).



The solution is to use Ripple emulator since it is a browser based emulator  that runs under port 4400. So once you switch your emulator to Ripple, you will be able to login to office 365 and redirect back to the redirect url.

Hope this helps.


No authUri provided nor found in O365Auth.authUri

Hi All,

While building an Apache Cordova app to integrate with Office 365  API. I connected my cordova app with office 365 by using Add -> Connected Service option in Visual Studio 2015. When i run my Cordova app try to login to office 365. I am getting the following error:

 No authUri provided nor found in O365Auth.authUri

I am using Microsoft.Office365.ClientLib.JS which allow developers to integrate with office 365 services.



The error because the Setting variable is not defined in O365Auth object. So add the follow code in o365auth.js file:


var O365Auth;
(function (O365Auth) {
    var Token = (function () ....)();
    O365Auth.Token = Token;

  //  define settings
    var Settings = {
        clientId: '6de88843-3a72-484c-af8d-3f26d2c3dd52',
        authUri: 'https://login.microsoftonline.com/common/',
        redirectUri: 'http://localhost:4400/services/office365/redirectTarget.html',
        domain: 'MostafaTenant.onmicrosoft.com',
        tenantId: '3323232-13e6-232323-a52a-323234423232'
    };

    O365Auth.Settings = Settings;


Run your project and the rest of your code will pull o365 settings :-)

Hope this helps.


Wednesday, January 13, 2016

Office Add-Ins development best practices


Office Add-Ins development best practices


In this video i am covering office add-ins development best practices. The video covers how to provide clear value for Office add-ins, UX principles, market your add-in, publishing strategies, monitor and optimize add-in performance. The video is covering what you need to do from the inception phase of creating an add-in till publishing add-ins to your customers.

 

If you would like to get to know more about "The basics of office add-ins", i have posted earlier another video for that here:

Thursday, January 07, 2016

Patterns and Practices in building Office Add-Ins

Hi All,

I'd like to share my presentation on Patterns and Practices in building office add-ins.

I am sharing the best practices to have successful Add-In listing in Office store.
In this presentation i cover the importance of using Fabric UI in developing User Interface elements in Office Add-Ins, Web Extensible Framework (WEF), Napa tools, Development best practices including: Value Prop, Marketing, UX, Optimization technique and security, Identity management in Azure AD, Publishing options, Graph API integration and VS project templates.




Hope it helps and keep hacking o365!

Tuesday, January 05, 2016

Can't see Office/SharePoint project templates in Visual Studio 2015 Update 1

Hi All,

I am writing this blog post to show how to get Office Developer Tools in Visual Studio 2015 Update 1. I used to have office dev tools and i was able to create Office Add-Ins earlier, but after i installed Update 1 for VS 2015. I am not able to see Office/SharePoint project templates.

When i searched for Office Developer tools, I got this link which is the main link for office dev tools:
https://www.visualstudio.com/en-us/features/office-tools-vs.aspx

After i installed these tools, and then restarted i was not able to see the project templates for office.

I kept searching until i found the solution and the needed components to install on your machine properly.

If you have VS 2015 Update 1, somehow these tools have been removed while installing latest bits of VS 2015 updates.

If you are using Windows 10, From the Cortana search type: Microsoft Web Platform Installer.

Install: Microsoft Office Developer Tools Update 1 for Visual Studio.




Or click on this link: aka.ms/GetLatestOfficeDevTools.

Open VS 2015 and you should be able to view Office/SharePoint project templates.



Enjoy!

Monday, January 04, 2016

Mastering Azure Architecture

Hi All,

I'd like to share a great resource for Architects, Engineers, Business decision managers on how to architect solutions at scale in Microsoft Azure.

The website contains architecture blueprints for architect solutions in 2D and 3D.


The website contains diagrams to build cloud solutions fast and scenarios that have been used to build various solutions in Azure so you can use those in building your solutions.


Website url: https://msdn.microsoft.com/en-us/dn630664.aspx 

Enjoy!