refactoringself.com
SQL Server ~ Creating a CLR User Defined Function Error 181
If you are getting this error and you are creating a UDF using .Net this might be the answer you are looking for.