当前位置:编程学习 > C#/ASP.NET >>

出现"因值类型不匹配而未能从程序集“mscorlib...."错误怎麽解决

当我打开某个窗口设计器的时候会下面的提示。。。。

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

因值类型不匹配而未能从程序集“mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”加载类型“System.Runtime.InteropServices.ClassInterfaceType”。 
隐藏     

在 System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
在 System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
在 System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
在 System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
在 System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)

......

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

但查看代码的时候没问题。。
这些出问题的窗口是在局域网内的某台机器上更新过来的,,但在本机的程序没问题。。

先谢了!!
--------------------编程问答-------------------- 没遇到过.代码中使用到反射吗? --------------------编程问答-------------------- 什麽是“反射”??

还有,,在别人的机器上打开就没问题。。
在我机器上运行也没有问题,,查看代码也没问题,,就是打开窗口设计器时出现上面的错误提示。。但打开其它项目的窗口设计器就没有错误。。
我也重装过.NET,,也解决了。。
--------------------编程问答-------------------- 晕,,不好意思,,上面最后一句写错了。。

“我也重装过.NET,,也  没有  解决。。”
--------------------编程问答-------------------- 我也遇见这问题了,救命呀
补充:.NET技术 ,  VB.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,