Gilad Lavian's Blog

In Development

SmartClient: Changing the Projects File System Structure

When creating a new smart client project by GAT (Guidance Automation Toolkit) the projects structure hierarchy on the file system is also created by the GAT.

Suppose I move the projects to another location on the file system and to and include this projects in different solution, then, I try to add a new BusinessModule, I will get the following exception:

 

Microsoft.Practices.RecipeFramework.ValueProviderException: An exception occurred during the binding of reference or execution of recipe CreateBusinessModuleCS. Error was: An error happened while calling the value provider or evaluating the default value of argument ShellProject.

 

The SmartClient searches for the root ShellProject in the solution, but since I moved the SmartClient projects to another solution in a different folder on the file system, it couldn't find it.

 

To resolve this situation, take the following steps:

  1. Go to the solution.sln file created by the GAT.
  2. In the solution.sln file, find this line: GlobalSection(ExtensibilityGlobals) = postSolution and copy the entire block.
  3. Paste the copied clock to the current solution.sln where you just moved your SmartClient projects (Infrastructure.Interface, Infrastructure.Library, Shell...).

The entire block should look like this:

 

GlobalSection(ExtensibilityGlobals) = postSolution
        RootNamespace = YourSmartClientSoulitionName
        CommonProjectGuid = f8120216-d992-4073-98b1-1fb43a16e73d
        ShellProjectGuid = cc5c6234-2ae4-4819-be7d-044e89968528
EndGlobalSection

 

Close and reopen the solution, try to add new BusinessModule.

Comments

Faisal said:

I have the same problem with you and now it solved. Thanks

# December 4, 2008 10:42 AM

Gilad Lavian said:

You have the same problem with me?? :-)) I wish i was a SmartClient...

Glad to help :-)

# December 9, 2008 6:41 AM

Paul said:

Thanks for the help. For anyone else who needs this the CommonProjectGuid is the Guid of your Infrastructure.Interface proj (found in the same file)

# January 22, 2009 3:15 AM

Wendy said:

Thank you for this, i had the same issue and now its resolved.

# February 10, 2009 10:23 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: