Failed to create AppDomain 'xxx'. Exception has been Failed to create AppDomain

一服务器上的数据库全部被置于紧急模式(EMERGENCY),在错误日志里面能看到大量下面的错误

Failed to create AppDomain "YourSQLDba.dbo[runtime].79". Exception has been thrown by the target of an invocation.

Failed to create AppDomain "YourSQLDba.dbo[runtime].76". Exception has been thrown by the target of an invocation.

....................................................................

在Error Log里面,我们可以看到甚至包括YourSQLDba这个库也被设置为单用户模式、紧急模式。如下截图所示,这个发生在凌晨YourSQLDba_FullBackups_And_Maintenance作业启动做备份、维护的时候。

Google 搜索了一下这方面资料,看到了官方的一个解释,如下所示。 具体参考这个链接Failed to create AppDomain "master.sys[runtime].X"

Microsoft 在 2011/12/6 於 22:24 公佈

Errors like:
Msg 6517, Level 16, State 1, Line 3
AppDomain "MDS.dbo [runtime] .20" Could not create.
Exception has been thrown by the target of an invocation.

come
directly from .NET/CLR itself. It's usually about some inconsistency
with the CLR/.NET itself. It means the CLR installation is corrupted
(unlikely), or, more likely, a .NET patch was recently installed and the
machine is pending a reboot.
Let us know if reboot doesn't fix the problem.
About the upgrade failure from upgrade step 677 to 678: this issue is fixed in Denali RC1.

翻译过来就是:这个错误通常是.NET/CLR 它本身导致的,通常是由于CLR/.NET它本身的一些不一致性导致(inconsistency),这意味着CLR安装损坏了(这个不太可能),大部分是由于最近安装了.NET 补丁,服务器没有重新启动导致。


续查找更早的日志,其实发现9号就有这个“Failed to create AppDomain
"YourSQLDba.dbo[runtime].xx". Exception has been thrown by the target of
an invocation"这个错误出现,告警邮件也有收到,只是忙于处理其它事情,没有留意。

检查系统日志(Windows NT System log),发现确实存在Microsoft .NET Framework 自动更新的记录。如下所示

另外在”控制面板“->"程序”->"程序和功能“->"已安装更新"里面可以看到

解决方法很简单,需要重启数据库服务器来解决这个问题。

 

时间: 2024-09-19 09:51:10

Failed to create AppDomain 'xxx'. Exception has been Failed to create AppDomain的相关文章

Failed to issue method call: Unit httpd.service failed to load: No such file or directory.

centos7修改httpd.service后运行systemctl restart httpd.service提示 Failed to issue method call: Unit httpd.service failed to load: No such file or directory. 执行 systemctl daemon-reload 在次运行即可 systemctl restart httpd.service  这是由于没有重新加载/usr/lib/systemd/system

java.io.IOException: open failed: ENOENT (No such file or directory)open failed: EISDIR (Is a directory)

这一类的错误,原因一般有两点: 1.没有给相应读写文件权限 2.给了权限,但是文件的路径写的不对,比如少了"/",这样就会报错了.   Caused by: android.system.ErrnoException: open failed: EISDIR (Is a directory) 这个异常是因为在SD卡中创建目录文件夹的时候,应该一层一层的创建文件夹,例如:我要创建"/mnt/sdcard/zhufu/apkbus"这样的路径文件夹,其中"zh

SQL Sever 博客文章目录(2016-07-06更新)

SQL Server方面的博客文章也陆陆续续的写了不少了,顺便也将这些知识点整理.归纳一下下.方便自己和他人查看.   MS SQL 数据类型   三大数据库对比研究系列--数据类型   MS SQL 表和视图   数据库表的基本信息,你知道吗? 数据查询表,列名对比 MS SQL 建表SQL的脚本 查看数据库.表.索引的物理存储情况 慎用SELECT INTO复制表   MS SQL 索引约束 [翻译] 聚集索引表 VS 堆表 SQL SERVER 中is null 和 is not null

NLS_LENGTH_SEMANTICS参数引申的问题

由于某项目的特殊性,开发数据库环境有两套,两边都可能对表结构进行一些修改,因此写了一个工具,比对两边的结构元数据,其中碰到一个问题,很细微,但确实值得注意,在此记录下. 问题: 比对两个环境中同一张表的同一个VARCHAR2类型的字段长度时,发现一个环境中其长度是30,一个环境中其长度是120,两个环境中建表语句该字段定义都是VARCHAR2(30). 比较字段长度使用的是user_tab_cols视图中DATA_LENGTH这个字段. 分析过程: 1. 查看文档中对DATA_LENGTH的定义

MySQL用户管理及SQL语句详解

1.1 MySQL用户管理 1.1.1 用户的定义 用户名+主机域 mysql> select user,host,password from mysql.user; +--------+------------+-------------------------------------------+ | user | host | password | +--------+------------+-------------------------------------------+ | r

Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx': no matching editors or conversion strategy found

今天在完成项目的时候遇到了下面的异常信息: 04-Aug-2014 15:49:27.894 SEVERE [http-apr-8080-exec-5] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [cms] in context with path [/cms] threw exception [Request processing failed; nested excep

I.MX6 Ethernet UI patch failed

/*********************************************************************** * I.MX6 Ethernet UI patch failed * 说明: * 最近想要在I.MX6的Android上添加Ethernet UI界面,但是使用NXP提供的 * patch,结果失败了. * * 2016-4-21 深圳 南山平山村 曾剑锋 ************************************************

timed out-使用qq邮箱发送邮件出错Mail server connection failed

问题描述 使用qq邮箱发送邮件出错Mail server connection failed 发送邮件失败,求解答 Exception in thread "main" org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Exception reading response; nested

nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException

You should autowire interface AbstractManager instead of class MailManager. If you have different implemetations of AbstractManager you can write @Component("mailService") and then @Autowired @Qualifier("mailService") combination to au