I am testing some SQLCLR code, C# code.
During execution it calls CustomAttributeData.GetCustomAttributes(member);
This fails, stating that System.Data (v 184.108.40.206) could not be found and has not been preloaded etc etc.
Under examination, I see that SQL Server itself (the process) has already loaded System.Data but v 2.0.50727.3053, which was loaded from the GAC.
Inside Visual Studio, the C# project has a ref to System.Data v 220.127.116.11.0 (Specific Version = False).
I am very puzzled, does anyone have any idea what is going on here?
I tried stopping/restarting sql server to no avail, and even tried forcibly loading System.Data from the .NET Framework folder, but this fails saying the assembly is corrupt/malformed !
View Complete Post