昨天修改了一个工具,编译后本机运行正常,但放到服务器上执行却不行,提示: message:GetOleDbSchemaTable requires an open and available Connection. The connection's current state is closed 重新检查了office相关的dll文件都在,换到安装了offie的服务器也不行. 仔细检查一下代码,发现原来有段异常捕捉给屏蔽掉了(红色部分): using (OleDbConnection oc =…