【发布时间】:2017-06-05 11:34:15
【问题描述】:
我使用 windows 安装程序制作了 Web 应用程序安装包,该包在 IIS 中托管应用程序并在 sql server 上安装数据库。它以前工作正常,但突然出现以下错误,数据库未部署在 Sql 服务器上,但 IIS 部署成功。 我在日志文件中收到以下错误
20.01.2017 13:41:53 System.IO.FileNotFoundException:无法加载文件或程序集“Microsoft.SqlServer.BatchParser,Version=11.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91”或其依赖项之一。该系统找不到指定的文件。 文件名:'Microsoft.SqlServer.BatchParser,版本=11.0.0.0,文化=中性,PublicKeyToken=89845dcd8080cc91' 在 System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly 程序集,字符串名称,布尔 throwOnError,布尔 ignoreCase,ObjectHandleOnStack 类型) 在 System.Reflection.RuntimeAssembly.GetType(字符串名称,布尔 throwOnError,布尔 ignoreCase) 在 System.Reflection.Assembly.GetType(字符串名称,布尔 throwOnError) 在 Microsoft.SqlServer.Management.Common.ServerConnection.GetStatements(字符串查询,ExecutionTypes executionType,Int32& statementsToReverse) 在 Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteNonQuery(字符串 sqlCommand,ExecutionTypes executionType) 在 UpdatingWebconfig.Installer1.ExecuteSqlsecond(字符串 strScript、字符串服务器名、字符串 dbName、字符串用户名、字符串密码) 警告:程序集绑定日志记录已关闭。 要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) 设置为 1。 注意:有一些与程序集绑定失败日志相关的性能损失。 要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。
【问题讨论】:
标签: c# sql-server sql-server-2008 web-deployment web-setup-project