Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Error after installing MSI and enabling package on new solution
 

Error after installing MSI and enabling package on new solution

I have a Gudiance Package that was created with the Clarius Software Toolkit. The package works on my local machine and I have no issues with it. When I created an MSI file and installed it on another machine I started to get errors. The very first error that I am getting is:

Code Snippet
Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe BindingRecipe. Error was: Action CreateClassFromTemplateRef failed to execute:
Could not load type 'IvyIrisPackage.References.Unbound.CSharpClassRecipeReference' from assembly 'IvyIrisPackage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'..
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.TypeLoadException: Could not load type 'IvyIrisPackage.References.Unbound.CSharpClassRecipeReference' from assembly 'IvyIrisPackage, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
at System.Reflection.Assembly.GetType(String name, 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.RecipeFramework.Library.Actions.CreateUnboundReferenceAction.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 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)

But that file does exist in my project. It is located in the "References\Unbound" folder.

Code Snippet

using System;

using Microsoft.Practices.RecipeFramework;

using EnvDTE;

using System.Runtime.Serialization;

using System.Xml;

namespace IvyIrisPackage.References.Unbound

{

///

/// A recipe reference that can point to an application configuration file,

/// either App.config or Web.config.

///

[Serializable]

public class CSharpClassRecipeReference : UnboundRecipeReference

{

public CSharpClassRecipeReference(string recipe) : base(recipe) { }

Here is my Binding.xml file:

Code Snippet

<?xml version="1.0" encoding="utf-8"?>

<Recipe Bound="false" Name="BindingRecipe" xmlns="http://schemas.microsoft.com/pag/gax-core">

<Caption>Package binding recipe.</Caption>

<Description>Creates unbound references for the package.</Description>

<Actions>

<Action Name="CreateClassFromTemplateRef"

Type="Microsoft.Practices.RecipeFramework.Library.Actions.CreateUnboundReferenceAction, Microsoft.Practices.RecipeFramework.Library"

AssetName="CreateIvyCSharpClass"

ReferenceType="IvyIrisPackage.References.Unbound.CSharpClassRecipeReference, IvyIrisPackage" />

<Action AssetName="CreateIvyCSharpReportClass" ReferenceType="IvyIrisPackage.References.Unbound.CSharpClassRecipeReference, IvyIrisPackage" Type="Microsoft.Practices.RecipeFramework.Library.Actions.CreateUnboundReferenceAction, Microsoft.Practices.RecipeFramework.Library" Name="CreateIvyVBReportClassRef1" />

<Action AssetName="CreateIvyCSharpParameterConstructorClass" ReferenceType="IvyIrisPackage.References.Unbound.CSharpClassRecipeReference, IvyIrisPackage" Type="Microsoft.Practices.RecipeFramework.Library.Actions.CreateUnboundReferenceAction, Microsoft.Practices.RecipeFramework.Library" Name="CreateIvyCSharpParameterConstructorClassRef1" />

</Actions>

</Recipe>

Gaurav76  Wednesday, July 18, 2007 7:53 PM
Gaurav76  Wednesday, July 18, 2007 8:36 PM
Gaurav76  Wednesday, July 18, 2007 8:36 PM

You can use google to search for other answers

Custom Search

More Threads

• Deploying Guidance Package
• "Toolkit is already installed" but it's not
• Using IAssetReferenceService
• Actions don't get executed
• Code samples anywhere ?
• Referencing a generic class with a t4 template
• Is .Net Framework 3.0 needed to use Enterprise library 3.1 may 2007
• GAX VS 2005 - "Cannot find registration information for template "...". Package templates may not be properly registered. Run package installation again and verify template name and location.
• Pull project from sourcesafe on unfold
• Add Entity Framework model to Project with GAT