The type 'System.Object' is defined in an assembly that is not referenced

Posted dmyao

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The type 'System.Object' is defined in an assembly that is not referenced相关的知识,希望对你有一定的参考价值。

记录一个错误,报 The type ‘System.Object‘ is defined in an assembly that is not referenced,[System.Runtime]

 

配置文件加上后仍报错! 

<system.web>

    <compilation debug="true" targetFramework="4.5">
      <assemblies>
        <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      </assemblies>
    </compilation> 
  </system.web>

 

解决方法:移除Bin System.ValueTyple.dll rebuild成功。
 

以上是关于The type 'System.Object' is defined in an assembly that is not referenced的主要内容,如果未能解决你的问题,请参考以下文章

Format specifies type 'int' but the argument has type 'struct node *'

CORE EF The expected type was 'System.String' but the actual value was of type 'System.G

The expected type was 'System.Int64' but the actual value was null.”

The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.

debian The type initializer for 'System.Drawing.KnownColors' threw an exception

Element 'beans' cannot have character [children],because the type's content type is elem