Recipe Framework Error

Sep 1, 2011 at 6:26 PM
Edited Sep 1, 2011 at 6:26 PM

Would like to use the SPSF SP2010 Solution structure with a SP2007 solution.   

Created a new SP2007 Solution using the SP2010 solution structure.

Added a new ASP.NET Administration Page artifact to Components project

Recipe Framework Error immediately occurred:

 

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe AdministrationPage. Error was: Action AddASPXPage failed to execute:
Object reference not set to an instance of an object..
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.VisualStudio.SharePoint.SharePointProjectPackage.get_Model()
   at Microsoft.VisualStudio.SharePoint.SharePointProjectPackage.GetModelProjectItems()
   at Microsoft.VisualStudio.SharePoint.PackagingItemCollection`3.get_ItemRefs()
   at Microsoft.VisualStudio.SharePoint.PackagingItemCollection`3.Contains(T item)
   at SPALM.SharePointSoftwareFactory.Library.Helpers2.AddVSElementToVSPackage(DTE dte, Project project, ProjectItem elementFolder)
   at SPALM.SharePointSoftwareFactory.Library.Actions.AddSPDataTemplateAction.AddSPDataDefinitionToVSTemplate(DTE dte, Project project, String evaluatedSPDataTemplate, String evaluatedTemplate, String evaluatedSPDataCategory, String evaluatedSPDataName, String evaluatedTargetFileName, String evaluatedDeploymentPath)
   at SPALM.SharePointSoftwareFactory.Library.Actions.AddSPDataTemplateAction.Execute()
   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 SPALM.SharePointSoftwareFactory.Library.Coordinators.ConditionalCoordinator.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.VisualStudio.Templates.UnfoldTemplate.ExecuteRecipe(Boolean executeActions)
   at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunFinished()

 

There was mention that the 2010 solution structure can be used with SP2007 (but not supported).    Is there any "unsupported" guidance/blogs/docs/etc?

Thanks

Nikos

Sep 1, 2011 at 6:29 PM

ps: I was able to add the same artifact with the SP2007 hive structure with no trouble.