Wednesday, July 18, 2012

The SDDL string contains an invalid sid or a sid that cannot be translated SharePoint 2013



Here is the one more issue with the installation of SharePoint 2013.

The SDDL string contains an invalid sid or a sid that cannot be translated

When you run with sharepoint 2013 installation majorly you will get with 2 issues.

1. Service running under Network Service account in workgroup environment is not supported

Solution for this is explained in the preious post you can find it here

2. The SDDL string contains an invalid sid or a sid that cannot be translated

Solution this is :

To fix this error, login with your Administrator account and create a search service user and add them to the WSS_ADMIN_WPG group.

To do this :

1. Open SharePoint 2013 PowerShell

2. Paste the below code

$SearchServ = Get-Credential [Your Search Account]

New-SPManagedAccount -Credential $SearchServ 


After executing these steps you need to do one more thing.

Go to "C:\Program Files\Microsoft Office Servers\15.0\Data\Office Server" in your server and find the

folder that starts with "Analytics" this looks something like Analytics_GUID

NOTE: If you find multiple Analytics folder choose the latest one.

Right click properties on the folder -> Sharing -> Advanced Sharing

Check the Share this folder check box and leave the name alone and click on permissions..

Here leave the Everyone as Read only ( Default )

Then Add the Search Service Account user you created and give Full Control

Then Add WSS_ADMIN_WPG group and give the Full control for this also.

3. After this try running the configuration wizard it will run seccuesfully..

Njoy SharePoint 2013

Thank you !!

Service running under Network Service account in workgroup environment is not supported SharePoint 2013



Here is the one of the strange issue you will be getting when you install SharePoint 2013 Preview version.

Service running under Network Service account in workgroup environment is not supported

This one is pretty easy to interpret and get around since you really only need to change where AppFabric is running.

So, The resolution for this error is :

1. Open SharePoint PowerShell

2. Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\BIN

NOTE : SharePoint 2013 is using 15 hive folder in installation ( You have older 14 hive also )

3. psconfig.exe -cmd Configdb create SkipRegisterAsDistributedCacheHost 


Run the above script and you will be proceed with the installation. After this Error fixed you will be come up with the new issue Service running under Network Service account in workgroup environment is not supported This also i have explained in the other post find here

Thank you !!

Install PDF IFilters for Sharepoint ( Not able to search pdf content in search results )

Here is the one more article on SharePoint where i cannot able to retrieve the content of the PDF file in search results.

Please find the below steps to get it done.

1) Install PDF iFilter 9.0 (64 bit) from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025

2) Download PDF icon picture from Adobe web site http://www.adobe.com/misc/linking.html and copy to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES\

3) Add the following entry in docIcon.xml file, which can be found at: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML within tags

4) Navigate to CA -> Manage Service Application -> Search Service Application, Add pdf file type on the File Type page

5) Open regedit

6) Navigate to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office Server\14.0\Search\Setup\ContentIndexCommon\Filters\Extension

Right-click > Click New > Key to create a new key for .pdf

7) Add the following GUID in the default value {E8978DA6-047F-4E3D-9C78-CDBE46041603}

8) Restart the SharePoint Server Search 14

9) Reboot the SharePoint Server

10) Perform FULL crawl to get search results

Thank you !!

sharepoint code to get SPUser from username string

String UserName= “Srikanth Kancharla”;

SPUser User= SPWeb.EnsureUser(UserName);

SPWeb.EnsureUser(): This mehtod will checks whether the specified user name belongs to a valid user of the website, and if the logon name does not already exist, adds it to the website.

Tuesday, July 17, 2012

SharePoint 2013 download

Hi Friends,

As of now we are working with Sharepoint 2010 and it's time to check with SP2013 preview version.

This is the preview version for Sharepoint 2015.

Lot of new features added in this version and also good upgrades are added in Sharepoint 2013

Here you can find the download link for SP 2013 Preview

SharePoint 2013 Preview

Lots of new features added in SP 2013 and also App store is also available in SP 2013

Microsoft Rocks !!!

Monday, July 16, 2012

rename sharepoint farm server

There are some situations where we need to rename the sharepoint server once everything is configured and working.

We have 2 options to do this

1. Using Powershell

2. Using STSADM

STSADM :

1. Go to Computer properties and change the name of the computer

2. Open command prompt and go to 14 hive folder using STSADM utility execute the following command.

stsadm -o renameserver -oldservername -newservername

3. Open central administration from the IIS and change the alternate access mappings of Central admin site and any other existing site ( Change the url from Old Server name to New Server name ).

4. Restart server and check for Central admin site

POWERSHELL :

1. Open Sharepoint powershell command and execute the following command

Rename-SPServer [-Identity] -Name

2. Go to Computer properties and change the name of the computer

3. Open central administration from the IIS and change the alternate access mappings of Central admin site and any other existing site ( Change the url from Old Server name to New Server name ).

4. Restart server and check for central admin site

NOTE : 1. If anything goes wrong with this process after restarting machine please run the Sharepoint wizard once to fix the issues automatically. 2. If you have multiple servers in the farm repeat the same steps for all the other servers.

Thank you !!!

Monday, July 9, 2012

Sharepoint model dialog from ribbon button



Here i am going to explain how to open model dialog box from ribbon button control.

1. Create empty sharepoint project either with sandbox or farm solution.

2. Add feature for the solution and add Empty element file for that as show below :















3. Now your solution will looks something like this.

















4. Add this below given peace of code in Elements.xml file :





  
    
      
        
          
Here you can modify your code and test the application according

As per the testing purpose i am taking Task list template so, this peace of code will work only with Task list template. If you need this for the other templates you need to change the template number

5. Final verification is to check wether the Element file is attached to feature and the feature is added to the solution.

do this verification as below :

a. Double click on .Feature file name and check the referenced ELements file is listed there or not :

















b. Double click on Package and check our package is listed under the packages section.

6. Finally deploy the solution and create a list with Tasks template and click on Items tab, There you will find the new button "Open model popup"

















7. Click on that button you will get Settings.aspx model popup page.

















Here for demo purpose i am using default settings page. In real time you can change this on fly.

Thank you !!!