This project is read-only.
1
Vote

Smart Client Recipe Framework Error

description

Hi All, hope someone can help with this.
 
I am trying to create a disconnected service agent. I have rebuilt my machine in a vein hope of resolving this issue but this has not helped.
 
I have VS 2008 Professional installed. I have setup a simple web server. (code from Microsoft Mobile Development Handbook) I have installed the Smart Client Software Factory V2008 and confirmed I have all dependancies installed. However once I have setup my web reference, right click, click on Smart Client Factory, then on Create Disconnected Service Agent I get the below error? I also get the same error if I try and create a new project Guidance Package, Smart Client Development. These errors also appear for VB and C# code.
 
Output window created.
    (*) Error: 0 : Microsoft.Practices.RecipeFramework.ValueProviderException: An exception occurred during the binding of reference or execution of recipe CreateDisconnectedServiceAgentCS. 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.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
    (*) Error: 0 : Microsoft.Practices.RecipeFramework.ValueProviderException: An exception occurred during the binding of reference or execution of recipe CreateDisconnectedServiceAgentCS. 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.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()
 
Regards
 
Tom

comments

Yazanzdn wrote Mar 7, 2011 at 11:31 AM

Hi Tom,
Hope you are doing well,
i dont know if you solve this problme or not yet.

i face a similar problem with the vs 2010 and i found a solution and may be it will help you and all the people whom face this problem, i can create anew smart clinet application with out any error, but when i open a specific solutiona and try to add a view , or a buisness module i got the smae error you mention above.
i try to open this solution on a different machines and it still the smae with the same error.
so i conclude that the problem is from the solution file it self , it was missing some libraries refereces in the gloabal section, and it should be like this :

GlobalSection(NestedProjects) = preSolution
    {ABDC9D03-F0C7-4A93-9BDC-91825B509A71} = {1D1FCA73-A79C-4101-8C82-4AE4134EBCD8}
    {80AEBBA4-0963-4019-B217-2F03F810C52A} = {1D1FCA73-A79C-4101-8C82-4AE4134EBCD8}
    {02EC5BC4-4257-4914-AD26-756E95998976} = {1D1FCA73-A79C-4101-8C82-4AE4134EBCD8}
    {68106359-0E28-4D0D-AB3F-31FA0CE5EF77} = {1D1FCA73-A79C-4101-8C82-4AE4134EBCD8}
    {A472DA0F-67E5-4DCD-91D4-697820CB628F} = {1D1FCA73-A79C-4101-8C82-4AE4134EBCD8}
    {190657C7-A9D8-4348-8A43-D5BC5C6EE455} = {ABDC9D03-F0C7-4A93-9BDC-91825B509A71}
    {B0391830-775F-475E-AD56-4AE25574FFBE} = {ABDC9D03-F0C7-4A93-9BDC-91825B509A71}
    {EB436117-1686-4110-958C-13CD9D5B67F4} = {ABDC9D03-F0C7-4A93-9BDC-91825B509A71}
    {0520FF64-C809-4D97-B17F-8CDF31B5478B} = {ABDC9D03-F0C7-4A93-9BDC-91825B509A71}
    {378C7BC1-2A26-4F27-B25C-5519663A9D58} = {ABDC9D03-F0C7-4A93-9BDC-91825B509A71}
    {2C5768B1-DCEE-4E47-8E17-3A94CDB25A9A} = {80AEBBA4-0963-4019-B217-2F03F810C52A}
    {2C5768B1-DCEE-4E47-8E17-3A94CDB25A9A} = {80AEBBA4-0963-4019-B217-2F03F810C52A}
    {48EF5252-862E-4E1A-9B78-6A3BAEA54F17} = {02EC5BC4-4257-4914-AD26-756E95998976}
    {48EF5252-862E-4E1A-9B78-6A3BAEA54F17} = {02EC5BC4-4257-4914-AD26-756E95998976}
    {70E63A95-6C54-4982-B514-8652AE643D6F} = {68106359-0E28-4D0D-AB3F-31FA0CE5EF77}
    {00740061-0061-0041-6300-630065007300} = {68106359-0E28-4D0D-AB3F-31FA0CE5EF77}
    {4E3AD294-E48A-4F33-BEB7-120295D54621} = {68106359-0E28-4D0D-AB3F-31FA0CE5EF77}
    {70E63A95-6C54-4982-B514-8652AE643D6F} = {A472DA0F-67E5-4DCD-91D4-697820CB628F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
    RootNamespace = Enrollment
    CommonProjectGuid = 190657c7-a9d8-4348-8a43-d5bc5c6ee455
    ShellProjectGuid = 0520ff64-c809-4d97-b17f-8cdf31b5478b
EndGlobalSection
EndGlobal

and when i do this change to the solution file it works fine ,


Regards
Yazan Nasereddin


i do the follwing steps :
  1. i creat a new smart client application and it works fine.

wrote Feb 22, 2013 at 12:30 AM