3

Closed

Can't create a new BusinessModule

description

I started with my existing solution, copied the Library folder, referenced all assemblies within it from my WAP, edited web.config, added the following:
 
GlobalSection(ExtensibilityGlobals) = postSolution
     IsWCSFSolution = True
     IsWCSFSolutionWAP = True
     RootNamespace = Company
EndGlobalSection
 
just before "End Global" in my sln file.
 
I can now run the "Add New View" recipe successfully, but trying to execute "Add New Business Module", I get a recipe framework error:
 
An exception occurred during the binding of reference or execution of recipe CreateModuleCS. Error was: The following arguments are required and don't have values: RootNamespace, ModuleNamespace, ModuleTestProjectNamespace. Can't continue execution..
 
Microsoft.Practices.RecipeFramework.RecipeExecutionException: An exception occurred during the binding of reference or execution of recipe CreateModuleCS. Error was: The following arguments are required and don't have values: RootNamespace, ModuleNamespace, ModuleTestProjectNamespace. 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.ExecuteFromTemplate(String recipe, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.ExecuteRecipe(Boolean executeActions)
at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate.RunFinished()
 
Why is it telling me I don't have any value in RootNamespace? Have I forgot someting? I figured out that ModuleNamespace is created from RootNamespace, as do probably ModuleTestProjectNamespace, so I'm suspecting that something is preventing from RootNamespace being filled correctly... :-(
Closed Mar 10, 2008 at 5:48 PM by MichaelPuleio
Added upgrade instructions to the Help

comments

MarkCline wrote Jul 16, 2007 at 10:02 PM

I also got this same issue under the same circumstances. I eventually got it to work, but I changed so many things, I'm not quite sure what did the trick. I'll have to restore my application and retrace my steps to help out more.

Specifically, the problem would actually create part of the business module - half the references would be there, but half were missing. Also, the classes were there, but they still had the variables in them like $rootnamespace$.

I was also trying to upgrade an existing WAP project to use WCSF.

ondrejsv wrote Aug 7, 2007 at 11:14 AM

This is now resolved, although I don't know why :-). I simply deleted the lines I had added to the solution file (those just before End Global) and copied them again from a QuickStart solution. And magic happened. Do not ask me why, they look exactly identical... maybe some whitespace character is to blame...?

(I don't know how to close or cancel this item, sorry)

wrote Jan 16, 2008 at 2:38 AM

Adam wrote Jan 16, 2008 at 2:49 AM

I had the exact same issue. I can confirm it is due to some characters though I dont know what exactly, I did try to find out.

Copying from the quickstarts fixes the problem.

wrote Mar 10, 2008 at 5:48 PM

suterma wrote Jan 4, 2012 at 1:20 PM

The copy-paste magic worked for me too (For the same error in a Smart Client Softwarefactory project though)

wrote Feb 21, 2013 at 11:03 PM

wrote May 16, 2013 at 10:43 AM