Create FieldType fails with null reference exception

Feb 28, 2011 at 12:28 PM

Attempting to create a field type fails with a null reference exception:

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe FieldTypeISBN10. Error was: Action CreateElementsXml 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.ProjectItemCollection.GetItemId(ISharePointProjectItem item)   at Microsoft.VisualStudio.SharePoint.PackagingItemCollection`3.<>c__DisplayClass7.<FindIndex>b__6(TRef iRef)   at Microsoft.VisualStudio.SharePoint.InternalExtensions.FindIndex[T](IEnumerable`1 items, Predicate`1 match)   at Microsoft.VisualStudio.SharePoint.PackagingItemCollection`3.FindIndex(TRefCol collection, T item)   at Microsoft.VisualStudio.SharePoint.PackagingItemCollection`3.Contains(T item)   at SharePointSoftwareFactory.Library.Helpers2.AddVSElementToVSPackage(DTE dte, Project project, ProjectItem elementFolder)   at SharePointSoftwareFactory.Library.Actions.AddElementsDefinitionAction.AddElementsDefinitionToVSTemplate(DTE dte, Project project, String evaluatedParentFeatureName, String evaluatedSPDataTemplate, String evaluatedElementsTemplate, String evaluatedElementsCategory, String evaluatedElementsName, String evaluatedTargetFileName)   at SharePointSoftwareFactory.Library.Actions.AddElementsDefinitionAction.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 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()

A similar error occurs when attempting to use any of the options in the FieldType menu.

Coordinator
Mar 9, 2011 at 10:51 PM

hi mimitndiaye,

thank you for posting the error. This is a known bug of the beta.

The final release 3.1 with loads of fixes, improvements and new features, will be release very soon.

Thanks for your support

Matt

Mar 10, 2011 at 10:58 AM

Do you have an estimated release date?

Coordinator
Mar 21, 2011 at 11:22 AM

Yesterday ;-)

Just download the new release.

Thanks for your feedback!