User-defined %1!s! '%2!s!' in tempdb cannot be referenced from local temp table '%3!s!' because the temp table is being created ...

User-defined %1!s! '%2!s!' in tempdb cannot be referenced from local temp table '%3!s!' because the temp table is being created in a contained database. Please consult the Books Online topic Understanding Contained Databases for more information on contained databases.