为何我的应用程序给SerializationException虽然我没有序列化类? [英] Why does my application give SerializationException although I have no serialized classes?

查看:257
本文介绍了为何我的应用程序给SerializationException虽然我没有序列化类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个应用程序部署工具的BizTalk,和它引用使用Microsoft.BizTalk.ExplorerOM API来启动,停止和管理BizTalk应用程序。现在,当我运行该工具,它提供了以下异常 -

I have created an application deployment tool for BizTalk, and it references uses Microsoft.BizTalk.ExplorerOM apis to start, stop and manage a BizTalk application. Now when I run the tool, it gives following exception-

Unhandled Exception: System.Runtime.Serialization.SerializationException: Type 'Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer' in Assembly 'Microsoft.BizTalk.ExplorerOM, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.

没有我的课都被定义为可序列化。而该工具在WPF中创建。

None of my classes are defined to be serializable. And the tool is created in WPF.

任何想法如何我可能会解决此问题?

Any idea how I might resolve this?

推荐答案

这是因为BtsCatalogExplorer没有标记为可序列化。是的,这就是明显的答案。

It's because BtsCatalogExplorer is not marked as serializable. Yes, that's the obvious answer.

您运行此范围内的BizTalk,在一个业务流程?要在运行的BizTalk,类必须是可序列化或在原子范围中运行。

Are you running this within BizTalk, in an Orchestration? To run within BizTalk, a class must be Serializable or run within an Atomic Scope.

这篇关于为何我的应用程序给SerializationException虽然我没有序列化类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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