Add reference to Microsoft.SharePoint.IdentityModel.dll


Had trouble finding the above assembly to add reference to it. It wasn’t there in the 14 hive. The location where we can find it is

C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\

Bye.

SPUpgradeException Exception message: An error has occurred on the server.http://go.microsoft.com/fwlink?LinkID=96177


Hi I got the error while trying to open the SharePoint Site after applying the MOSS SP2 update to it.

This post was helpful in resolving that error

http://social.technet.microsoft.com/forums/en-US/sharepointadmin/thread/4cce44de-4b5a-4dcb-a369-be65654ff80e/

  • Nachrichten dieses Autors suchen

    Hi Guys

    I had the same problem. and i fixed it by going here
    http://www.microsoft.com/downloads/details.aspx?familyid=A49472F9-93E…

    download the file that matches your OS. ie x32 or x64
    If you try to run the file it will tell you the patch is already installed.
    but run the file with “/extract” extrace the file to someware and run
    “dw20w.msp”
    Let it do its thing. It takes a while……Then presto. well as least for
    me.

    Let me know how you guys go with it.

    Hope it helps!

Exception: Microsoft.SharePoint.Upgrade.SPUpgradeException: Sequence [Microsoft.SharePoint.Upgrade.SPConfigurationDatabaseSequence] cannot upgrade an object [SPConfigurationDatabase Name=””] whose build version [12.0.0.6219] is too old. Upgrade requires [12.0.0.6421] or higher.


Hi I got the error while trying to upgrade MOSS 2007 Content Database to SharePoint 2010.

http://blog.tallan.com/2011/03/29/upgrading-a-sharepoint-2007-content-database-to-sharepoint-2010/

The reason was the update requires that MOSS 2007 has the SP2 applied to it.

Check out this extremely helpful post

http://mosshowto.blogspot.com/2010/06/migrating-to-sharepoint-2010.html

Bye

Sample PowerShell Script for creating and deleting WebApplication and SiteCollection in SharePoint 2010


Sample PowerShell Script for creating a web application in SharePoint 2010

# add SharePoint Powershell snapin

add-PSSnapin Microsoft.Sharepoint.powershell

#define variables 

$WebAppName=”SharePoint – 120″

$WebAppPort=120

$WebAppUrl=”http://servername:port/”

$WebAppPool=”SharePoint – 120″

$WebAppPoolAccount=”domain\password”

$WebAppDatabaseServer=”servername\SHAREPOINT”

$WebAppDatabaseName=”WSS_Content_120″ 

new-SPWebApplication -name $WebAppName -url $WebAppUrl -ApplicationPool $WebAppPool -ApplicationPoolAccount (Get-SPManagedAccount $WebAppPoolAccount) -DatabaseServer $WebAppDatabaseServer -DatabaseName $WebAppDatabaseName    

write-host “New Web Application successfully created”

write-host “—————————————-”

write-host “Application name ” $webAppName -foregroundcolor Green

 

Sample PowerShell Script for deleting a web application in SharePoint 2010

$WebAppUrl=”http:/servername:port”

write-host “Begin Deleting Web Application at ” $WebAppUrl

write-host

Remove-SPWebApplication -Identity $WebAppUrl

write-host “New wEb Application successfully deleted”

Sample PowerShell Script for Creating Site Collection in SharePoint 2010

if($args)

{

$sitename=$args[0]

$siteurl=”http://servername:port/sites/” + $SiteName

write-host “Begin Creating Site Collection at ” $SiteUrl

write-host

$NewSite = New-SPSite -Url $SiteUrl -OwnerAlias Administrator -Template STS#1 -Name $SiteName

$RootWeb=$NewSite.RootWeb 

$RootWeb.Title=”Scripted Site -” + $SiteName

$RootWeb.Update()

write-host “New Scripted Site successfull created”

write-host “Title: ” $RootWeb.Title -foregroundcolor Green

}

else{
write-host “Error : You must supply parameter for site name” -foregroundcolor Red

}
 For Deleting the SiteCollection

if($args)

{

$sitename=$args[0]

$siteurl=”http://servername:port/sites/” + $SiteName

write-host “Begin Deleting Site Collection at ” $SiteUrl

write-host

Remove-SPSite -Identity $siteurl

write-host “New Site successfully deleted”

}

else

{

write-host “Error : You must supply parameter for site name” -foregroundcolor Red

}

 

Save the script files with the extension .ps1

To run them

./filename.ps1

Few other important PowerShell command (Get-Help, Get-Location, Set-Location)