Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Evaluator ValueProvider error
 

Evaluator ValueProvider error

Hi,

If there are multipleRecipe Argumentsin the Expression of value provider, Evaluator and if any of the argument is empty or null then the value provider throws following error:

----------------------------------------------

Microsoft.Practices.RecipeFramework.RecipeExecutionException: An exception occurred during the binding of reference or execution of recipe CreateSite. Error was: The following arguments are required and don't have values: HTTPPath. Can't continue execution..
You can remove the reference to this recipe through the Guidance Package Manager.
at Microsoft.Practices.RecipeFramework.Recipe.ThrowIfRequiredArgumentsAreNull(IDictionaryService arguments)
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.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.VisualStudio.VsBoundReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()

----------------------------------------------

Example:

<Argument Name="HTTPPath">

<ValueProvider Type="Evaluator" Expression="http://$(ServerName)Embarrassed(WebSitePort)/$(DirName)"></ValueProvider>

</Argument>

Here, say if value of WebSitePort is not set, then error is thrown.

Expression should evaluate even though any argument value is not available.

How to do this?

Thanks & Regards,

Navneet

rnavneet  Wednesday, December 19, 2007 8:41 AM
Hi Navneet,

That evaluator use a RegEx and there are a well known bug which causes recipe hangs.
more info: http://weblogs.asp.net/cazzu/archive/2006/06/09/regexbug.aspx

If you try use a shortest evaluation the issue will dissapear. A quick workaround could be split the argument, in many others.

hth.
jose.
Jose Escrich  Wednesday, December 19, 2007 2:45 PM
Hi Navneet,

That evaluator use a RegEx and there are a well known bug which causes recipe hangs.
more info: http://weblogs.asp.net/cazzu/archive/2006/06/09/regexbug.aspx

If you try use a shortest evaluation the issue will dissapear. A quick workaround could be split the argument, in many others.

hth.
jose.
Jose Escrich  Wednesday, December 19, 2007 2:45 PM

You can use google to search for other answers

Custom Search

More Threads

• Microsoft.VisualStudio.TextTemplating 8.2
• Some doubts about EnvDTE
• Build class from database table or view
• Flip Access Modifier of a BizTalk Orchestration (Please help)
• GAT is VS Solution Centric
• no menu entry in VSS 08 for guidance automation packages
• Exception message for the enduser?
• How do you pass arguments from previous wizard pages
• GAT fails to install, claims GAX is missing
• T4 in a custom tool