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.

image

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" ?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<App xmlns="
http://schemas.microsoft.com/sharepoint/2012/app/manifest" Name="ShopSAdmin" ProductID="{4813c773-d1b1-4ec6-8274-32f1152bd6b7}" Version="1.0.0.1" SharePointMinVersion="15.0.0.0" >

<Properties>
<Title>ShopSAdmin</Title>
<StartPage>~remoteAppUrl/Pages/default.aspx?{StandardTokens}</StartPage>
</Properties>

<AppPrincipal>
<RemoteWebApplication ClientId="*" />
</AppPrincipal>

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

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

image

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

/_layouts/15/AdminRecycleBin.aspx

image

/_layouts/15/RecycleBin.aspx
image

User , User Info , Site Permission related Urls

_layouts/15/permsetup.aspx

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

image

/_layouts/15/people.aspx?MembershipGroupId=0

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

image

User Information Hidden List Urls

/_catalogs/users/detail.aspx

/_catalogs/users/simple.aspx

image

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

/_layouts/15/userdisp.aspx?id={UserID}&Force=True

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

image

/_layouts/quiklnch.aspx

This is used to manage quick launch items in SharePoint.

image

/_layouts/15/AreaNavigationSettings.aspx

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

image

Workflow history hidden list

/Lists/Workflow%20History/AllItems.aspx

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

image

Site usage page

/_layouts/15/usage.aspx

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

image

Site content and structure pages

/_layouts/15/sitemanager.aspx
This will bring you site management page which is available from SharePoint 2007.

image

/_layouts/vsubwebs.aspx

List of heirachy pages

image

/_layouts/15/settings.aspx

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

image
/_layouts/15/viewlsts.aspx

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

Site and Site Collection feature management links

/_layouts/15/ManageFeatures.aspx
/_layouts/15/ManageFeatures.aspx?Scope=Site

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

image

SharePoint designer Settings

/_layouts/15/SharePointDesignerSettings.aspx

This is used to enable and disable SharePoint designer settings.

image

Look and Feel Urls

/_layouts/ChangeSiteMasterPage.aspx
This is used to change site collection master pages.

image
/_Layouts/AreaTemplateSettings.aspx

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

image
/_catalogs/masterpage/Forms/AllItems.aspx

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

image

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 http://abc.company.ae it may redirect to http://d.company .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 abc.company.ae and d.company.ae in same default zone in Alternate Access Mapping.

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