stsadm command to add and delete solution
To add a solution:
stsadm -o addsolution -filename webpartabc.wsp
To delete solution:
stsadm -o deletesolution -name "webpartabc.wsp" -override
AT - SharePoint |
we are SharePoint-ers |
To add a solution:
stsadm -o addsolution -filename webpartabc.wsp
To delete solution:
stsadm -o deletesolution -name "webpartabc.wsp" -override
Apparently, files and folders that were created or uploaded to a SharePoint site cannot exceed the allowed limit for path length, which is 260 characters.
Here is an example:
http://www.mysite.com/folderA/folderB/filenameABC.doc
- SharePoint will count the characters starting from folderA and exclude the domain name. In this case there are 31 characters
Here is how you can check to the total number of characters for your folders and files in SharePoint:
- Run the following SQL Script
SELECT LEN(DirName + 'N/' + LeafName) AS Total, DirName, LeafName
FROM AllDocs WITH (NOLOCK)
ORDER BY Total DESC
This happened to me after I tried to restore few sites with their content databases from CA. The restoration failed but the content DBs were created in SQL Server but were not displayed in CA. I simply deleted those databases from SQL Server. Unfortunately, this caused me not being able to create a new content DB with the same name from CA. The error message was
You would probably encounter this error when you restore a backup copy of your site that was still on WSS 3.0 or MOSS 2007 SP1 to a farm with SP2 installed.
Upgrade your SharePoint from SP1 to SP2 by following the necessary/required steps. Backup the site again and do the normal restore procedure.
Here are the steps to see the actual exception details:
1. Restore MySite from Central Administration
2. Restore SSP from Central Administration
a. After a successful restore, go to your SSP site
b. Go to My Site settings
c. Point the Personal site provider to the restored MySite earlier
d. Correct all the other SSP settings and configurations to point to the new server farm
e. Test MySite and ensure everything including user profiles have been imported successfully into the new server farm
3. Repeat the following steps to restore all site collections:
a. Add a new content database in Central Admin->Application Management
b. Use the following command to restore site collection
i. stsadm –o restore –url http://yoursite/sitecollectioname -filename yourfilename.dat
c. add –overwrite switch at the end if there is an existing site collection
4. Install (deploy & activate) custom solutions on WFE servers
5. Install (deploy & activate) external libraries to Global Assembly Cache (GAC)
6. Restore the following specific folders and files in Web Front End servers from backup:
a. 12 Hive\TEMPLATE\CONTROLTEMPLATES
i. Custom web user control files (.ascx) are located here
b. 12 Hive\TEMPLATE\LAYOUTS\1033\STYLES
i. Custom style sheets (.css) are located here
c. 12 Hive\TEMPLATE\THEMES
i. Custom themes (CUSTOMBLUE) are located here
d. 12 Hive\TEMPLATE\LAYOUTS\1033\spthemes.xml
i. Custom themes folders added in (c.) shall be configured in this configuration file
7. Restore IIS metadata and configuration files from backup:
a. C:\inetpub\wwwroot\wss\VirtualDirectories\portnumber
b. In each of the portnumber folder, the following need to be backed up
i. web.config file
ii. global.asax file
iii. _app_bin folder
iv. Bin folder
If you see this error after a successful restore of a site collection, check your SQL Server remote connections settings:
If you get OnPostRestore error during restoration process in SharePoint, one of the things that you might need to do is to clear SharePoint cache