C# Microsoft Csharp dll和SQL

C# Microsoft Csharp dll和SQL,c#,sql,sqlclr,C#,Sql,Sqlclr,我有一个由SQL存储过程(CLR)调用的c#类库。类库执行一些计算并将表返回给SQL 我以前在SQL中添加过程序集,但是在添加类库时。我得到以下错误 'MyExporter' references assembly 'microsoft.csharp, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.', which is not present in the current database. SQL Serv

我有一个由SQL存储过程(CLR)调用的c#类库。类库执行一些计算并将表返回给SQL

我以前在SQL中添加过程序集,但是在添加类库时。我得到以下错误

'MyExporter' references assembly 'microsoft.csharp, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request.
我做了一些研究,发现SQL不支持Microsoft.charp库。我需要删除类库中对microsoft.charp的任何引用。现在,我已经从类库的参考部分删除了microsoft.charp,并且使用了dynamic关键字。我现在把它改成了object

目前,我在我的C#库中得到一个错误,如下所示

Severity    Code    Description Project File    Line    Suppression State
Error   CS0656  Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.Binder.Convert'    Optimal.SynTI.Exporter  D:\Workspace\SynTQV5 Projects\MyExporter\DataCollater.cs    731 Active
我知道这一行代码不会给你任何洞察力,但这就是c#错误所在

// Select the first item as the sheet ID.
// Get the Sheet Id from the array.
iNVls.SheetID = item.FinalData[0].Value;
我还在类库中使用Linq,我是否也必须删除对Linq的任何引用


谢谢

编译时或调用SQLCLR过程时是否出现错误?编译c#类库时可能出现重复。。在这种情况下,听起来好像您还有剩余的东西要引用
Microsoft.CSharp
Juan-我已经浏览了您之前指定的链接。我了解Microsoft.Charp无法安装到SQL中,我已经成功安装了system.web。谢谢。编译或调用SQLCLR过程时是否会出现错误?编译c#类库时可能会出现重复。。在这种情况下,听起来好像您还有剩余的东西要引用
Microsoft.CSharp
Juan-我已经浏览了您之前指定的链接。我了解Microsoft.Charp无法安装到SQL中,我已经成功安装了system.web。非常感谢。