Microsoft.ExceptionMessageBox不是"发现" [英] Microsoft.ExceptionMessageBox not being "found"

查看:95
本文介绍了Microsoft.ExceptionMessageBox不是"发现"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我经历的ClickOnce部署WinForm的解决方案。还有就是主项目,然后一个项目叫做 psWinForms 。该项目有一个参考 Microsoft.ExceptionMessageBox ,我在我的自定义错误报告使用。

I have a winform solution that I deploy through clickOnce. There is the Main Project and then a Project called psWinForms. That project has a Reference to Microsoft.ExceptionMessageBox that I use in my custom error reporting.

我有 psWinForms 作为我的主要项目的参考与复制本地=真

I have psWinForms as a reference in my Main Project with Copy Local = True.

我有 Microsoft.ExceptionMessageBox psWinForms 引用与复制本地=假&放大器;具体版本=假

申请文件发布状态= prerequisite(自动)

我曾尝试各种组合都无济于事。

I have tried various combinations to no avail.

我看了这里的测试系统上的DLL是存在的。

I looked here on the Test System on the DLL is there.

C:\Program Files\Microsoft SQL Server\90\SDK\Assemblies

我使用ExceptionMessageBox从SQL版本9.0.242.0,如果有差别和用户只需SQL 2005例preSS(9.0.1399.0)安装。

I am using the ExceptionMessageBox from SQL version 9.0.242.0 if that makes a difference and the users only have SQL 2005 Express(9.0.1399.0) installed.

所以我很困惑,为什么我的应用程序挂起当我尝试用这个来抛出一个错误....

So I am very confused as to why my app hangs when I try to throw an error using this....

推荐答案

您不能复制和部署自己的,它必须被安装为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及更高版本   版本中,异常消息框   还提供了一个可再发行   安装程序,可   分发和部署您   应用程序......可再发行   异常安装程序   消息框是可在网上   的<一部分href="http://www.microsoft.com/downloads/details.aspx?FamilyID=df0ba5aa-b4bd-4705-aa0a-b477ba72a9cb&DisplayLang=en"相对=nofollow>功能包的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.

这篇关于Microsoft.ExceptionMessageBox不是&QUOT;发现&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆