4 Replies - 10175 Views - Last Post: 16 March 2012 - 09:25 AM

#1 leana  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 23-January 12

I have a error in the windows phone application !

Posted 16 March 2012 - 03:48 AM

hi
I have a error in the windows phone application

When I open a new project
This error appears instead of the form

[color="#FF0000"]An unhandled exception has occurred[/color]
[u]click here to reload the designer[/u]
[color="#0000FF"]System.ArgumentNullException
Value cannot be null.
Parameter name: parentContext
   at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext..ctor(IMetadataContext parentContext)
   at MS.Internal.Host.ProjectMetadataContext..ctor(IMetadataContext platformMetadata, AssemblyReferenceProvider referenceProvider)
   at MS.Internal.Host.ProjectMetadataContext.FromReferences(AssemblyReferenceProvider referenceProvider)
   at MS.Internal.Designer.VSDesigner.GetMetadataForDesignerContext(DesignerContext designerContext)
   at MS.Internal.Host.PersistenceSubsystem.Load()
   at MS.Internal.Host.Designer.Load()
   at MS.Internal.Designer.VSDesigner.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load()
   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view)
   at MS.Internal.Host.Isolation.IsolatedDesigner.Load()
   at MS.Internal.Designer.DesignerPane.LoadDesignerView()[/color]

i use (visual studio 2010) (silver light 5)

Help me please..
thanks.

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: I have a error in the windows phone application !

#2 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 465
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: I have a error in the windows phone application !

Posted 16 March 2012 - 04:02 AM

you will get better help if you post the code that gives you the error. also you may tell us and at what line do you get it. can you debug your code? i`m not sure if you can debug working for windows phone but still here is a tutorial on debugging that you may find helpful:
Debugging
Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6092
  • View blog
  • Posts: 23,612
  • Joined: 23-August 08

Re: I have a error in the windows phone application !

Posted 16 March 2012 - 04:03 AM

And, moved to the Windows Phone forum
Was This Post Helpful? 0
  • +
  • -

#4 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1525
  • View blog
  • Posts: 5,961
  • Joined: 21-March 08

Re: I have a error in the windows phone application !

Posted 16 March 2012 - 04:45 AM

Do you have any converters in your project that are being used on this form? If so, the first line of code in those converters should be...

if (object == null)
    return string.Empty;


Was This Post Helpful? 1
  • +
  • -

#5 leana  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 23-January 12

Re: I have a error in the windows phone application !

Posted 16 March 2012 - 09:25 AM

View Postraziel_, on 16 March 2012 - 04:02 AM, said:

you will get better help if you post the code that gives you the error. also you may tell us and at what line do you get it. can you debug your code? i`m not sure if you can debug working for windows phone but still here is a tutorial on debugging that you may find helpful:
Debugging

---------------------------------------------------------------------------------------
I do not have any code
I just opened a new project, in (visual studio 2010)--(silverlight for windows phone)--(windows phone application)
then this problem appeared

i have only this code in my project.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace WindowsPhoneApplication1
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }
    }
}


help me please...

Attached image(s)

  • Attached Image

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1