本文介绍了如何解决'PropertyMetadataProvider'的类型初始值设定项引发异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编写此代码时,我收到此错误

ServerConnection svconn = new ServerConnection(M218-DINA,DM,1234567);

Server sv = new Server(svconn);



数据库db = sv.Databases [oldDatabase];

就行了数据库db = sv.Databases [oldDatabase];

System.TypeInitializationException:'PropertyMetadataProvider'的类型初始值设定项引发异常

when i write this code i get this error
ServerConnection svconn = new ServerConnection("M218-DINA", "DM", "1234567");
Server sv = new Server(svconn);

Database db = sv.Databases["oldDatabase"];
on the line Database db = sv.Databases["oldDatabase"];
System.TypeInitializationException: The type initializer for 'PropertyMetadataProvider' threw an exception

推荐答案

这篇关于如何解决'PropertyMetadataProvider'的类型初始值设定项引发异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-15 22:12