Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Recipe Framework Error when using "Register Guidance Package"
 

Recipe Framework Error when using "Register Guidance Package"

Hi

I created a GAT packageand was using the "Register Guidance Package" option to test my GAT package. Everything worked fine until I decided to build and testthe MSI for the GAT package.
I installed the MSI and tested my GAT package in a new VS instance and this worked fine.
I then un-installed the MSI and the GAT package wasno longer available from VS, so that also worked fine.

The problem occurs when I return to the GAT project and try to use the "Register Guidance Package" option again. I get the following "Recipe Framework Error" window with the error message:
"EnvDTE.Project, EnvDTE"

The stack trace is:
"System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE.
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.RecipeFramework.GuidancePackage.EnsureInitializeMetadataForCurrentRecipe()
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.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()"

When I look at my "Guidance Package Developement" section in the output window, it seems it is the Register recipe that is failing:

Output window created.

Information: 0 : Starting execution of recipe Register.

Information: 0 : No previously saved state found.

Information: 0 : ------------------------------------------------------------------------------------------------------------------------------------------------------

(*) Error: 0 : System.TypeLoadException: EnvDTE.Project, EnvDTE ---> System.IO.FileNotFoundException: Couldn't find assembly EnvDTE.

and the rest of the stack trace is as above.

I've tried repairing both the "Guidance Automation Extensions" and "Guidance Automation Toolkit for Visual Studio 2005", but this had no effect.

EnvDTE is present in my GAC and in C:\program files\Common Files\Microsoft Shared\MSEnv\PublicAssemblies

Has anyone seen this scenario before, or have any ideas how to get "Register Guidance Package" working again?

Thanks!

KevinH1979  Thursday, January 08, 2009 3:27 PM
Thanks for the reply Leandro.

I actually resolved the issue by installing my GAT package's MSI again. So it seems that uninstalling my GAT package's MSI removes some reference to EnvDTE which is actually required by the "Register" recipe when you click "Register Guidance Package".

No matter, problem solved now

Thanks
Kevin
  • Marked As Answer byKevinH1979 Friday, January 09, 2009 10:46 AM
  •  
KevinH1979  Friday, January 09, 2009 10:46 AM

Hi,


Perhaps, this can solve your problem:

http://social.msdn.microsoft.com/Forums/en-US/vsgatk/thread/746da7fb-cc15-4eaf-8e3f-43b681e3a7e2/



greetings

Leandro Tuttini
Leandro Tuttini  Thursday, January 08, 2009 5:29 PM
Thanks for the reply Leandro.

I actually resolved the issue by installing my GAT package's MSI again. So it seems that uninstalling my GAT package's MSI removes some reference to EnvDTE which is actually required by the "Register" recipe when you click "Register Guidance Package".

No matter, problem solved now

Thanks
Kevin
  • Marked As Answer byKevinH1979 Friday, January 09, 2009 10:46 AM
  •  
KevinH1979  Friday, January 09, 2009 10:46 AM

You can use google to search for other answers

Custom Search

More Threads

• Custom Guidance Package - Auto enable WCF Gudiance Package?
• Parametrize TypeConverter?
• Guidance don´t unload the AppDomain
• Using Project in solution TEmplate
• Service Factory ( Data Access ) - Handling with transactions
• GAT
• Can we checkout file under ClearCase as SourceControl programmacticly
• CAB Module menu item doesn't run
• Add SchemaName to Web Service Software Factory or Data Access Guidance Package
• Creating unbound reference to project template