Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Smart Client Development - problem whit context menu i VS2005
 

Smart Client Development - problem whit context menu i VS2005

One month ago I create new project Smart Client Softwer Factory v. 1.0.
I dont`t know when, but something has corrupted and now I can`t use menu items related with Smart Client Development (example: Add View (with presenter)) in context men in Solution Explorer because this menu items disappear (I have turn on Guidance Package Smart Client Development) - when I want expand menu in some folder in Solution Explorer I get this message:

"
Microsoft.Practices.RecipeFramework.RecipeExecutionException: An exception
occurred during the binding of reference or execution of recipe CreateView.
Error was: Function IsEnabledFor is not correctly implemented because it
threw an exception.
You can remove the reference to this recipe through the Guidance Package
Manager. ---> System.NullReferenceException: Object reference not set to an
instance of an object.
at
Microsoft.Practices.GuidanceAutomation.SmartClient.References.ViewTemplateReference.ContainsRequiredReferences(Project
project) in
c:\Dev\scbat\GuidanceAutomation\SmartClientDevelopment\References\ViewTemplateReference.cs:line
51
at
Microsoft.Practices.GuidanceAutomation.SmartClient.References.ViewTemplateReference.IsEnabledFor(Object
target) in
c:\Dev\scbat\GuidanceAutomation\SmartClientDevelopment\References\ViewTemplateReference.cs:line
35
at
Microsoft.Practices.RecipeFramework.Services.AssetReferenceService.IsAssetEnabledFor(String
asset, Object target)
--- End of inner exception stack trace ---
at
Microsoft.Practices.RecipeFramework.Services.AssetReferenceService.IsAssetEnabledFor(String
asset, Object target)
at
Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnQueryStatus()
at
Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.OnBeforeQueryStatus(Object
sender, EventArgs eventArgs)
"

I haven`t path "c:\Dev" in my computer!!! When I created new SCSF project all things are good. What shell I do to repair my old project?
kicaj  Thursday, September 06, 2007 7:24 PM

Hi kijac,

You should post this to the SmartClient SF forums on codeplex where team members for that factory hang around and should be able to better guide you through its specifics.

From the stack trace you posted I can tell a few things: 1) it looks like ViewTemplateReference reference is using helper methods that are throwing exceptions (for some reasons) and this is not allowed in GAX, why it started throwing now is something that SCSF team members should help you realize; 2) if you don't have the "c:\dev" path it may be the case that you're using PDB with symbols compiled on somebody else machine.

thanks,

-Victor.

vga  Friday, September 07, 2007 5:14 AM

Hi kijac,

You should post this to the SmartClient SF forums on codeplex where team members for that factory hang around and should be able to better guide you through its specifics.

From the stack trace you posted I can tell a few things: 1) it looks like ViewTemplateReference reference is using helper methods that are throwing exceptions (for some reasons) and this is not allowed in GAX, why it started throwing now is something that SCSF team members should help you realize; 2) if you don't have the "c:\dev" path it may be the case that you're using PDB with symbols compiled on somebody else machine.

thanks,

-Victor.

vga  Friday, September 07, 2007 5:14 AM

You can use google to search for other answers

Custom Search

More Threads

• Newbie Problem
• Adding a recipe to a GAT package to create a view/presenter as in SCSF
• Tools.GenerateLocalResource
• GAT July 2007 and SCSF fails to install on Vista and VS 2008
• Web Service Software Factory (WCF) - cannot add service reference
• Guidance Package Visual Studio 2005 Project Template not installed on Win XP Service Pack 2
• Combining GAT and CAB
• Application Block Software Factory templates don't appear in VS 2008
• Is there a way to use the current Software Factory for Windows Mobile 6?
• Error In GAT