[英]Is there possibility to debug Commerce Server component based OperationSequenceComponent?
What is correct way to debug Commerce Server component based OperationSequenceComponent ? 调试基于Commerce Server组件的OperationSequenceComponent的正确方法是什么? Which process should I attach to in order to step into component's methods ?
为了进入组件的方法,我应该附加哪个过程?
It depends what process is hosting your custom code. 这取决于托管您的自定义代码的进程。 Assuming you are running a standard Commerce Server 2009 or Commerce 10 or Commerce 11 based website, you would typically debug w3wp.exe (Assuming you are running a typical Microsoft/Ascentium/SiteCore Commerce Server based website hosted in IIS).
假设您运行的是基于Commerce Server 2009或Commerce 10或Commerce 11的标准网站,通常可以调试w3wp.exe(假设您运行的是IIS中托管的基于Microsoft / Ascentium / SiteCore Commerce Server的典型网站)。
Note that you must first register your custom operation sequence component in your ChannelConfiguration.config file and your web.config. 请注意,您必须首先在ChannelConfiguration.config文件和web.config中注册自定义操作序列组件。 How you do this depends on which version of Commerce Server you are running as the ChannelConfiguration and web.config files changed between Microsoft Commerce Server 2009, 2009 R2, 10 and 11.
如何执行此操作取决于在Microsoft Commerce Server 2009、2009 R2、10和11之间更改ChannelConfiguration和web.config文件时所运行的Commerce Server版本。
Details on how to do it for Microsoft Commerce Server 2009 R2 can be found on MSDN here 2009 R2可以在MSDN上找到关于如何做到这一点微软的Commerce Server详细信息在这里
If you are getting OperationSequenceComponent errors for SequenceComponents that are "out of the box" and ship with the product, you will not be able to debug them without the source code. 如果产品随附的“现成的” SequenceComponents出现OperationSequenceComponent错误,则在没有源代码的情况下将无法对其进行调试。 Forgive me if that is obvious, but I'm making an attempt to be thorough in this answer.
如果这很明显,请原谅我,但我正在尝试对此答案进行更详尽的介绍。
If you have not already done so take a look at the Application Event Log on the machine where your web site or web service (The calling code) is hosted. 如果尚未这样做,请查看托管您的网站或Web服务(调用代码)的计算机上的“应用程序事件日志”。 OperationSequence errors are logged there by the CommerceFoundation by default and it can be helpful to get innerexception and faultexception detail from the OperationService.
默认情况下,CommerceFoundation会在其中记录OperationSequence错误,这有助于从OperationService获取内部异常和错误异常详细信息。
Brad Foley has provided some pointers as well. Brad Foley也提供了一些指示。 I'm not recommending reflector or attempting to dissassemble Microsoft / Ascentium / CommerceServer.NET / SiteCore source code.
我不建议使用反射器或尝试分解Microsoft / Ascentium / CommerceServer.NET / SiteCore源代码。 But you can read through his post for some pointers while debugging OperationService errors in Sequence Components here
但是你可以通过他的职位一些指针在调试OperationService误差序分量阅读这里
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.