Hi All
I am quite new to Guidance Automation Toolkit(GAT).
Ourcompany have a full fledged guidance package based on GAT Jun 06 which works fairly well on VS 2005.
Recently I joined this group in my company & I got the job to migrate this package from VS 2005 to VS 2008.
I have both versions of GAT July 07 as well as Feb 08 .
Initially when i started migrating I got stuck up somewhere with build errors. Now I am able to register my guidance package . When I try to create a new solution with this package, it works fairly well till WizardPages & upto some actions but after reaching a point where we are calling some arguments from recipe in t4 template file , it fails.
The error is as below
Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe CreateSolution. Error was: Action TestT4ForStringName failed to execute:
Exception of type 'Microsoft.Practices.RecipeFramework.VisualStudio.Library.Templates.TemplateException' was thrown..
You can remove the reference to this recipe through the Guidance Package Manager. ---> Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.TextTemplatingf23db43f623945b788c302714ba18930.GeneratedTextTransformation.get_DOProjectName() in \bin\Debug\Templates\Text\DOEntity\TestTemp.t4:line 7
at Microsoft.VisualStudio.TextTemplatingf23db43f623945b788c302714ba18930.GeneratedTextTransformation.TransformText() in \bin\Debug\Templates\Text\DOEntity\TestTemp.t4:line 16
----------------------------------------------------------------------------------------------------
--- 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.GuidancePackage.ExecuteFromTemplate(String recipe, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.ExecuteRecipe(Boolean executeActions)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunFinished()
When i tried to debug the t4 template , the arguments in the template file was showing error message :
DOProjectName threw an exception of type System.NullReferenceException
When i looked inside in the inner exception was _COMPlusExceptionCode = -532459699
Can anybody give me an idea why this error is coming.
I would like to mention that our factory is quite a big one which generates all layers of N-tier architecture , supports WCF,
It has got many Custom Wizard Pages, Custome Actions & custome Arguments