|
Microsoft.Practices.RecipeFramework.RecipeFrameworkException: Unexpected error loading template file name C:\Program Files\Microsoft SCSF\GuidancePkg\Bin\Templates\Items\ServiceAgent\ServiceAgent.vstemplate. Make sure that the template is well formed and try again. ---> System.ArgumentException: The template does not have the correct WizardExtension data. at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateMetaData.ReadTemplate() --- End of inner exception stack trace --- at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateMetaData.ReadTemplate() at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateMetaData..ctor(String templateFileName, CommandID command, String packageName) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.Microsoft.Practices.RecipeFramework.VisualStudio.Common.IVsTemplatesService.GetTemplate(String templateFileName) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.GetTemplate(String templateFile, ArrayList templates, GuidancePackage guidancePackage) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.GetTemplates(String directory, ArrayList templates, GuidancePackage guidancePackage) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.PopulateTemplates(String basePath, ArrayList templates, GuidancePackage guidancePackage) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.Microsoft.Practices.RecipeFramework.VisualStudio.Common.IVsTemplatesService.GetHostAssets(String basePath) at Microsoft.Practices.RecipeFramework.VisualStudio.SolutionPackagesContainer.GetHostAssets(String packagePath, GuidancePackage packageConfiguration) at Microsoft.Practices.RecipeFramework.PackageManagement.PackageViewer.OnLoad(EventArgs e) | | Ggreg Friday, July 28, 2006 1:55 PM | Templates need to have a specific WizardExtension element in order to be usable in GAT. The element must contain the following data:
<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> .... </TemplateData> <TemplateContent> ....
</TemplateContent> <WizardExtension> <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName> </WizardExtension> </VSTemplate>
HTH | | kzu Friday, July 28, 2006 3:09 PM | Templates need to have a specific WizardExtension element in order to be usable in GAT. The element must contain the following data:
<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"> <TemplateData> .... </TemplateData> <TemplateContent> ....
</TemplateContent> <WizardExtension> <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName> </WizardExtension> </VSTemplate>
HTH | | kzu Friday, July 28, 2006 3:09 PM | Hi,
I have the same error. When I tried to enable the SCSF and click on OK button, I receive the follow error:
Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe BindingRecipe. Error was: Action ModuleRef failed to execute: Unexpected error loading template file name C:\Program Files\Microsoft SCSF\GuidancePkg\Bin\Templates\Projects\Module\ModuleHandle.vstemplate. Make sure that the template is well formed and try again.. You can remove the reference to this recipe through the Guidance Package Manager. ---> Microsoft.Practices.RecipeFramework.RecipeFrameworkException: Unexpected error loading template file name C:\Program Files\Microsoft SCSF\GuidancePkg\Bin\Templates\Projects\Module\ModuleHandle.vstemplate. Make sure that the template is well formed and try again. ---> System.ArgumentException: The template does not have the correct WizardExtension data. at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateMetaData.ReadTemplate() --- End of inner exception stack trace --- at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateMetaData.ReadTemplate() at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateMetaData..ctor(String templateFileName, CommandID command, String packageName) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VSTemplatesService.Microsoft.Practices.RecipeFramework.VisualStudio.Common.IVsTemplatesService.GetTemplate(String templateFileName) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateReference.OnSited() at Microsoft.Practices.RecipeFramework.AssetReference.set_Site(ISite value) at System.ComponentModel.Container.Add(IComponent component, String name) at Microsoft.Practices.RecipeFramework.Services.AssetReferenceService.Add(IComponent component, String name) at System.ComponentModel.Container.Add(IComponent component) at Microsoft.Practices.RecipeFramework.Services.AssetReferenceService.Add(IAssetReference reference, IDictionary initialState, Boolean throwIfDuplicate) at Microsoft.Practices.RecipeFramework.Services.AssetReferenceService.Add(IAssetReference reference, IDictionary initialState) at Microsoft.Practices.RecipeFramework.Services.AssetReferenceService.Add(IAssetReference reference) at Microsoft.Practices.GuidanceAutomation.SmartClient.Library.Actions.CreateUnboundReferenceAction.Execute() in c:\Dev\scbat\GuidanceAutomation\Library\Actions\CreateUnboundReferenceAction.cs:line 83 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)
I have installed the CAB UI and Enterprise Libraries 2.0.... I'm using the Patterns and Practices DVD (October 2006) I got it from P&P Summit 2006 last week at Redmond.
I don't know if I'm missing something. I use VS2005 Standard Edition.
| | credondo Sunday, October 15, 2006 2:21 AM | Hi credondo,
Have you modified the ModuleHandle.vstemplate template? Please post its contents here so we can take a better look at it.
thanks, -Victor. | | vga Wednesday, October 18, 2006 4:43 AM | Hi Victor,
Sorry for my delay, I could install and ran the SCSF in other machine with no errors. I continue having this issuein my Home workstation... Below is the copy/paste of the ModuleHandle.vstemplate file.
<VSTemplate Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project"> <TemplateData> <Name>Add Foundational Module</Name> <Description>Creates a CAB module that exposes services and UI components.</Description> <ProjectType>CSharp</ProjectType> <ProjectSubType> </ProjectSubType> <SortOrder>1000</SortOrder> <CreateNewFolder>true</CreateNewFolder> <DefaultName>Module</DefaultName> <ProvideDefaultName>true</ProvideDefaultName> <LocationField>Enabled</LocationField> <EnableLocationBrowseButton>true</EnableLocationBrowseButton> <Icon>__TemplateIcon.ico</Icon> </TemplateData> <TemplateContent> <Project TargetFileName="ModuleHandle.csproj" File="ModuleHandle.csproj.template" ReplaceParameters="true"> </Project> </TemplateContent> <WizardExtension> <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.51206.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly> <FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName> </WizardExtension> <WizardData> <Template xmlns="http://schemas.microsoft.com/pag/gax-template" SchemaVersion="1.0" Recipe="CreateFoundationalModule"> </Template> </WizardData> </VSTemplate> | | credondo Monday, October 23, 2006 3:37 AM | Take a look at each .vstemplate file it's trying to call... Make sure the correct version of the Microsoft.Practices.RecipeFramework.VisualStudio assembly is referenced... If the template calls multiple .vstemplate files be sure to read the error message Visual Studio gives you, as you fix them it will find other templates that may be referencing the wrong assembly version... Depending on what version you have installed the latest looks like below.. The older version is Version=1.0.51206.0...
Hope this helps....
<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
| | dotnetguru06 Tuesday, November 14, 2006 3:12 PM | Hi credondo,
You're referencing an older version of GAT (December 05) in your template:
<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.51206.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
You should be using the latest one (June 06):
<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60613.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
HTH, -Victor.
| | vga Tuesday, November 14, 2006 3:43 PM | I have got another error....
It says it can't open subproject 'Interface.Library' in the recipe framework.
| | anetdeveloper Tuesday, May 08, 2007 11:50 AM | Can you post the complete exception/error text?
thanks,
-Victor. | | vga Wednesday, May 09, 2007 5:14 AM | Oops Stupid me I started a new thread instead of replying.
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3167087&SiteID=1&mode=1
I'm getting the smae error, but I have a diffrent assembly version. | | Alexander Wykel Sunday, April 13, 2008 3:45 AM |
|