且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Microsoft.ExceptionMessageBox不是"发现"

更新时间:2021-10-01 19:28:56

您不能复制和部署自己的,它必须被安装为SQL客户端组件的一部分装配。有不同的客户端组件SQL 2008和SQL 2005,您的应用程序,以引用正确的。所以,你必须运送两个不同的应用,一是编译SQL 2005,一个用于SQL 2008和您的用户必须安装适当的。从部署一个异常消息框应用程序

You can't copy and deploy the assembly yourself, it has to be installed as part of the SQL client components. There are different client components for SQL 2008 and SQL 2005, your application has to reference the proper one. So you'll have to ship two different applications, one compiled for SQL 2005 and one for SQL 2008 and your users will have to install the proper one. From Deploying an Exception Message Box Application:

异常消息框安装   由Microsoft SQL Server,是   支持在您的自定义应用   Windows应用程序,以改善   异常处理。由于   异常消息框是由安装   SQL Server的所有版本的SQL除   Server精简3.5 SP1,你可以用它   与任何其他配置   任何一台计算机上的SQL Server   客户端组件,包括了SDK,   已经安装完毕。

The exception message box is installed by Microsoft SQL Server and is supported for use in your custom Windows applications to improve exception handling. Because the exception message box is installed by all editions of SQL Server except SQL Server Compact 3.5 SP1, you can use it with no additional configuration on any computer on which SQL Server client components, including the SDK, have been installed.

虽然在技术上是可能可以部署大会,并把它添加到GAC自己是一个糟糕的做法,因为你的DLL不会Service Pack和累积式升级补丁的正常链的一部分。

While technically is probably possible to deploy the assembly and add it to the GAC yourself is a bad practice as your dll will not be part of the normal chain of service packs and cummulative upgrade patches.

另外你更好的清理与MS重新presentative是否部署该DLL的独立与SQL客户端使用许可或不正常。可以根据许可重新分配每个组件都有一个安装MSI供开发人员分发。如果该DLL不就是不允许由第三方重新分配的重要指标(你)。

Also you better clear up with an MS representative whether deploying this dll standalone is OK with the SQL client usage license or not. Every component that can be redistributed under the license has an install msi available for developers to distribute. If this dll does not is a strong indicator that is not allowed to be redistributed by 3rd parties (you).

更新

其实是有一个分发MSI(SQLServer2005_EMB.msi,SQLServer2005_EMB_x64.msi)为ExceptionMessageBox组件:

There is actually a distributable msi (SQLServer2005_EMB.msi, SQLServer2005_EMB_x64.msi) for the ExceptionMessageBox component:

在SQL Server 2005 SP1及更高版本   版本中,异常消息框   还提供了一个可再发行   安装程序,可   分发和部署您   应用程序......可再发行   异常安装程序   消息框是可在网上   的功能包的SQL   Server 2005 SP1的。

In SQL Server 2005 SP1 and later releases, the exception message box is also provided as a redistributable installation program that you can distribute and deploy with your application... The redistributable installation program for exception message box is available online as part of the Feature Pack for SQL Server 2005 SP1.