Questions tagged [feature-receivers]
3 questions
8
votes
3 answers
Why is my project's assembly missing from the package when I debug?
I've got a SharePoint project that I've been debugging for some time without problems.
Today I added a feature receiver to the project's only feature. I've not yet changed anything about the empty receiver class that Visual Studio adds by…

lance
- 16,092
- 19
- 77
- 136
0
votes
1 answer
Delete content type during feature dectivation
I want to delete content type programmatically on feature deactivation. I've wrote the code to perform deletion:
SPSecurity.RunWithElevatedPrivileges(delegate()
{
using (SPWeb webSite =(SPWeb)properties.Feature.Parent)
{
…

Priya
- 1,375
- 8
- 21
- 45
0
votes
1 answer
When will my new HttpModule's Init() method fire?
Using event handlers in my Site-scoped feature's Feature Receiver, I'm adding my HttpHandler to my configuration (I'm new to this, so the code is a bit disjointed, as I've found it here and there).
public override void…

lance
- 16,092
- 19
- 77
- 136