Question

There is a solution that contains a Web Application scoped feature. I need to deactivate the feature if it is active when user is retracting a solution. So I've added an event receiver:

public override void FeatureUninstalling(SPFeatureReceiverProperties properties)

But it's not firing(the VS debugger is attached to all w3wp and OWSTIMER processes). Am I doing something wrong?

Was it helpful?

Solution

I tried restarting the server for few times, tried IIS reset without any luck.

The issue is fixed after following steps: 1. I've renamed a project assembly to [my_assembly_name]111.dll and deployed the solution. Feature deactivated or uninstalled has not been called. Feature installed and activated event receivers called. 2. Renemed assembly back to [my_assembly_name].dll and deployed again. Feature deactivated and uninstalled has been called. Feature installed and activated event receivers also called.

Then I've uninstalled and deployed the solution for few more times and each time all event receivers has been called withuot exception.

There was no any problems with order of calls. The order is same now but there is no exception anymore.

I have no idea what was the issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top