I have problem with adding assembly dll in SQL Server 2014. I try to create assemble stored procedure like this
CREATE ASSEMBLY pdf_create FROM 'dll path\test.dll' WITH PERMISSION_SET = SAFE
SQL Server returns this error:
Assembly 'test' references assembly 'system.drawing, version=2.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(Не удается найти указанный файл.)). Please load the referenced assembly into the current database and retry your request.
Help please if you have any ideas
test.dlldepends onsystem.drawing. You need to addsystem.drawingto SQL Server before addingtest.dll.System.Drawingbecause the .NET port of the ZXing library depends on it, and we use that to generate barcodes on the server side, and we have to do it on the server side because Crystal Reports would either ignore an image field not coming from a database, or crash upon trying to display it (and due to other reasons, we are stuck with a certain not very new version of Crystal Reports).