New SCSF version for "create new" problem

Coordinator
May 20, 2013 at 1:44 AM
Edited May 20, 2013 at 2:06 AM
Hello everyone,

i got some feedback from people stating that SCSF isn't working correctly on their machine. I had the same problem on my new machine now (Win7 64-Bit, VS2012 Premium, Update2). All these problems remind me of one mysterious SCSF2010 issue: http://smartclient.codeplex.com/discussions/248428. This issue is probably caused by missing or inconsitent assemblies on the system. I have two computers with the same OS and Studio versions and get these error on one machine while it works perfectly on the other one.

What i did now is that i am catching the exception when the "create new project" form is shown and display the error text. The old version just silently closed. I also try to make sure that the assemblies Microsoft.Practices.Unity.dll and Microsoft.Practices.ServiceLocation.dll are available, because these were the ones which made problems on my machines.

So i hope this also solves your problems. Please provide feedback if that did it or the text of the error message. Anyway: I'd like to know if there are still people using CAB/SCSF out there :)

Oliver
Jun 1, 2013 at 4:57 AM
Hello Oliver,

thank you very much for providing a package for VS2012!

I am able to create a new scsf solution and all recipes are working as expected. :)
However if I want to use VS2012 for my existing Solution created with VS2010, I can't get it to work. I can see the "Smart Client Software Factory" Context Menu Item in the Solution Explorer, but "Add View..." is still missing.

I have checked the assembly names, but I can't see any differences.
Is there anything else I can do to find the Problem?

I am using VS2012 Premium Update 2 on Windows 8 64 Bit.

Additionaly, If I want to add a new Module, I receive the following Receipe Framework Error message:
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.. 
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.SmartClientFactory.ValueProviders.GetProjectFromGuidProvider.OnBeginRecipe(Object currentValue, Object& newValue)
   at Microsoft.Practices.RecipeFramework.Recipe.CallProviders(IDictionary providers, IDictionaryService readonlyArguments, IDictionaryService arguments, Boolean isBefore)
   --- End of inner exception stack trace ---
   at Microsoft.Practices.RecipeFramework.Recipe.CallProviders(IDictionary providers, IDictionaryService readonlyArguments, IDictionaryService arguments, Boolean isBefore)
   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.RunStarted(Object automationObject, Dictionary`2 replacementsDictionary, WizardRunKind runKind, Object[] customParams)
Thank you
Marc
Jun 1, 2013 at 9:25 AM
Edited Jun 6, 2013 at 6:23 AM
I needed to extend the solution file of my existing application with the following section:
GlobalSection(ExtensibilityGlobals) = postSolution
    RootNamespace = YourNamespaceComesHere
    CommonProjectGuid = B4216841-2D76-4D7D-B3D2-14A2EF8268FE  <- Infrastructure.Interface Project Id
    ShellProjectGuid = AD29D932-7ACE-4AB0-85F1-160E6E1AB7EA   <- Shell Project Id
EndGlobalSection
Everything is working now :-)
Thank you very much
Coordinator
Jun 2, 2013 at 10:38 AM
Good to hear!
Sep 12, 2013 at 2:27 PM
MarcDrexler wrote:
I needed to extend the solution file of my existing application with the following section:
GlobalSection(ExtensibilityGlobals) = postSolution
    RootNamespace = YourNamespaceComesHere
    CommonProjectGuid = B4216841-2D76-4D7D-B3D2-14A2EF8268FE  <- Infrastructure.Interface Project Id
    ShellProjectGuid = AD29D932-7ACE-4AB0-85F1-160E6E1AB7EA   <- Shell Project Id
EndGlobalSection
Everything is working now :-)
Thank you very much
MarcDrexler, add the above code to which file?
Sep 16, 2013 at 9:03 AM
Just add it to the end.. before "EndGlobal"
    ....
    GlobalSection(ExtensibilityGlobals) = postSolution
        ShellProjectGuid = AD29D932-7ACE-4AB0-85F1-160E6E1AB7EA
        CommonProjectGuid = B4216841-2D76-4D7D-B3D2-14A2EF8268FE
        RootNamespace = Rdhobby.Administration
    EndGlobalSection
EndGlobal
Sep 16, 2013 at 6:06 PM
I have 2 PCs using windows 8 and VS 2012 Update 3. The desktop works fine but the laptop cannot create business module.
Sep 17, 2013 at 2:45 AM
I know why my laptop cannot create business module. I installed Microsoft EnterpriseLibrary 5 a few months ago. Now I removed and everything works fine.