Friday, June 9, 2017

“List 'User Information List' does not exist at site with URL” exception for users with member permission


I was using SharePoint rest api in order to retrieve all the departments through user information list.


I was using

_spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('User Information List')/Items?$select=Department";

for the rest query. When I logged in as a site collection administrator, I got expected results.

But when I logged in as a site member I got the below exception.

List 'User Information List' does not exist at site with URL '<site url>'. 

List 'User Information List' does not exist at site with URL


Instead of using the above I used the below url and I got the expected results for users with the member permission as well.

_spPageContextInfo.webAbsoluteUrl + "_api/web/SiteUserInfoList/items?select=Department"

Wednesday, April 12, 2017

Convert SharePoint Online based SharePoint Hosted Add-in to SharePoint 2013 On premises based one


We used SharePoint Online based template in Visual Studio 2015 in order to develop SharePoint hosted add-in.


Our client’s requirement is to deploy it in the SharePoint 2013 On premise. So we had to convert the solution.


Step 01:

  • Right click on AppManifest.xml and click on View Code.
  • Then change the SharePointMinVersion to


Step 02:

  • Double click on on Package.package under Package folder.
  • There you will find SharePoint Product Version. Change it to 15.0.




Now you can publish the solution and deploy to SharePoint 2013 On premise.


Sunday, January 1, 2017

PowerApps for iPhone

Wishing you a Happy New Year with the hope that you will have many blessings in the year to come.

These days I was looking into PowerApps and I installed PowerApps app from iTunes in order to test PowerApps.

Step 01

Search PowerApps in iTunes and Get It.


Step 02

Your screen will be looking something like below. Sign in with your Office 365 account.



Step 03

Once you login you can see all the apps which you have the permission for.


Then you can navigate through the apps and can use them.




I’m looking forward to write more on PowerApps in upcoming days.

Wednesday, December 28, 2016

Save my email attachments to a SharePoint document library using Microsoft Flow


I was trying Microsoft Flow and I thought of sharing how I did my first Flow App using the template provided by Microsoft.

The template I’m using is “Save email attachments to a SharePoint document library”.


Step 01

Go to and find the “Save email attachments to a SharePoint document library” using the search box or by navigating through all template.


Step 02

Click on the app and you will get a screen as below. Then you have to select “Use this template” option.

MicrosoftFlow1 (1)

Step 03

Click Sign In and then use your Office 365 username and password.

MicrosoftFlow1 (2)

Step 04

The template will be created for you as below.

MicrosoftFlow1 (3)


Step 05

Select Inbox for the folder option. You can select the Inbox by clicking on folder icon.

MicrosoftFlow1 (4)


Step 06

Site URL: Provide the SharePoint site URL

Folder Path: Give the name of the document library where you would like to store the attachments.

File name: You can give any dynamic value or static value. Please note that you can’t store two documents in the same name. So please make sure the name is dynamic.

File Content: Select “Content”

MicrosoftFlow1 (5)

Step 07

Click on “Create Flow” from the top.

MicrosoftFlow1 (6)


Send a mail with attachment and check your SharePoint Document library. There you can find the attachments.


Friday, September 9, 2016

"Your domain doesn't match the expected domain for this app deployment." issue in provider hosted add-in


One of my friend had an issue after deploying his provider hosted add-in in SharePoint on premise environment. He was not able to access list data from the add-in web of the Add-in. I looked at the code and the error was something as below.



Step 01

Get the add-in id by navigating to


App identifier was something like the below and the text which was bolded will be the add-in id.


Step 02

Get the App Domain by going to below url and giving the add-in id which we got from the above.


Step 03

My observation was that the App Domain which was given during registering the add-in was different from the url where the add-in has been hosted.

So, I registered the add-in again in the SharePoint site with the correct IIS host header and redeployed the add-in; which lead to work perfectly.


Thursday, March 31, 2016

“The attribute 'autoeventwireup' is not allowed in this page” issue in SharePoint 2013


Recently we deployed two wsp solutions in an environment. One wsp consists of master page and the other one consists of a site page with code behind where I use events like onclick and all.

After the deployment when I try to access the aspx page we got the above error.


Solution 1.

Remove the code behind file and create a web part and add the web part in the page.You can see my blog post on how to create site page without code behind.

Solution 2.

Go to Site Settings page, under the Site Action section, click Reset to site definition.


Then give your page url and click Reset.


Check your page.

If its still the same give your master page url (which ends with .master) and repeat the above step.

Now your page should work fine.

Tuesday, February 23, 2016

Facebook template is not found in Visual Studio 2015

Problem Background

Today I thought of creating a Facebook app using Facebook template which was available in Visual Studio 2013. Shockingly the template was not available once I select ASP.Net Web Application template and click OK (Screen shot attached).



Then I got to know by searching online that there is a new extension has been released for ASP.Net project templates.

Check out the below link and install the Visual Studio 2015 Extension for ASP.NET Project Templates.

PS: I directly downloaded the extension from the below url and installed it.