Issue with adding Business module to a WCSF project

已鎖定 Issue with adding Business module to a WCSF project

  • 2011年10月25日 下午 07:58
     
     

    Hi All,

    I am working on a .net WCSF project. I am using VS 2008 for this purpose. I have a project solution with around 150 projects associated to it.

    Issue: When I try to add a new business module to the solution, I am not able to select a website from the websites dropdown which is located below the module name text box on the "Add Business Module" dialog box.

    I have added the below section in to my ".sln" file to enable adding a new business module.

        GlobalSection(ExtensibilityGlobals) = postSolution
            IsWCSFSolution = True
            RootNamespace = IRIS
        EndGlobalSection 

    I tried reinstalling the guidance package but that didn't solve the problem. If I still go ahead without selecting the website I get the following error.

     

    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, ModuleInterfaceProjectNamespace, ModuleWebsiteNamespace, RootWebsitePath, SubWebsitePath. 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()

    Please let me know if I am missing some configuration here. Suggestions are welcome.

    Looking forward for any reply here.

    Thanks in advance
    Sree


    • 已編輯 Sreejuchak 2011年10月25日 下午 08:05
    •  

所有回覆

  • 2011年10月26日 下午 10:03
     
     已答覆

    Guys,

    I have figured out the solution.

    Solution:

    1. Close the project solution completely.
    2. Add the file vwd.webinfo file in the websites root folder.
    3. Edit the .sln file(project solution file) and add the below section at the end of file before the "EndGlobal" statement.
      GlobalSection(ExtensibilityGlobals) = postSolution
          RootNamespace = IRIS
          IsWCSFSolution = True
      EndGlobalSection
    4. This should solve the problem. Open the solution file as usual and continue working... :)

    Regards,
    Sree.


    • 已編輯 Sreejuchak 2011年10月26日 下午 10:04 correction
    • 已標示為解答 Sreejuchak 2011年12月19日 下午 04:52
    •