I created a WCF procedure that employs a company internal web service that comes with a whole bunch of assemblies to be deployed. That worked fine on my local 2008 R2 32-bit
so far.
When trying to deploy the involved assemblies on a SQL Server 2008 (not R2) 64-bit
like this:
ALTER DATABASE sqlclr SET TRUSTWORTHY ON
CREATE ASSEMBLY [Common.LargeSetPersistence]
FROM G:\CRTS\DataService\DataService.QueryBrowser\Common.LargeSetPersistence.dll'
WITH PERMISSION_SET = UNSAFE;
This works so far, but the next attempt:
CREATE ASSEMBLY [DataService.Client.WCF]
FROM 'G:\CRTS\CRP\DS_to_DB\DataService.Client.WCF.dll'
WITH PERMISSION_SET = UNSAFE
results in the following error:
Msg 10300, Level 16, State 2, Line 1
Assembly 'DataService.Client.Core' references assembly 'common.largesetpersistence,
version=0.0.0.0, culture=neutral, publickeytoken=null.', 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: version, culture or public key mismatch). Please load the referenced
assembly into the current database and retry your request.
The required assembly has just been successfully installed though?! Also the version=0.0.0.0
seems a little bit odd to me.
All the assemblies have been built with Any CPU
flag, so it should not be a 32/64-bit
issue.
Any help is appreciated.