.NET Questions and Solutions

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries Tagged ‘SharePoint’

Error when you use the SharePoint Migration Tool to try to restore a Windows SharePoint Services Web site: “Error getting manifest for http://localhost (fatal)”

Symptoms
When you use the Microsoft SharePoint Migration Tool (Smigrate.exe) to try to restore aMicrosoft Windows SharePoint Services 2.0 Web site, the restore operation fails. You also receive the following error message:

Error getting manifest for http://localhost (fatal)Progress: An error occurred accessing your Windows SharePoint Services site files.This issue occurs after you use Smigrate.exeto back up a Windows SharePoint Services 2.0 Web site.
Additionally, when you rename the Backup.fwp file to Backup.cab to view the contents of the backup file, the Manifest.xml file is 0 bytes.
Resolution
This problem typically occurs on Windows SharePoint Server 2.0 Web sites if one of the following conditions is true:The Web sitecontains many lists.The Web site containslists that have large items.The Web site backup contains many files.Note Only file metadata is stored in the Manifest.xml file. The files are exported separately.
During the backup process, two contiguous memory blocks are required to create the Manifest.xml file. The memory blocks must be large enough to accommodate the manifest data. If one sufficient memory block is available to create the Manifest.xml file but a second sufficient block is unavailable, the copy operation fails silently. Then, a Manifest.xml file that is 0 bytes is created.

Error message when you try to use the SharePoint Products and Technologies Wizard: “Exception: System.ArgumentException: Error during encryption or decryption”

Symptoms
Consider the following scenarios:Scenario 1
You install Microsoft Windows SharePoint Services 3.0, and then you install Microsoft Office SharePoint Server 2007. Then, you remove SharePoint Server 2007.Scenario 2
You install Windows SharePoint Services 3.0, and then you use Add or Remove Programs to removeWindows SharePoint Services 3.0. Then, you reinstall Windows SharePoint Services 3.0.Scenario 3
You install Windows SharePoint Services 3.0 in a stand-alone farm environment. You use the SharePoint Products and Technologies Wizard (PsconfigUI.exe) or Psconfig.exe from the command line to leave the stand-alone farm. Then, you use SharePoint Products and Technologies Wizard or Psconfig.exe from the command line to rejoin the farm.In these scenarios, the next time that you try to run the SharePoint Products and Technologies Wizard, you receive an error message that resembles the following:

10/09/2006 14:08:268ERRTask configdb has failed with an unknown exception 10/09/2006 14:08:268ERRException: System.ArgumentException: Error during encryption or decryption. System error code 997.at Microsoft.SharePoint.Administration.SPCredentialManager.DecryptWithMasterKey(Byte[] rgbEncryptedPassphrase)at Microsoft.SharePoint.Administration.SPEncryptedString.GetSecureStringValue()at Microsoft.SharePoint.Administration.SPEncryptedString.get_SecureStringValue()at Microsoft.SharePoint.Administration.SPProcessIdentity.get_SecurePassword()at Microsoft.SharePoint.Administration.SPApplicationPool.Provision()at Microsoft.SharePoint.Administration.SPWebServiceInstance.Provision()at Microsoft.SharePoint.Administration.SPFarm.Join()at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()
Resolution
This issue occurs if theNetwork Service account is used as thefarm account. In this situation, when you remove Windows SharePoint Services 3.0 from a stand-alone farm, or when you remove SharePoint Server 2007 from aWindows SharePoint Services 3.0 farm environment, the followingregistry subkey that is used to encrypt passwords that are contained in the Windows SharePoint Services 3.0 configuration database (configdb) is deleted:
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\12.0\Secure\ FarmAdmin\Therefore, when you try to join a Web application that exists in the configuration database that does not use the Network Service account, the Web application account credentials cannot be decrypted. This occurs because the required registry subkey is deleted.

Error message when you try to restore a Windows SharePoint Services 3.0 Web site: “The site collection could not be restored. Please make sure the content databases are available and have suffici …

Symptoms
When you use the Stsadm.exe command-line tool to try to restore aMicrosoft Windows SharePoint Services 3.0 Web site on a computer that is runningWindows SharePoint Services 3.0, you receive the following error message:

The site collection could not be restored. If this problem persists, please make sure the content databases are available and have sufficient free space.
Resolution
This issue occurs if the computer that is running Windows SharePoint Services has insufficient free disk space that is available to host the restored Windows SharePoint Services Web site.This issue may also occur if the Windows SharePoint Services database has reached its maximum allowed size.