Silverlight技术错误 [英] silverlight technology error

查看:66
本文介绍了Silverlight技术错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在Visual Studio 2010中启动新的Silverlight应用程序时,都会显示system.nullrefrenceException异常显示了未处理的错误,所以我该怎么办?请帮助我急....谢谢

whenever i have start new silverlight application in visual studio 2010 it is shown system.nullrefrenceException an exception has unhandled error shown so what can i do??? plese help me its urgent.... thanks

推荐答案

NullReference异常
当您尝试使用属性或调用对象的方法为null时,会发生此错误.更多详细信息:此处 [ MSDN:如何:创建新的Silverlight项目 [ ^ ]
MSDN:演练:创建您的第一个Silverlight应用程序 [ ^ ]
MSDN:适用于Visual Studio 2010的Silverlight设计器 [ ^ ]


万一您尝试访问以下内容,您的Silverlight 设计器就会引发此错误:
安装:用于Visual Studio 2010的Microsoft Silverlight 4工具 [类似的讨论:每个新的Silverlight项目中的设计器异常System.NullReferenceException [
NullReference Exception
This error happens when you try to use a property or call a method of an object that is null. More details: here[^]

A simple use of Visual studio DEBUGGER can tell you the object because of which it is happening. Just look at the stack trace and put a debugger on that line. Check the objects of that line and see if any one is null and you are trying to use that objects property. Handle the same.


As such, if you need to know on how Silverlight projects created, here:
MSDN: How to: Create a New Silverlight Project[^]
MSDN: Walkthrough: Creating Your First Silverlight Application[^]
MSDN: Silverlight Designer for Visual Studio 2010[^]


In case, your Silverlight designer throws this error whenever you try to access:
Install: Microsoft Silverlight 4 Tools for Visual Studio 2010[^]
Refer: Similar discussion: Designer exception System.NullReferenceException in every new silverlight project[^]


这篇关于Silverlight技术错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆