Cannot create %1!s! on view '%2!s!' because it references CLR routine (function or method) '%3!s!' outside non-key columns ...

Cannot create %1!s! on view '%2!s!' because it references CLR routine (function or method) '%3!s!' outside non-key columns of SELECT list. Recreate or alter view so it does not reference CLR routines except in non-key columns of SELECT list, and then create index.