纳金网

标题: 这一个在调用Access 数据库的出现的问题和解决办法 [打印本页]

作者: 她。    时间: 2012-11-7 08:51
标题: 这一个在调用Access 数据库的出现的问题和解决办法
ArgumentException: The Assembly System.Configuration is referenced by System.Data. But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch)
UnityEditor.HostView:OnGUI()

这一个在调用Access 数据库 或者Excel的时候在unity内部程序调用的时候是没有问题的,但是当生成Exe的时候就会提示这个错误,错误的大体意思是丢失什么东西了,( System.Configuration .dll)即使你拖进去的时候也是不行的。后来几经波折发现是调用Api Compatibility Level (Player setting) 中的*.Net 2.0 subset,和 *.Net 2.0的差异,把Api Compatibility Level   后的选项改为 *.Net 2.0 就可以搞定问题了。
作者: 王者再临    时间: 2012-11-10 01:35
这个跟野猪的教程里面提到的方式不太一样了

作者: may    时间: 2012-11-30 04:04
支持一下楼主




欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5