29 January 2016

Get-SPAppPrincipal/Register-SPAppPrincipal giving error

Today, I was running few PowerShell commands to configure server to server authentication for Federated Search.

I was following this URL - https://technet.microsoft.com/en-us/library/dn197169.aspx

While running following commands, I was getting error

Register-SPAppPrincipal -site $site.rootweb -nameIdentifier $sponameidentifier -displayName "SharePoint Online"

OR

Get-SPAppPrincipal -site $site.rootweb -nameIdentifier $sponameidentifier

Error was -

Get-SPAppPrincipal : We're sorry, we weren't able to complete the operation, please try again in a few minutes. If you
see this message repeatedly, contact your administrator.
At line:1 char:1

+ Get-SPAppPrincipal -site $site.rootweb -nameIdentifier $sponameidentifier
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...GetAppPrincipal:SPCmdletGetAppPrincipal) [Get-SPAppPrinc
   ipal], SPException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetAppPrincipal


I was not facing this problem when running same commands in a different SharePoint server.

Finally after lot of research and digging through ULS logs, I found the solution for that. I had created App Management Service Proxy earlier in the day on this new SharePoint server. When we create App Manager Service Proxy, it creates its own database which generally starts with name 'App_Managament_<GUID>'.

This database name can be found by going to Central Admin --> Backup & Restore --> Shared Services --> App Management Service Application.

My login id did not had permissions on this database. Once permission was granted, I was able to query this database via PowerShell commands and both my commands started working fine.

28 January 2016

SharePoint 2013 - SpSite.rootweb returns blank URL

Recently I was running few SharePoint PowerShell scripts for a SharePoint development project. I was using an existing web-application and site-collection created in my SharePoint development environment.

I ran following command to get root-web of my web application -

$site=Get-Spsite 'https://<my web application>/'
$site.rootweb

I got following output -

Url
----


This meant that there is no root site collection associated with my web application. However this was not the case.

Then I ran following command -

$site.allwebs

I got following exception -

The following exception occurred while trying to enumerate the collection: "Cannot open database
"<My content DB name" requested by the login. The login failed.Login failed for user '<My Login ID>'.".

I gave access to my login id on content database and again ran the command -

$site.allwebs

This time I got following exception - 

The following exception occurred while trying to enumerate the collection: "There is a compatibility range mismatch between the Web server and database "<My content DB name>", and connections to the data have been blocked to due to this incompatibility. This can happen when a content database has not been upgraded to be within the compatibility range of the Web server, or if the database has been upgraded to a higher level than the web server. The Web server and the database must be upgraded to the same version and build level to return to compatibility range.".

Finally after lot of research on internet, I found the solution - I need to give my App Pool identity access on my content DB as well.

Once this is done, it started working fine.

To cut long story short, always given access on content DB to following Ids -

  • Your Login ID which is used for running code or PowerShell scripts
  • App Pool Identity

Hope this helps.

18 January 2016

PluralSight - hack.summit()

PluralSight is organizing 2016 version of its virtual developer conference - hack.summit().

The event will be held between Feb 22-25, 2016.

Venue - Right at your desktop/laptop/tablet/mobile (Virtual event)

At this event, you can learn from best programmers in the world.

Participate in the hack over a weekend for a cash prize of $150,000.

To register for the event, use following link - https://hacksummit.org/


15 January 2016

Open Group - Hyderabad Event (18-19 Feb, 2016)

Open Group's Hyderabad event will be held on 18-19 Feb, 2016.

The even will highlight how enterprise architecture is paving the way towards India's economic and social transformation.

Participants will get a chance to understand how Enterprise Architecture, through E Pragati, is shaping the future of Andhra Pradesh and how IT4IT™ can be used to "Manage the Business of IT".

Venue -
Taj Deccan
Banjara Hills
Hyderabad
Telangana 500 034

Date and Timings -
February 18-19, 2016
9:00 AM - 5:30 PM (India Time)

Registration Link

Event Agenda

Fee Details

Additional Information





11 January 2016

Special Offer for AEA Members -Attend The Open Group San Francisco

AEA members receive a 25% reduction on the non-member fees by using the following code when registering for the event: SFO1601-AEA

This event will focus on how Enterprise Architecture is empowering companies to build better systems by architecting for digital business strategies.

Plenary presentations on the Customer Experience and Digital Technologies include:

The Battle for Owning the "Digital Spaces", Mark Skilton, PA Consulting
The Customer Experience Shall be Architected, Trevor Cheung, Huawei

Learn more about the new IT4IT™ Reference Architecture V2.0 Standard and hear Case Studies from Microsoft and Rabobank about how they are "Managing the Business of IT" in their organizations.

Listen to a panel discussion with ServiceNow, HPE, IBM and Microsoft on how IT4IT can be used in practice throughout the industry and how they plan to support this effort.

To register, follow this link

08 January 2016

Which JavaScript framework to use

Confused about which JavaScript framework to use for your next application.

Try out this link to get help in clearing the confusion -

http://www.funnyant.com/choosing-javascript-mvc-framework/


04 January 2016

Open Group - Webinars for Jan 2016

Succeeding in the Customer Age - Using Enterprise Architecture to Innovate
Date:12 January, 2016 @ 16.00 (GMT)
Speakers: Alain-Gabriel Gomaine (Mega International), Antoine Lonjon (Mega International)


IT4IT™ - the Detect to Correct IT Value Stream
Date:14 January, 2016 @ 16.00 (GMT)
Speakers: Chris Davis (University of South Florida), Dwight David (HPE)


Date:19 January, 2016 @ 17.00 (GMT)
Speakers: John Bell (Ajontech), Peter R. Maloney (Raytheon), Somasundram Balakrushnan (Salesforce), Ovace Mamnoon (HPE), Chris Harding (The Open Group)


Date:20 January, 2016 @ 17.00 (GMT)
Speakers: Clive Curtis (Huawei), Mark Skilton (PA), Werner Watschke (Salesforce), Chris Harding (The Open Group)