Bir CLR TVF (tablo değeri işlevi) dağıtmaya çalışıyorum. Kodda bazı JSON dizesini ayrıştırmak için JavaScriptSerializer kullanıyorum, bu yüzden System.Web.Extensions dll'ye başvuruyorum ve sorunlarım orada başlıyor.Sql Server CLR yükleme derlemesi başarısız oldu
Projesi ince oluşturur, ancak aşağıdaki hatayı alırsınız Dll kayıt çalıştığınızda:
ben kopya yükü ayarlayabilirsinizC:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Web.Extensions.dll
:
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.
ben den System.Web.Extensions başvurulan doğru ya da el ile derleme kopyalayın, ancak başvuru hataları daha derinlere girin -
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 Webthing.txtensions.dll başvurulan kadar çok güzel çalışıyor. Hedef Çerçeve .NET'dir. 4.
Herhangi bir fikir/çözüm var mı?
.Net 4 Framework, SQL Server makinesinde yüklü mü? –
Evet, dediğim gibi, System.Web.Extensions.dll başvuruyorsa, her şey iyi çalışıyor. – Klark