We have developed an assembly for SQL Server 2008 R2.
The assembly has been working for a week. The managed stored proc inside the assembly was working fine for the
Just in case someone comes across this problem, the solution that worked for me was:
ALTER AUTHORIZATION ON DATABASE::[mydb] TO sa;
followed by
ALTER DATABASE [mydb] SET TRUSTWORTHY ON;
I am restoring my db with the Administrator account, and nothing else other than the combination of these two calls has worked for me.
Substitute [mydb] for [yourdatabasename]