Xaml cannot create an instance of “X”
2012-03-07 12:04
169 查看
This is because instantiating ApplicationsSettings throws an exception. If you add the following to your constructor, you should be fine;
try { settings = IsolatedStorageSettings.ApplicationSettings; } catch (System.IO.IsolatedStorage.IsolatedStorageException e) { // handle exception }
这是因为有可能出现异常,需要在构造函数中作出判断,抛出异常。
相关文章推荐
- Uncaught Error: [Ext.createByAlias] Cannot create an instance of unrecognized alias: layout.card
- Cannot create an instance of OLE DB provider "OraOLEDB.Oracle" for linked server "xxxxxxx".
- 关于ADF JDeveloper 11g 的 Unable to create an instance of the Java Virtual Machine
- silverlight安装后仍然提示安装以及打开vs的xaml页面提示Object reference not set to an instance of an object 错误
- An AVPlayerItem cannot be associated with more than one instance of AVPlayer错误
- Unable to create an instance of the Java Virtual Machine Located at path:
- Unable to create an instance of the Java Virtual Machine
- An AVPlayerItem cannot be associated with more than one instance of AVPlayer
- sqldeveloper启动时报 Unable to create an instance of the Java Virtual Machine Located at path: ../../jdk/jre/bin/client/jvm.dll 错误
- SQL Developer 4.0 启动报错“unable to create an instance of the java virtual machine located at path”
- An AVPlayerItem cannot be associated with more than one instance of AVPlayer
- An AVPlayerItem cannot be associated with more than one instance of AVPlayer'
- run jdeveloper, unable to create an instance of the Java Virtual Machine Located at path:
- An AVPlayerItem cannot be associated with more than one instance of AVPlayer
- An AVPlayerItem cannot be associated with more than one instance of AVPlayer
- Oracle SQL developer Unable to create an instance of the Java Virtual Machine
- 如何处理Jdeveloper 启动时出现的错误-Unable to create an instance of the Java Virtual Machine
- oracle jdeveloper 11g 安装到quickstart选择启动 异常:Unable to create an instance of the Java Virtual Machine
- sqldeveloper 启动时报 Unable to create an instance of the Java Virtual Machine Located at path: ...
- Oracle SQL Developer - Unable to create an instance of the Java Virtual Machine