Tôi đang cố gắng triển khai TVR CLR (chức năng giá trị bảng). Trong mã tôi đang sử dụng JavaScriptSerializer để phân tích cú pháp một số chuỗi JSON, vì vậy tôi tham khảo dll System.Web.Extensions và các vấn đề của tôi bắt đầu ở đó.Lắp ráp tải Sql Server CLR không thành công
Dự án xây dựng tốt, nhưng khi tôi cố gắng đăng ký dll tôi nhận được lỗi sau:
Assembly 'my_assembly_name' references assembly 'system.web.extensions, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35.', 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.
Tôi tham chiếu system.web.extensions từ:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Web.Extensions.dll
tôi có thể thiết lập sao chép tải để sao chép đúng hoặc sao chép theo cách thủ công nhưng sau đó tham chiếu đến lỗi sâu hơn -
Assembly 'my_assembly_name' references assembly 'system.servicemodel.activation, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35.', 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.
E verything hoạt động tốt cho đến khi tôi tham khảo Web.Extensions.dll. Khung mục tiêu là .NET 4.
Bất kỳ ý tưởng/giải pháp nào?
Khung .Net 4 có được cài đặt trên máy chủ SQL không? –
yep, như tôi đã nói, mọi thứ hoạt động tốt khi System.Web.Extensions.dll không được tham chiếu. – Klark