Tuesday, July 29, 2014

Sharepoint 2013 App VS Solutions

Hi All,

Please refer to this link to get some useful information on SharePoint 2013 App development Vs Solutions.

Thanks,
Sachin K.


SharePoint 2013 on-line Breadcrumb

Hi All,

By default SharePoint 2013 doesn’t have a breadcrumb (like the 2010 version used to have). This was a very helpful feature to navigate back in your site and some users really miss it.

Actually its not totally removed from SharePoint but its hidden in SharePoint master page.

To restore it back, Open your site master page in SharePoint designer and search for following tag



Delete the CSS attribute style="display:none;"

Save the modified master page, check it in and publish the major version.

Thanks,

Sachin K.

Thursday, July 3, 2014

The database could not be exclusively locked to perform the operation.

Hi All,

While renaming sql server database if you get following error 
The database could not be exclusively locked to perform the operation. (Microsoft SQL Server, Error: 5030) that means your database is in multi-user mode.

To resolve this issue, you need to first set database single user mode 

ALTER DATABASE dbName
SET SINGLE_USER WITH ROLLBACK IMMEDIATE

Now, Rename the database using following command

ALTER DATABASE dbName MODIFY NAME = dbName_new

At the end, Set database mode to multi-user 

ALTER DATABASE dbName

SET MULTI_USER WITH ROLLBACK IMMEDIATE

Hope this will resolve your issue.

Thanks & Regards,
Sachin K.

Tuesday, July 1, 2014

Sideloading of apps is not enabled on this site

Hi All,

When you are deploying solution to SharePoint online environment and if you get the following error while deployment "Install app for SharePoint': Sideloading of apps is not enabled on this site."

This means that you need to enable sideloading first before deploying the app.

Refer to this link to see how to fix this issue.

Thanks,
Sachin K.


Tuesday, June 10, 2014

Error Skipping the uninstall step because the app for SharePoint is in an invalid state and cannot be uninstalled

Hi All,

Till yesterday, My SharePoint hosted app was working like a charm but today when I did some change in my app and tried to deploy it, visual studio started giving me following error

"Error 1 Skipping the uninstall step because the app for SharePoint is in an invalid state and cannot be uninstalled."

Don't know what happen at the back end but after spending some time I got following power shell command lines which does job for me.

$instances = Get-SPAppInstance -Web
$instance = $instances | where {$_.Title -eq ''}
Uninstall-SPAppInstance -Identity $instance

Hope, this will work for you as well.

Thanks,
Sachin K.



Tuesday, June 3, 2014

Creating Custom REST Web Service SharePoint 2013

Hi All,

Please follow this link which demonstrate how to create a custom WCF REST service for SharePoint 2013 without a Visual Studio template.

Thanks Mike for this wonderful post.

Thanks,
Sachin K. 

Tuesday, April 15, 2014

SharePoint 2010 Download all files as zip

Hi All,

Please refer below post if you need functionality to download all library items as a zip.

Its works like a charm for me.

http://junooni.wordpress.com/2011/09/29/download-multiple-file-as-zip-in-sharepoint-2010/

Thanks Shakir for this wonderful post.

Thanks,

Sachin K.

Wednesday, April 9, 2014

Search Scope on Content Types

Hi All,

Please refer below steps to configure search scope as Content Type

Go to central admin ->  General application settings - > Farm Search administrator->Search service application -> Click on the Metadata Properties



once click on OK wait for the scope to be created.

Once the scope is created then click on Index reset from the left panel and click on full crawl.

 
Thanks & Regards,
Sachin K. 

Friday, January 3, 2014

SharePoint Javascript get current user security group

Hi All,

Please find below sample script to get SharePoint security group name of current logged in user























Thanks,
Sachin K.