Question : Windows 64bit SQL 2005 Express CLR Install Mystery

My 32bit .NET application runs SQL 2005 SP3 and uses CLR. The install works fine on XP & Vista. The install fails on XP 64bit & Widows 7 64bit.

The error is in one of my SQL scripts that creates an Assembly:

Error:
“Execution of .NET Framework code is disabled. Set ‘CLR enabled’ configuration option and restart server. (5847)”

Script Code:
CREATE ASSEMBLY MyCode
FROM 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MyCode.dll'
WITH PERMISSION_SET = UNSAFE

HOWEVER when I check the CLR it is enabled. In fact my very first script turns the CLR On and Trustworthy On.

So again, this all works on 32bit machines but not on 64bit.

Suggestions?

Answer : Windows 64bit SQL 2005 Express CLR Install Mystery

The final answer is an install sequence issue and I am using InstallShield. The full solution is here.

If you found this post helpful support Code{the final solution} group. Click the “Like” button and help spread the word…

Random Solutions  
 
programming4us programming4us