Recipe Framework error

Topics: CAB & Smart Client Software Factory
Jan 18, 2007 at 10:17 AM
Hi.

I have a problem with the recipe framework, when loading SCSF solutions I get the following error:

System.Runtime.Serialization.SerializationException: Unexpected error loading property guidDD259E3702BB4b1c9F14737F534EEE22 ---> System.Runtime.Serialization.SerializationException: Unable to find assembly 'SmartClientDevelopment, Version=1.0.2572.24320, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at Microsoft.Practices.RecipeFramework.VisualStudio.SolutionPackagesContainer.DeserializeFromBinary(Byte[] data)
at Microsoft.Practices.RecipeFramework.VisualStudio.SolutionPackagesContainer.DeserializePackage(GuidancePackagesStatePackage package)
--- End of inner exception stack trace ---
at Microsoft.Practices.RecipeFramework.VisualStudio.SolutionPackagesContainer.DeserializePackage(GuidancePackagesStatePackage package)
--------------------------------------------------------------------
the project loads but no recipes work and that makes the developement slow and frustrating. I´ve tried to unregister these recipes but I get the same error when loading the guidancepackage solution. I´ve tried to uninstall SCSF and guidance autimation extension + toolkit without any luck.

any help help with this is appreciated

Regards Valdimar
Jan 25, 2007 at 6:38 PM
I am getting the same error.

System.Runtime.Serialization.SerializationException: Unexpected error loading property guid22ce1b108c4141fdaa623e9d19ef1a7f ---> System.Runtime.Serialization.SerializationException: Unable to find assembly 'SmartClientDevelopment, Version=1.0.2371.37795, Culture=neutral, PublicKeyToken=null'.
at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at Microsoft.Practices.RecipeFramework.VisualStudio.SolutionPackagesContainer.DeserializeFromBinary(Byte[] data)
at Microsoft.Practices.RecipeFramework.VisualStudio.SolutionPackagesContainer.DeserializePackage(GuidancePackagesStatePackage package)
--- End of inner exception stack trace ---
at Microsoft.Practices.RecipeFramework.VisualStudio.SolutionPackagesContainer.DeserializePackage(GuidancePackagesStatePackage package)


Have you found a solution?

I reinstalled GAX, GAT, and SCSF and this didn't resolve it. I then reinstalled VS 2005 and I was able to register the package the first time I opened my solution, but it continued to give me this error each subsequent time.

Thanks,

Jon King
Jan 25, 2007 at 6:43 PM
I am also getting this error when I try to Enable the Smart Client Development Guidance Package:

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe BindingRecipe. Error was: Action ModuleRef failed to execute:
Microsoft.Practices.GuidanceAutomation.SmartClient.References.ModuleTemplateReference, SmartClientDevelopment.
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.TypeLoadException: Microsoft.Practices.GuidanceAutomation.SmartClient.References.ModuleTemplateReference, SmartClientDevelopment ---> System.IO.FileLoadException: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetAssembly(AssemblyName assemblyName, Boolean throwOnError)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
--- End of inner exception stack trace ---
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.AliasResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError)
at Microsoft.Practices.GuidanceAutomation.SmartClient.Library.Actions.CreateUnboundReferenceAction.Execute() in c:\Dev\scbat\GuidanceAutomation\Library\Actions\CreateUnboundReferenceAction.cs:line 58
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.RecipeManager.Add(IComponent component, String name)
at System.ComponentModel.Container.Add(IComponent component)
at Microsoft.Practices.RecipeFramework.RecipeManager.EnablePackage(XmlReader configuration)
at Microsoft.Practices.RecipeFramework.RecipeManager.EnablePackage(String packageName)
at Microsoft.Practices.RecipeFramework.PackageManagement.EnableDisablePackages.OnOkClick(Object sender, EventArgs e)


Jon King
Jan 25, 2007 at 8:55 PM
Saw this error on the Web Client forums... Have you tried closing down VS2005 and restarting it (then re-running the recipe)? It's worked for me though some have had worse luck.. :(
Jan 26, 2007 at 10:07 PM
This problem comes and goes. If I reinstall GAX, GAT and SCSF, it will always work the first time and then fail subsequent times, very strange.

Thanks.