Tag Info

New answers tagged

0

Ideally you should leverage feature upgrade functionality. Take a look at this example: http://spblog.net/post/2011/05/02/How-to-upgrade-feature-in-SharePoint-2010.aspx Also, a bit closer to your situation (if you use content types to provision list/library fields): ...


2

Make sure to not use SPContext.Current in the FeatureReciever, this will be NULL in powershell (due to lack of HttpContext basically). This is one of the most common cause of errors in FeatureReceivers


2

I would suggest that you break the whole thing into two features, first one to deploy the List Template and second one to create the instance of the list based on template.. On the later one, you will need to define Feature Activation Dependency of List Template feature.. Both features can be hidden and you just need to activate the Feature that creates ...


2

function Deactivate-SPFeature { param ($FeatureID, $SiteUrl, $WebApplicationUrl) $Feature = Get-SPFeature -Identity $FeatureID -ErrorAction SilentlyContinue $IsActiveFeature If ($Feature -eq $null) { Write-Warning "The specified feature ($FeatureID) was not found." return } If ($Feature.Scope -eq ...


1

The feature activated event will not fire again as it is already activated. However, the webpart will get updated because new dll, control templates and other components get deployed properly.


0

This should help you: Find and Delete Orphaned Alerts in SharePoint


0

I finally solved the issue, basically what I have done, i've created a feature folder in the features => like MyFeature/feature.xml. The next step I used stsadm to install the feature: stsadm -o installfeature -filename MyFeature\feature.xml And the final step, i used the Feature Admin Tool to delete this feature. Note: the feature XML you can define ...


0

you can also use stsadm.exe If the feature is activated in any scope then it has to be deactivated, use the following command to deactivate it stsadm –o deactivatefeature –id YourFeatureID -url YourSiteURL Then you have to retract and delete the solution, using the following code, stsadm -o retractsolution -name featuretester.wsp -immediate -url ...



Top 50 recent answers are included