System.IO.FileNotFoundException with SqlClient

后端 未结 4 1477
旧时难觅i
旧时难觅i 2021-01-17 20:08

After fixing my problem as mentioned here I am getting the below exception

System.IO.FileNotFoundException: \'Could not load file or assembly \'System

4条回答
  •  无人共我
    2021-01-17 20:19

    I guess you may have figured it out already but hope it would save someone precious time

    In order to make everything work you would need to reference System.Data.SqlClient in WebApp .NET Framework 4.6.1 project that is referencing your .NET Standard Library. After that everything should work just fine.

    Sounds like .NET Standard Library haven't grabbed with itself dependent library binary. There is nothing like "Copy Local" option in .NET Standard references so I don't see any way to check or set this behavior too

提交回复
热议问题