Tag Info

New answers tagged

1

You can use PowerShell to identify the feature. Get-SPFeature | Where-Object { $_.DisplayName -like "Excel*" } You can disable feature using Disable-SPFeature –identity "ExcelServerEdit" -URL http://webapp


0

A better way to solve this without adding force is after the error happens, just leave the wsp there with the error in CA, open the SharePoint Management Shell and use the update-SPSolution command with the path of the wsp file you just added to deploy, it should also deploy itself after the update. Update-SPSolution -Identity "name wsp" -LiteralPath "path ...


0

Running the below PowerShell script fixes the issue, you need to change the site url in line 01. The script is actually looks for the pages library in the site for which url is given and assigns the ID of the pages library to the __PagesListId property. $web = get-spweb http://site-collection/path-to-affected-site $correctId = $web.Lists["Pages"].ID ...


0

The best practice is to Create a Visual Studio Solution. Then add your page layouts and other styling files. Create a feature receiver Use that to set the Page or create new page using the custom layout etc. For existing site, you can deploy the solution and then use PowerShell to activate it on all the sites.


0

Try deactivating and activating publishing feature stsadm -o deactivatefeature -name PublishingWeb -url http://siteurl -force iisreset stsadm -o activatefeature -name PublishingWeb -url https:/siteurl iisreset


0

You should first activate the SharePoint Server Publishing Infrastructure feature at the site collection level, then on the site level. See the detailed solution here.


0

You can try below code : using (SPSite site = new SPSite("Your siteurl")) { using (SPWeb web = site.OpenWeb()) { web.AllowUnsafeUpdates = true; SPList list = web.Lists["Your listName"]; SPListItem item = list.Items.Add(); item["Name"] = txtName.Text; ...


1

You can try like below : SPListItem itemToAdd = list.Items.Add(); itemToAdd["Title"] = "Test Title"; itemToAdd["Description"] = "Test Description"; itemToAdd.Update();


1

Try doing: item.Update() instead of: list.Update()



Top 50 recent answers are included