0

I am going through the Contoso Cookbook examples from the Microsoft Virtual Academy Windows Jumpstart for Windows Phone 8. In trying to run any of the sample code, I get 3 deployment errors.

  1. "The parameter is incorrect"

  2. The member "Instance" is not recognized or is not accessible

  3. The property "Instance was not found in type "DesignDataExtension"

In the xaml code on the mainPage.xaml line 35, it is not recognizing "Instance". but I cannot figure out the cause.

Can anyone tell me why?

Code samples link

Video Series Link

3
  • It would help if you told us which sample you can't run. I've opened two of them at random, and none of them has any "DesignDataExtension" Jul 26, 2013 at 17:55
  • Step 6: Page Navigation code.msdn.microsoft.com/Windows-Phone-8-JumpStart-1b7c34e3
    – perkinda
    Jul 26, 2013 at 19:06
  • mainPage.xaml line 35 LayoutRoot" Background="Transparent" d:DataContext="{d:DesignData /SampleData/RecipeDataSourceSampleData.xaml, Instance={x:Null}}"
    – perkinda
    Jul 26, 2013 at 19:52

1 Answer 1

0

It seems there's two problems.

The first one (parameter is incorrect) is preventing the application from being deployed. To fix it, remove the "%2c" from the folder name (the default folder name is "Windows Phone 8 JumpStart Contoso Cookbook Step 1%2c Initial Layout", it seems to make the deploy process bug somehow). Then delete the ContosoCookbook.suo and ContosoCookbook.v11.suo files located in the C# subfolder.

The second error doesn't prevent the application from working, but crashes the designer. In the attributes of the grid (MainPage.xaml, line 38) :

    <Grid x:Name="LayoutRoot" Background="Transparent" d:DataContext="{d:DesignData /SampleData/RecipeDataSourceSampleData.xaml, Instance={x:Null}}">

Remove the , Instance={x:Null} part and it'll work just fine:

    <Grid x:Name="LayoutRoot" Background="Transparent" d:DataContext="{d:DesignData /SampleData/RecipeDataSourceSampleData.xaml}">
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.