When the yoursqldba_logbackups job on the SQL Server database server for a factory makes a transaction log backup, an unexpected exception occurs, and the exception error message points to the. NET Framework, When this problem occurs, I generally estimate that the server automatically applies the .net the framework of some patches caused, because previously also encountered such errors, so to check the server, found that this is true, see the following
 
< step >
<CTX>ymaint.backups</ctx>
<Err>err:6522 A. NET Framework error occurred during execution of user-defined routine or aggregate "clr_execandlogallmsgs ":
System.BadImageFormatException:Bad IL Range.
System.badimageformatexception:
at System.Data.SqlServer.Internal.XvarWlobStream.GetSqlChars ()
In procedure Clr_execandlogallmsgs:at line 0</ err >
</ step >
A common cause of 6522 errors may be the following:
&NBSP;
· corrupt download or incomplete installation of the. NET Framework software.
· corruption in Windows registry from a recent. NET framework-related software Change (install or uninstall).
· virus or malware infection that have corrupted Windows system files or. NET framework-related Program files.
· another program maliciously or mistakenly deleted. NET framework-related files.
In fact, from the above, because when the patch is automatically applied, no installation is complete, you need to restart the server to complete the installation update. Windows update also prompts for a restart to complete the update. So it caused the YOURSQLDBA. Some assembly exceptions, an error message appears.
YOURSQLDBA encountering the net Framework error 6552