Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Microsoft.Practices.RecipeFramework.VisualStudio
 

Microsoft.Practices.RecipeFramework.VisualStudio

When I open a solution that was written by another developer where I work I receive the following error, Does anyone know how to correct this?

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Practices.RecipeFramework.VisualStudio,
Version=1.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's
manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.3.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a'
at System.Reflection.Assembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at System.Runtime.Serialization.FormatterServices.GetTypeFromAssembly(Assembly assem, String name)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.FastBindToType(String assemblyName, String typeName)
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Bind(String assemblyString, String typeString)
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.RecipeManagerPackage.OnLoadOptions(String key, Stream stream)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

MichaelFranklin  Wednesday, January 16, 2008 3:44 PM

Hi Michael,

Do you have GAX/GAT properly installed on your machine? Is it the same version of GAX used todevelop the solution you're trying to open?

-Victor.

vga  Friday, January 18, 2008 3:03 AM

Thanks;

That corrected the issue.

MichaelFranklin  Tuesday, January 22, 2008 3:36 PM

Hi Michael,

Do you have GAX/GAT properly installed on your machine? Is it the same version of GAX used todevelop the solution you're trying to open?

-Victor.

vga  Friday, January 18, 2008 3:03 AM

Thanks;

That corrected the issue.

MichaelFranklin  Tuesday, January 22, 2008 3:36 PM
I am having a similar problem, my errormessage is: System.Runtime.Serialization.SerializationException: Attempting to deserialize an empty stream.
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeManagerPackage.OnLoadOptions(String key, Stream stream)

I tried reinstalling GAX/GAT as you suggested but for me this did not do the trick I still get: "Attemting to deserialize an empty stream" with the above errormessage.

I also get the: The docfile has been corrupted and: System.Runtime.InteropServices.COMException (0x80030109): The docfile has been corrupted. (Exception from HRESULT: 0x80030109)
at Microsoft.VisualStudio.OLE.Interop.IStream.Write(Byte[] pv, UInt32 cb, UInt32& pcbWritten)
at Microsoft.VisualStudio.NativeMethods.DataStreamFromComStream.Write(Byte[] buffer, Int32 index, Int32 count)
at System.IO.Stream.WriteByte(Byte value)
at System.IO.BinaryWriter.Write(Byte value)
at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Write(__BinaryWriter sout)
at System.Runtime.Serialization.Formatters.Binary.__BinaryWriter.WriteSerializationHeader(Int32 topId, Int32 headerId, Int32 minorVersion, Int32 majorVersion)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteSerializedStreamHeader(Int64 topId, Int64 headerId)
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeManagerPackage.OnSaveOptions(String key, Stream stream)

Any help will be greatly appreiciated.
Millennium  Saturday, March 28, 2009 11:03 AM

You can use google to search for other answers

Custom Search

More Threads

• Newb Question: Where to get started on item template and documentation
• Re: How to develop a design center for my website.
• Issue passing input parameters to actions
• Uninstall Failure
• GAT is VS Solution Centric
• How to store global variables/parameters?
• Unable to install Guidance Automation Extensions July 2007 CTP
• GAT recipe execution from "Guidance package manager"
• Problem using Evaluator - Bad RegEx
• Can't create my own action