专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > DotNet Exception

fatal error LNK1215: 元数据操作失败(8013110E)

发布时间:2011-06-26 20:26:52 文章来源:www.iduyao.cn 采编人员:星星草

最近整理一个以前的项目,刚开始修改时一切正常,编译、运行都没有问题,可今天突然不能生成了,提示以下错误:
-----------------------------------
正在生成代码...
正在链接...
FormMain.obj : fatal error LNK1215: 元数据操作失败(8013110E) : 数据库文件已损坏,可能无法使用。
-----------------------------------

我其实都没有修改这个文件,它就这么突然不能链接了,晕死! 因很久没用VC.net了,实在找不到头绪,烦请各位帮忙指导一下!!

------解决方法--------------------------------------------------------
In some other cases, this had to do with the order of #using <> statements
if you're including header files that also have #using <> statements).  Make
sure you're not #using anything twice if you don't need to or at all if you
don't need it.

This usually happens because somehow the compiler puts
slightly different metadata in two modules for the same type. At link time,
when the metadata is merged, this error is emitted because the name for the
type is the same, but there is some discrepancy in the rest of the metadata
describing that type. The first thing I would look at are the command line
options used to compile the two modules, and then I would look at the
includes leading up to the definition of the type for the two modules. Both
of these things can sometimes affect the metadata for a type. If these
don't yield any clues, then I would use metainfo to dump the metadata for
the two object files, and look for the differences that way. Often this
will lead you back to the includes or the command line options
------解决方法--------------------------------------------------------
怎么感觉好像是跟数据库有关系呢?
------解决方法--------------------------------------------------------
中途修改过.net版本没?
msdn 上的解释:链接器和 .NET 运行库可能不匹配;重新安装 Visual C++。

------解决方法--------------------------------------------------------
这个问题比较麻烦啊,不知道重新编译可行不?
------解决方法--------------------------------------------------------
KANIKAN
------解决方法--------------------------------------------------------
可能是你的包含目录有问题。tools->options->projects and solutions->vc++ directories->show directories for:->library files看看这个当中的目录有没有改变呢.

    
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: