Wednesday, April 8, 2015

SharePoint error-The password supplied with the username was not correct.

Few days back when I am trying to create a web application in SharePoint 2010 I got the below error. The error message is:

The password supplied with the username was not correct. Verify that it was entered correctly and try again.

Also you can check out my previous posts on:

Attach event receiver to list in SharePoint 2010

New master pages in SharePoint 2013

File Not Found error in SharePoint 2010

After getting the above errot, I remembered I have changed my password recently. So now we need to update the password also.

Step-1:
For this Open the command prompt. Then navigate to
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN and then type stsadm -o updatefarmcredentials -userlogin <domainusername> -password <newpassword>

Click on enter

It will give you message as "Operation completed successfully." if successfully executed as shown in the figure below.




Step-2:
In the next step do an IISRESET and then try creating web application, it will work fine.


Tuesday, April 7, 2015

SharePoint 2010 to SharePoint 2013 Migration Step by Step

Migrate SharePoint 2010 to 2013

SharePoint 2013 is Microsoft's new SharePoint version (at the time of this writing) and boasts some pretty cool features. In this post, we will migrate from a Windows Server 2008 with SharePoint 2010 to a Windows Server 2012 with SharePoint 2013. This migration involves 'cookie cutter' SharePoint sites: We are going to assume you have SharePoint running on SQL Express in a single server farm and that your site collection resides in the default WSS_Content database. If you have a more complex scenario, you can still use this guide as a framework, you will just need to make the necessary adjustments.
The Server 2008 with SharePoint 2010 will be referred to as the source server and the Server 2012 with SharePoint 2013 will be referred to as the target server. In summary, here are the steps we will perform:
  • Set up a Windows Server 2012 server with SharePoint 2013 farm
  • Copy the SharePoint 2010 Database to the target server
  • Attach and Upgrade the content database
  • Upgrade the Site Collection
Set up Server 2012 Server and a SharePoint 2013 Farm
Set up Server 2012 and install SharePoint 2013 on the target server and configure a SharePoint 2013 farm. When you create your Web application and site collection, make sure that you create the same type of site, the same port and the same authentication method as the source site.
Copy the SharePoint 2010 Database to the Target Server
Next, open SharePoint Central Administration on the source server and navigate to Application Management > Manage Content Databases. Locate the database pertaining to your Web application.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint21.png
From a command prompt, type net stop mssqlserver to stop the SQL Server service.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint22.png
Locate the database in your file system. It should be in C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint23.png
Copy both the content database as well as the log file to a removable disk. Once database and log files have been copied, open a command prompt and type net start mssql to restart the SQL Server service.
Detach the SharePoint Database from the Target Server
Since the database we are moving is named WSS_CONTENT (the Default) we will need to detach and rename the old database from the target server. Note: Make sure your target server is not a production server with a Web application utilizing the WSS_CONTENT database before detaching it. We will assume for this exercise that you have a newly installed SharePoint 2013 and have created a new Web application.
Log in to your target server's SharePoint application management and click Manage Content Databases.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint24.png
Look under database name and click on the WSS_Content database link. Place a checkmark in Remove Content Database.

http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint25.png
Acknowledge the warning after you have read it.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint26.png
Click OK to remove the default content database (WSS_CONTENT). The content database should not up for the Web application.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint27.png
From the target server, open SQL Management Studio 2012. If you don't have it, you can download it from here.
Open SQL Management Studio and Expand databases.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint28.png
To detach the old database from SQL, right click on WSS_CONTENT and select Tasks > Detach
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint29.png
Place a checkmark in Drop and click OK to detach the database.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint210.png
Navigate to C:\Program Files\Microsoft Office Servers\15.0\Data\MSSQL10_50.SHAREPOINT\MSSQL\DATA and rename WSS_CONTENT to WSS_CONTENT_OLD and rename WSS_CONTENT_log to WSS_CONTENT_log_OLD.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint211.png
Attach and Upgrade the Content Database on to the Target Server
Copy the source database and log files to the following folder on the target server:
C:\Program Files\Microsoft Office Servers\15.0\Data\MSSQL10_50.SHAREPOINT\MSSQL\DATA
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint212.png
Open SQL Management Studio 2012. If you don't have it, you can download it from here.
Right click on databases and select attach.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint213.png
Click on the add button, locate the database and click OK to attach it.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint214.png
Note: If you are migrating from a different domain, expand the database and in Security > users grant DBOWNER privileges to a user account or administrative account in the new domain.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint215.png
On the target server, open SharePoint 2013 Management Shell.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint216.png
From the SharePoint 2013 management Shell, execute the following command:
Mount-SPContentDatabase -Name DatabaseName -WebApplication URL

This command will mount the database and upgrade it to SharePoint 2013.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint217.png
Enter your site and verify that it's working. You may notice that it still looks like SharePoint 2012. That's because we have not yet upgraded the site collection.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint218.png
Once you verify that the site is working, go to Central Administration > Application Management > Configure Alternate Access Mappings and change the default URL to the live URL of your Web site; alternatively, you can extend your Web site.
Once you make the port forwarding and/or DNS changes (if necessary), your newly migrated site will be live!
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint219.png
Upgrade the Site Collection
The final step is to upgrade the site collection. Before proceeding with the site collection upgrade, create a backup or a snapshot of the SharePoint 2013 server in case the fecal matter impacts the thermantidote.
From the Web site, click site actions > site settings. In the site collection administration menu, click on the site collection upgrade link.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint220.png
Click on the upgrade this site collection button.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint221.png
The upgrade process will begin.
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint222.png
When done, click on take me to the new siteWelcome to SharePoint 2013!!!
http://www.falconitservices.com/support/KB/Lists/Photos/020413_0723_SharePoint223.png




Google+ Followers