...
首页> 外文期刊>MSDN Magazine >COM Clients Without Notifying Your Code Your Code
【24h】

COM Clients Without Notifying Your Code Your Code

机译:COM客户端,而无需通知您的代码您的代码

获取原文
获取原文并翻译 | 示例

摘要

Many developers who still use ASP pages for presentation services are integrating COM and .NET objects to provide the business services of the application. Using .NET objects from ASP can help developers gain experience with the .NET Framework before migrating to ASP.NET. Their ASP pages make use of the new .NET components through COM-callable wrappers (CCW). But how do they handle exceptions? Whenever a .NET exception is thrown from .NET components to the ASP page, it's converted into an Err object that contains information on the error. Unfortunately, a wealth of information such as the stack trace, all inner exceptions, and other properties within the .NET exception are lost; only the string description and a number are returned to the ASP page. To allow .NET exceptions thrown to COM clients to be added to the event log, I've written a component that uses techniques such as hooking.
机译:许多仍将ASP页面用于表示服务的开发人员正在集成COM和.NET对象,以提供应用程序的业务服务。使用ASP中的.NET对象可以帮助开发人员在迁移到ASP.NET之前获得有关.NET Framework的经验。他们的ASP页面通过COM调用包装器(CCW)使用新的.NET组件。但是他们如何处理异常?每当将.NET异常从.NET组件引发到ASP页时,它都会转换为包含有关错误信息的Err对象。不幸的是,丢失了诸如堆栈跟踪,所有内部异常以及.NET异常内的其他属性之类的大量信息。仅字符串描述和数字返回到ASP页。为了允许将引发给COM客户端的.NET异常添加到事件日志中,我编写了一个使用钩子等技术的组件。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号