Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > System.InvalidOperationException: Cannot find registration information for template
 

System.InvalidOperationException: Cannot find registration information for template

I've been trying to work through the steps in the Jelle Druyts tutorial but using the new Guidance Automation Toolkit for Visual Studio 2008 - February 2008 Release as the starting point, rather than the zip files on the tutorial website. The work is being done in VS2008 on a Vista 32-bit platform.

All is well ... up to a point. After compiling and installing a very simple package (Druyts' GAS03 example), and trying to use it to create a new project, I get

System.InvalidOperationException: Cannot find registration information for template "C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\ApplicationBlock.vstemplate". Package templates may not be properly registered. Run package installation again and verify template name and location.
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.GetTemplateRegistryData(String templateFileName)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.Microsoft.Practices.RecipeFramework.VisualStudio.Common.IVsTemplatesService.GetTemplate(String templateFileName)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VszWizard.EnvDTE.IDTWizard.Execute(Object Application, Int32 hwndOwner, Object[]& ContextParams, Object[]& CustomParams, wizardResult& retval)

Now, the odd thing is, when I look in C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\ the offending file is indeed there.

Checking the registry, I find (in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Packages\{77d93a80-73fc-40f8-87db-acd3482964b2}\Templates\{c4efc0c0-36bf-4336-834e-0e19a77af0ba}) string entries for
  • PackageName (GuidancePackage1),
  • LastTemplate (2), and
  • string entries for
    • the first template (1 = C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\ApplicationBlock.vstemplate) and
    • the second template (2 = C:\Code\TOSEnterprise\GuidancePackage1\GuidancePackage1\bin\Debug\Templates\Solutions\Projects\Runtime\Runtime.vstemplate).

Anyone seen this before? I've been trying, without success, to do various permutations for the past three days and haven't gotten anywhere. From the other posts on this forum, either everyone is using VS2005 and an earlier version of the toolkit, or I'm doing somethng terribly misguided and just not realizing it.

Thanks for any help that can be had.

-- Michael


msawczyn  Friday, July 11, 2008 3:53 PM
Hi

I didn't see the example in detail but, please check which version of WizardExtension has the .vstemplate files, if you're using the latest one, it should be 1.2.0.0

<WizardExtension>
<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
<FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName>
</WizardExtension>

hth
jose.

Jose Escrich - weblogs.asp.net/jescrich
Jose Escrich  Wednesday, July 16, 2008 7:01 PM

You can use google to search for other answers

Custom Search

More Threads

• GAT
• Help! Recipe Framework Error - Register Recipe "EnvDTE.Project, EnvDTE"
• entity framework connections
• ABSF with Data Access Application Block
• Is WSSF right for me?
• Building a first Guidance Package
• Is there any way to automate the data repository mappings?
• Add WCF Service Reference
• Factoring Factories :)
• Argument of ValueProvider is only Replaced if I put it on the WizardForm