AddEventPublication recipe throws exception

Topics: CAB & Smart Client Software Factory
Dec 7, 2006 at 8:13 AM
originally posted by: Don_Kay

Keep getting the following exception when trying to run the Add Event Publication and Add Event Subscription recipes. Any ideas? Thanks in advance.

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe AddEventPublication. Error was: Action SetMethodAsVirtual failed to execute:
Unspecified error.
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
at EnvDTE.CodeFunction.set_CanOverride(Boolean pCanOverride)
at Microsoft.Practices.GuidanceAutomation.SmartClient.Actions.UpdateEventFireMethodAction.Execute() in c:\Dev\scbat\GuidanceAutomation\SmartClientDevelopment\Actions\UpdateEventFireMethodAction.cs:line 33
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName, Dictionary`2 inputValues)
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName)
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionCoordinationService.Run(Dictionary`2 declaredActions, XmlElement coordinationData)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
--- End of inner exception stack trace ---
at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
---> Microsoft.Practices.RecipeFramework.UndoActionException: Action AddFireMethod failed to perform undo operation:
The parameter is incorrect. ---> System.ArgumentException: The parameter is incorrect.
at EnvDTE.CodeClass.RemoveMember(Object Element)
at Microsoft.Practices.GuidanceAutomation.SmartClient.Library.CodeModel.Actions.AddMethodAction.Undo() in c:\Dev\scbat\GuidanceAutomation\Library\CodeModel\Actions\AddMethodAction.cs:line 143
at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex)
--- End of inner exception stack trace ---