Thursday, February 16, 2017

You are being redirected to the following url that was not registered as the app launch url

“You are being redirected to the following url that was not registered as the app launch url https://xx?SPHostUrl=xx&SPLanguage=enSPClientTag=0&SPProductNumber=xx&SPAppWebUrl=xx&{AppContextToken} If you trust this url, click here to proceed to the app now. Otherwise go back to the previous page or close this page."

It is common that you may have encountered this kind of an error when you are accessing an App that you have developed and published to the SharePoint 2013.

There can be many deep reasons behind the message such as

  • Not provisioning the app web correctly
  • Errors on App management service

But most of the time it is because of not registering your app in the SharePoint.

You can simply follow following steps to register your app in the current SharePoint site.

First go to Appreg.aspx page which used to register the app in http:// xxx/_layouts/15/Appreg.aspx. Then you will find a following interface where you can register your app with SharePoint.


But you need to make sure the values you are entering is matching with the AppManifest.xml in your solution.

<?xml version="1.0" encoding="utf-8" ?>
<App xmlns="" Name="ShopSAdmin" ProductID="{4813c773-d1b1-4ec6-8274-32f1152bd6b7}" Version="" SharePointMinVersion="" >


<RemoteWebApplication ClientId="*" />

<AppPermissionRequest Scope="
http://sharepoint/content/sitecollection" Right="Manage" />

Wednesday, December 14, 2016

Add-SPSolution : Operation is not valid due to the current state of the object.

Add-SPSolution : Operation is not valid due to the current state of the object.

At line:1 char:1

+ Add-SPSolution

+ ~~~~~~~~~~~~~~

+ CategoryInfo : InvalidData: (Microsoft.Share...dletAddSolution:

SPCmdletAddSolution) [Add-SPSolution], InvalidOperationException

+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddSolutIon

I have received this error when I’m trying to deploy an .wsp file to the SharePoint farm using PowerShell Scripts.

It’s kind of unusual the error I have got but


IIS reset

Solved my problem.

Wednesday, December 7, 2016

Default SharePoint 2013 / 2010 System Pages where you should takecare when you go online

There are list of SharePoint System Pages which inheriting view permission by default. If you are going to make public SharePoint site , you might not want to access these pages by anonymous users or by Form Based Authentication User.

There are may ways to restrict the users access to these pages that I will explain later in a different post.

Below I’m listing down pages ; those are available in each site under layout mapping.

Site Collection and Site Level Recycle Bin Urls




User , User Info , Site Permission related Urls


This is used to create default groups in SharePoint such as visitors, members and owners.



All People Url , This can be even used to delete users from the site collection


User Information Hidden List Urls




These lists are actually available from previous version of SharePoint. These are hidden lists available in the SharePoint containing user information.


This is used to view user information in the same page without redirecting to my site.



This is used to manage quick launch items in SharePoint.



This is used to modify navigation setting in the site collection.


Workflow history hidden list


This is hidden list for manage and view workflow  history items.


Site usage page


This is used to view the usage information. but nothing harmful.


Site content and structure pages

This will bring you site management page which is available from SharePoint 2007.



List of heirachy pages



This is the site setting page that contains all administrative links.


This is used to view all site contents. List’s visibility if this page can be hidden using SharePoint designer.

Site and Site Collection feature management links


These links are used activate and deactivate features in site and site collection.


SharePoint designer Settings


This is used to enable and disable SharePoint designer settings.


Look and Feel Urls

This is used to change site collection master pages.


This is where user can change Page Layouts, Site Templates and other related settings.


This is main document library for update and maintain related files and master pages


Sunday, October 30, 2016

SharePoint 2013 Automatically Redirects to another Mapping


There are multiple reason for this behavior of your sharepoint farm. exclusing all other DNS mapping and firewall and proxy configurations there might be a problem in SharePoint Access mapping that will cause the this behaviour.

Furthur descrbing the issue…

when you type it may redirect to .ae ; the second address also you wanted and imagine its in AAM.

This behaviour is tottaly because of Aulternate Acess mapping , where you have put and in same default zone in Alternate Access Mapping.

so just delete one entry from Default Zone and put it to another Zone.