Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Smart Cllient Software Factory Template does not show in Visual Studio 2005
 

Smart Cllient Software Factory Template does not show in Visual Studio 2005

I installed the Smart Client Software factory after installing Enterprise Library, Composite Application Block, Guidance Application Extenstions, and Guidance Application Toolkit. When I try and create a new project and select Guidance Packages, I do not see the SCSF template. If I bring up Guidance Package Manager in Visual Studio and choose enable/disable packages, I see both the Guidance Development and Smart Client Development packages. If I choose to enable Smart Client Development and choose Ok, the system displ ays message "Cannot Load Package Smart Client Development". The details are listed below.

I have un-installed and re-installed Visual Studio 2005 along with all of the other components listed above with no luck. Any help would be greatly appreciated.

Thanks,

Fred

Detail from the load 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)

Fred Robinson  Wednesday, January 31, 2007 7:48 PM

After installing SCSF, all the template files (*.vstemplate) for the SCSF referenced the wrong version (1.0.51206.0) of the Microsoft.Practices.RecipeFramework.VisualStudio.dll

In order for the SCSF to function properly we needed to change this reference in all the *.vstemplate files under the following directories of the (C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\) :

Here's the pic of the files that must be replaced.

http://murray.gordon.org/blog/SNAG_2D070131_145803.png

The .vstemplate files look like similar to the following XML.

The file we are showing is “ModuleHandle.vstemplate�from the “C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\�directory.

You will need to change the highlighted code in the XML.:

<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>

This line of code:

<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.51206.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Needs to change to:

<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Here’s the resulting change log from find and replace on a machine that couldn’t load the SCSF package.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Items\ServiceAgent\ServiceAgent.vstemplate

Line 22 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\Module.Basic.vstemplate

Line 32 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\Module.Layout.vstemplate

Line 36 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\ModuleHandle.vstemplate

Line 21 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Business\BusinessModuleHandle.vstemplate

Line 21 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Business\Module.vstemplate

Line 34 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Interface\Module.Interface.vstemplate

Line 31 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\SmartClient.vstemplate

Line 27 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Infrastructure\Infrastructure.vstemplate

Line 55 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Library\Library.vstemplate

Line 66 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Module\Module.vstemplate

Line 26 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.Basic\Shell.vstemplate

Line 36 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.Extended\Shell.vstemplate

Line 30 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.LayoutModule\Shell.Layout.vstemplate

Line 29 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Searched 14 file(s), found 14 occurrences in 14 file(s)

Replaced 14 occurrences in 14 file(s)

Once the find and replace was completed, the SCSF Packages could load.

Thanks,

Murray Gordon

http://www.geekswithblogs.com/murraybgordon

You can view this answer at http://geekswithblogs.net/murraybgordon/archive/2007/01/31/105062.aspx

MurrayGordon  Wednesday, January 31, 2007 8:20 PM

After installing SCSF, all the template files (*.vstemplate) for the SCSF referenced the wrong version (1.0.51206.0) of the Microsoft.Practices.RecipeFramework.VisualStudio.dll

In order for the SCSF to function properly we needed to change this reference in all the *.vstemplate files under the following directories of the (C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\) :

Here's the pic of the files that must be replaced.

http://murray.gordon.org/blog/SNAG_2D070131_145803.png

The .vstemplate files look like similar to the following XML.

The file we are showing is “ModuleHandle.vstemplate�from the “C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\�directory.

You will need to change the highlighted code in the XML.:

<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>

This line of code:

<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.51206.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Needs to change to:

<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Here’s the resulting change log from find and replace on a machine that couldn’t load the SCSF package.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Items\ServiceAgent\ServiceAgent.vstemplate

Line 22 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\Module.Basic.vstemplate

Line 32 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\Module.Layout.vstemplate

Line 36 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\ModuleHandle.vstemplate

Line 21 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Business\BusinessModuleHandle.vstemplate

Line 21 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Business\Module.vstemplate

Line 34 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Interface\Module.Interface.vstemplate

Line 31 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\SmartClient.vstemplate

Line 27 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Infrastructure\Infrastructure.vstemplate

Line 55 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Library\Library.vstemplate

Line 66 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Module\Module.vstemplate

Line 26 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.Basic\Shell.vstemplate

Line 36 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.Extended\Shell.vstemplate

Line 30 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.LayoutModule\Shell.Layout.vstemplate

Line 29 - <Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, <Version=1.0.51206.0, >Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

Found 1 occurrences.

Searched 14 file(s), found 14 occurrences in 14 file(s)

Replaced 14 occurrences in 14 file(s)

Once the find and replace was completed, the SCSF Packages could load.

Thanks,

Murray Gordon

http://www.geekswithblogs.com/murraybgordon

You can view this answer at http://geekswithblogs.net/murraybgordon/archive/2007/01/31/105062.aspx

MurrayGordon  Wednesday, January 31, 2007 8:20 PM

Thanks Murray.

That worked.

Fred

Fred Robinson  Wednesday, January 31, 2007 8:21 PM

I've been fighting this issue all day. Now I'm up and running.

Thanks, Murray!

Brian

Brian Hoff  Wednesday, January 31, 2007 8:25 PM

I tried this and it solved the problem mentioned above. But now I get a new error that says:

-Index(zero based)must be greater than or equal to zero and less than the size of the argument list

System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.LoadPackage()
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunStarted(Object automationObject, Dictionary`2 replacementsDictionary, WizardRunKind runKind, Object[] customParams)

Any idea how to fix this?

thanks,

Arun

ArunNair  Tuesday, March 27, 2007 5:11 AM

You can use google to search for other answers

Custom Search

More Threads

• How do I uninstall GAX manually from a Vista64bit os
• visual studio 2008 GAT
• Basic example don't work
• GAT is VS Solution Centric
• Support for the June or July CTP of VS .Net 2005?
• SFT Wix Installer error
• Urgent - Create a new Item (Form)
• Clean up of wizard base form.
• Queued Recipe Execution
• SCSF/CAB - Module & View Loading Best Practice?