Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > exception in execution of recipe
 

exception in execution of recipe

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe . Error was: Action failed to execute:
Exception of type 'Microsoft.Practices.RecipeFramework.VisualStudio.Library.Templates.TemplateException' was thrown..
You can remove the reference to this recipe through the Guidance Package Manager.


Compiling transformation: The type or namespace name 'CodeDom' does not exist in the namespace 'System' (are you missing an assembly reference?)
----------------------------------------------------------------------------------------------------
Compiling transformation: The type or namespace name 'CodeDom' does not exist in the namespace 'System' (are you missing an assembly reference?)
----------------------------------------------------------------------------------------------------
Compiling transformation: The type 'System.CodeDom.Compiler.CompilerErrorCollection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
----------------------------------------------------------------------------------------------------
Compiling transformation: 'System.CodeDom.Compiler.CompilerErrorCollection' does not contain a definition for 'Add'
----------------------------------------------------------------------------------------------------

--- 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.VisualStudio.VsBoundReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()

silparchana  Monday, September 08, 2008 11:05 AM
Hi,

I don't have to much context but I'm guessing that you're trying to run a text template if so, you have to add the assembly references in your template.

for example if you're using the System.Xml in your template you should have:

<#@ Assembly name="System.Xml.dll" #>
<#@ Import namespace="System.Xml" #>


hth
jose.

Jose Escrich - weblogs.asp.net/jescrich
  • Proposed As Answer byJose Escrich Wednesday, September 17, 2008 10:29 PM
  •  
Jose Escrich  Wednesday, September 17, 2008 10:28 PM

You can use google to search for other answers

Custom Search

More Threads

• Adding Solution items
• SOA using WSSF and WCSF
• Guidance Package Uninstallation Damaging GAT
• GAT is VS Solution Centric
• SiteMap Navagation getting covered up
• How to add a file and project reference
• Problem installing GAT
• RegexMatchStringConverter
• Path of Bin Folder for a given project
• Basic example don't work