我从git存储库克隆了一个应用程序,应用程序构建没有错误和警告,但是当我运行应用程序时,我收到以下错误:错误500:System.TypeLoadException无法加载字段类型'Microsoft.Owin.Security.ActiveDirectory . WsFedMetadataRetriever:CS $ <> 9__CachedAnonymousMethodDelegate5'(1)由于:无法使用标记01000045解析类型(来自typeref,类/程序集System.IdentityModel.Metadata.KeyDescriptor,System.IdentityModel,Version = 4.0.0.0,Culture = neutral, PublicKeyToken = b77a5c561934e089)assembly:System.IdentityModel,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089类型:System.IdentityModel.Metadata.KeyDescriptor成员:(null)签名:

我尝试通过将以下内容添加到web.config文件来解决此问题:

<dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
      </dependentAssembly>
    <dependentAssembly>

......但我仍然得到错误;我正在使用Visual Studio Community 2017 for Mac . 我能得到一些帮助吗?