I am making a voyage into the unknown and working with SQL Server CLR for the first time. I have built a DLL but when I run
CREATE ASSEMBLY FROM 'C:\Users\...\Visual Studio 2010\Projects\...\bin\Debug\MyDLL.dll'
I get an error
CREATE ASSEMBLY for assembly failed because assembly failed verification. Check if the referenced assemblies are up-to-date and trusted (for external_access or unsafe) to execute in the database. CLR Verifier error messages if any will follow this message
I am trying to install this on a 2008 Developer Edition instance.
When I check the VS project references there are lots (System, System.Core,System.Data etc) that point to .NETFramework v4.0. Is this an issue? How do I change them?
I have tried the `CREATE ASSEMBLY` with `WITH PERMISSION_SET = EXTERNAL_ACCESS` but that has made no difference.
The VS project is a DLL project, not a SQL CLR project as when I tried that type I couldnt use IMPORTS System.DirectoryServices in the module.
Any/all advice and pointers to good reference materials welcomed.
↧