Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Error In GAT
 

Error In GAT

Hello everybody,

My privious problem regarding Multi-project VSTemplate still not solve

and no soln are suggested,I then use Guidance Automation Toolkit but there arealso lots of problems releated to GAT.

I make a sample soln with Gat in c:\testGAT dir and then delete that soln from directory.Now the sample project still shown in New project Type options

It also througherrorwhen I repair Gat.

Tell me the soln for both problems as early as possible

Monesh  Friday, May 25, 2007 9:38 AM

Hi Monesh,

By what you're describing it looks like you deleted the source code for your guidance package and you expect this to remove the Visual studio template registered by your -now deleted- guidance package. This is not the case, in order to remove the templates registered by your guidance package you need to run the "Unregister package" recipe before deleting the package source code, that is, the same way you used "Register package" template to register it and make it available you need to perform the unregister operation to get rid of it.

If you don't have source code for it anymore, let me know, and I can guide you on how to remove the templates entries manually,

HTH,

-Victor.

vga  Monday, May 28, 2007 6:43 AM

glad this issue is fixed, I'll take a look at the other thread you're mentioning now.

vga  Wednesday, May 30, 2007 5:56 AM
The error is saying that an action type can't be found, most probably you have a typo on the xml where this action is being used and its type being declared, please double check that, or post here your xml so we can take a look at it.

thanks,
-Victor.
vga  Wednesday, May 30, 2007 5:20 PM

Hi Monesh,

Can you please post a new thread for each different unrelated question you may have? this way we can keep it simple for users searching the forums to hit more useful results.

thanks!

-Victor.

vga  Friday, June 01, 2007 4:33 PM

Hi Monesh,

By what you're describing it looks like you deleted the source code for your guidance package and you expect this to remove the Visual studio template registered by your -now deleted- guidance package. This is not the case, in order to remove the templates registered by your guidance package you need to run the "Unregister package" recipe before deleting the package source code, that is, the same way you used "Register package" template to register it and make it available you need to perform the unregister operation to get rid of it.

If you don't have source code for it anymore, let me know, and I can guide you on how to remove the templates entries manually,

HTH,

-Victor.

vga  Monday, May 28, 2007 6:43 AM

Hello victor ,

Thanks for replying my question.I successfull Unregistered the Guidance Package project type by following these instruction:

Open the registry and look for the following keys under HKLM\Software\Microsoft\VisualStudio\8.0

  • Packages\{77d93a80-73fc-40f8-87db-acd3482964b2}\Templates : Delete all subkeys that refer to guidance packages you don’t want any more (they will have GUIDs as their key names)
  • Languages\CodeExpansions\CSharp\Paths : Delete all values that refer to guidance packages you don’t want any more
  • Menus : Delete all values that refer to guidance packages you don’t want any more (they will probably be at the bottom after all the ones named after GUIDs)
  • NewProjectTemplates\TemplateDirs : Expand each of the subkeys (they will have GUIDs as names) and expand the /1 key below that. If you find one whose (Default) value is named after an unwanted guidance package, delete the entire GUID key and the /1 key below that

But when I go through File->New->Project->Guidance Project->Guidance Package Development

then I get 3 visual studio Installed templates:-1)Package Installer Project 2)Guidance Package(.csproj file)3)Guidance Package(Solution to develop Guidance Package)

When I click anyone of them then I get Error Message:

*****error message*******

Value cannot be Null

Parameter Name : Service Provider

System.ArgumentNullException: Value cannot be null.
Parameter name: serviceProvider
at Microsoft.Practices.ComponentModel.ServiceHelper.GetService(IServiceProvider serviceProvider, Type serviceType, Object component)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.VszWizard.EnvDTE.IDTWizard.Execute(Object Application, Int32 hwndOwner, Object[]& ContextParams, Object[]& CustomParams, wizardResult& retval)

*************************

Can you suggest me any soln for this problem also priviously posted by me releated to Multi-Project Visualtemplate:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1636855&SiteID=1

Thank you very Much

Monesh  Monday, May 28, 2007 7:32 AM
So when you go "Guidance Package Development" you see three templates instead of a single one? This may indicate that your GAT installation has been corrupted (maybe by tweaking the registry by hand), have you tried performing a GAT repair using the MSI or the control panel?
vga  Tuesday, May 29, 2007 7:33 AM

hello victor,

Yes,I reinstall Guidance Automation Extension and GAT but same prob occur after that I uninstall .net framework and then reinstall it

then it solve,but it is not the correct solution.

Can u please help me to solve out this another problem,eariler posted by me.

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1636855&SiteID=1

Please reply ASAP

Thanks

Monesh  Tuesday, May 29, 2007 7:53 AM

glad this issue is fixed, I'll take a look at the other thread you're mentioning now.

vga  Wednesday, May 30, 2007 5:56 AM

hello Victor,

Thanks for seeing my problems

I get another Error when I run my own Guidance Package

************************************************************************************ERROR**************************

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe BindingRecipe. Error was: Action CreateSampleUnboundTemplateRef failed to execute:
Could not load type 'GuidancePackage7.References.SolutionFolderAReference' from assembly 'GuidancePackage7, Version=1.0.2706.22862, Culture=neutral, PublicKeyToken=null'..
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.TypeLoadException: Could not load type 'GuidancePackage7.References.SolutionFolderAReference' from assembly 'GuidancePackage7, Version=1.0.2706.22862, 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.VisualStudio.Templates.UnfoldTemplate.LoadPackage()
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunStarted(Object automationObject, Dictionary`2 replacementsDictionary, WizardRunKind runKind, Object[] customParams)

*********************************************************************END Error**************************************************************

I follow the following steps to generate the directory structure as describe in my privious post:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1636855&SiteID=1

1)I add folders and files at Template->Solution.As structure that I want.

2)Remove all files from other defaultfolders like action,converters ,Custom wizard Page,Snippets,Refrence etc. living only folders blank.Except GuidancePackage7.xml and TypeAlias.xml

3)Make Build Action : Content and Copy to output directory : copy always for other files

4)Build

5)Register

Register is successfull

But when I run new generated own Guidance Package I get above error.

Thanks

Monesh  Wednesday, May 30, 2007 7:43 AM
The error is saying that an action type can't be found, most probably you have a typo on the xml where this action is being used and its type being declared, please double check that, or post here your xml so we can take a look at it.

thanks,
-Victor.
vga  Wednesday, May 30, 2007 5:20 PM

Hello victor

Thanks for your helps.

My GuidancePackage.xml and typealias.xml files are default files that are generated when we registered the package.

Can you give me the steps that I used to create my first guidance package.I am not using any recipe and action .

I follow the following steps to generate the directory structure as describe in my privious post:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1636855&SiteID=1

1)I add folders and files at Template->Solution.As structure that I want.

2)Remove all files from other defaultfolders like action,converters ,Custom wizard Page,Snippets,Refrence etc. living only folders blank.Except GuidancePackage7.xml and TypeAlias.xml

3)Make Build Action : Content and Copy to output directory : copy always for other files

4)Build

5)Register

Register is successfull

But when I run new generated own Guidance Package I get above error

Monesh  Thursday, May 31, 2007 10:54 AM
The error you're getting doesn't have anything to do with templates but with the fact that you're specifying an action type in the xml that can't be found at runtime because most probably you have deleted the corresponding code for the action (you said you deleted all that was there in the Actions folder right?).

Please post your xml to help the guessing game...

thanks,
-Victor.
vga  Thursday, May 31, 2007 4:51 PM

hello victor,

Thanks,I solve my Errors and now I successfully Created Templates through GAT !

I have Some more Questions:-

1) MY solution.vstemplate file is:

<TemplateContent>
<ProjectCollection>
<SolutionFolder Name="$ProjectName$">
</SolutionFolder>
</ProjectCollection>
</TemplateContent>

In Solution Folder Name, I want to create Solution Folderas my Project Name.

Butit create folder with $ProjectName$ .Is it Possible .

2) In Order to achive directory structure of my privious post

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1636855&SiteID=1

I put my files and folders in Templates->Solution->Project folder

By using Add NewFolder and ADD ExistingItem.And Successfully created templates from it.

But when Templates Unfold, It generate same defaultdirectory structure asit create when we doesn't use GAT.

Is there any way to get structure that I put in Solution->Project Folder

Thanks for your Helps.

Monesh  Friday, June 01, 2007 7:57 AM

Hi Monesh,

Can you please post a new thread for each different unrelated question you may have? this way we can keep it simple for users searching the forums to hit more useful results.

thanks!

-Victor.

vga  Friday, June 01, 2007 4:33 PM

You can use google to search for other answers

Custom Search

More Threads

• any support for udt in data access layer and business entity auto-generation in any version of "DataAccess Guidance Package"?
• Smart Client Software Factory (Recipe Framework Error) during Enable and Disable Packages
• Microsoft.Jet.OLEDB.4.0
• Passing argument between wizards (with custom TypeConverters)
• How to do simple recipe alteration to solicit additional string for recipe substitution
• Facing problem while working with file system under source control
• NotImplementedException on OnComponentChanging/Changed
• Create Radio Buttons in a Wizard?
• February 07 GAX
• CreateProjectAction doesn't replace parameters regardless of ReplaceParameters value in vstemplate