SharePoint 2010 to SharePoint 2013 Upgrade
Step By step
Step1:
1.Backup Content Database of SharePoint 2010 from
Sql Server Management 2008 R2
1.Open Sql Server Management 2008 R2
2.Right Click on your Content
Database
3.Task
4.backup(Save as DatabaseName.Bak)
2.convert all your WSP solutions in 2013 from
2010
a.Open Visual
Studio 2012
b.Edit yours
.csproj file and add to it ->
<TargetOfficeVersion>15.0</TargetOfficeVersion>
c.Reload the
project again
d.In
webpart.cs file,change the path of user control for eg :
private const string _ascxPath = @"~/_CONTROLTEMPLATES/15/SolutionName/Webpart/WebpartUserControl.ascx";
e.open WebpartUserControl.ascx
source code and change all 14.0.0 references to 15.0.0
f.Double Click on
Packages and change the Product Version to 15.g. Right Click On your Project and Choose Properties. in Application Tab Choose Target FrameWork as 4.5
h. Click On build tab and Choose Platform Target As x64.
g. Publish it and
save WSP (Example.WSP) on Your Storage Location.
4.Deploy all the custom WSP's on Your Web Application
Step 2:
1.Create New Web Application
in SharePoint 2013(Don't create Site Collections)
Step 3:
Restore Your Database(DatabaseName.Bak)
a. Go To Sql Server Management 2012
b. Right Click On Database on top
c.Restore
d. Select your DatabaseName.Bak from Disk and start Restoring
Restore Your Database(DatabaseName.Bak)
a. Go To Sql Server Management 2012
b. Right Click On Database on top
c.Restore
d. Select your DatabaseName.Bak from Disk and start Restoring
Go to Powershell and
Type
Test-SPContentDatabase -Name WSS_Content_DataBName -WebApplication http://WebApplName:90
(Change WSS_Content_DataBName with You DataBase Name and http://WebApplName:90 with Your WebApplication Name)
This will Test your database with webApplication.It will throw Warnings like Your New Web Application is claim Based etc
Note: By default 2013 is claim based and SharePoint 2010 is Classic Windows Authentication.
You can convert your New Web Application to Classic Windows Authentication using Powershell
Step 4:
Use Powershell ISE 64 bit or SharePoint 2013 Management Shell and type the following as it is
cd "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\BIN\"
Then Type the following
stsadm .exe-o addcontentdb -url http://WebApplName:90 -databasename WSS_Content_DataBName
OR
Run the below powershell command
Mount-SPContentDatabase "WSS_Content_DataBName" -DatabaseServer "SQLSERVER2012" -WebApplication http://testSite
If everything is fine, Operation will Complete Successfully Otherwise it will throw some errors.
Step 5:
Open your new Web Application In browser if Operation Completes Successfully.
Your Web Application Will Look Similar to the SharePoint 2010 .
Click On start Now button On Top in Red and follow The steps.
Refresh it Several Times and Your web Application will get Ready if It doesn't throw Any error.
If there are any errors, rectify those and follow the start process again in web browser.
Get-PSSnapin | Where { $_.Name -eq "Microsoft.SharePoint.PowerShell"})
) {
Add-PSSnapin Microsoft.SharePoint.PowerShell;
}
$WebAppName = "https://TestSite/"
$wa = get-SPWebApplication $WebAppName
#Final step is to trigger the user migration process
$wa = get-SPWebApplication $WebAppName
$wa.MigrateUsers($true)
No comments:
Post a Comment