XmlSerializer问题 [英] XmlSerializer Problem

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

问题描述

大家好,


当我运行此代码时:

XmlSerializer theXS;

try

{

theXS = new XmlSerializer(typeof(TableInfo));

}

catch(System.Exception eAll)

{

string junk = eAll.Message;

返回;

}

我得到这个例外:


找不到文件或程序集名称5wpkczfu.dll或其中一个依赖项


如果我改变对象的类型,我正在尝试序列化,我会得到其他模糊不清的参考文件......这些文件在Google上都找不到,奇怪的是。


任何想法或建议都将不胜感激。


- 尼克

Hi all,

When I run this code:

XmlSerializer theXS;
try
{
theXS = new XmlSerializer(typeof(TableInfo));
}
catch( System.Exception eAll )
{
string junk = eAll.Message;
return;
}

I get this exception:

File or assembly name 5wpkczfu.dll, or one of its dependencies, was not found

If I change the type of the object I''m trying to serialize I get references to other obscure missing
dll files... none of which can be found on Google, oddly enough.

Any thoughts or suggestions would be appreciated.

- Nick

推荐答案

你好Nick,


TableInfo引用你写的任何其他类吗?

如果是这样,你需要注册它们序列化器:

theXS =新的XmlSerializer( typeof(TableInfo),referencedTypes);


希望这会有所帮助,

Michel


" Nick Flandry" <毫安** @ arcabama.com>在留言中写道

news:l9 ******************************** @ 4ax.com ...
Hi Nick,

Is the TableInfo referencing any other classes that you wrote?
If so, you''ll need to register them with the serializer:
theXS = new XmlSerializer(typeof(TableInfo), referencedTypes);

Hope this helps,
Michel

"Nick Flandry" <ma**@arcabama.com> wrote in message
news:l9********************************@4ax.com...
大家好,

当我运行此代码时:

XmlSerializer theXS;
尝试
{
theXS = new XmlSerializer(typeof(TableInfo));
}
catch(System.Exception eAll)
{junk = eAll.Message;
返回;
}
我得到这个例外:

文件或程序集名称5wpkczfu.dll,或其中一个依赖项,未找到
<如果我改变对象的类型我正在尝试序列化我得到
引用其他模糊的丢失的dll文件...其中没有一个可以在Google上找到,奇怪的是。

任何想法或建议都将不胜感激。

- 尼克
Hi all,

When I run this code:

XmlSerializer theXS;
try
{
theXS = new XmlSerializer(typeof(TableInfo));
}
catch( System.Exception eAll )
{
string junk = eAll.Message;
return;
}

I get this exception:

File or assembly name 5wpkczfu.dll, or one of its dependencies, was not found
If I change the type of the object I''m trying to serialize I get references to other obscure missing dll files... none of which can be found on Google, oddly enough.

Any thoughts or suggestions would be appreciated.

- Nick





你好Nick,


我们已经审核了您的帖子,我们将对此进行一些研究。

我们会尽快回复您。

感谢您的理解。


祝你好运,

Jeffrey Tan

微软在线合作伙伴支持

安全! - www.microsoft.com/security

此帖子按原样提供没有保证,也没有授予任何权利。


Hi Nick,

We have reviewed your post, we will do some research on it.
We will reply to you ASAP.

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


你是否处于调试模式?

尝试compilng和runnin outid of VS.Net 。


在某些情况下我得到类似的例外,通常是因为我在

调试模式。


让我知道是否有帮助。


史蒂文


" Nick Flandry" <毫安** @ arcabama.com>在留言中写道

news:l9 ******************************** @ 4ax.com ...
Are you in debug mode?
Try compilng and runnin outsid of VS.Net.

Under certain situations i get similar exceptions, usually because i am in
debug mode.

Let me know if if helps.

Steven

"Nick Flandry" <ma**@arcabama.com> wrote in message
news:l9********************************@4ax.com...
大家好,

当我运行此代码时:

XmlSerializer theXS;
尝试
{
theXS = new XmlSerializer(typeof(TableInfo));
}
catch(System.Exception eAll)
{junk = eAll.Message;
返回;
}
我得到这个例外:

文件或程序集名称5wpkczfu.dll,或其中一个依赖项,未找到
<如果我改变对象的类型我正在尝试序列化我得到
引用其他模糊的丢失的dll文件...其中没有一个可以在Google上找到,奇怪的是。

任何想法或建议都将不胜感激。

- 尼克
Hi all,

When I run this code:

XmlSerializer theXS;
try
{
theXS = new XmlSerializer(typeof(TableInfo));
}
catch( System.Exception eAll )
{
string junk = eAll.Message;
return;
}

I get this exception:

File or assembly name 5wpkczfu.dll, or one of its dependencies, was not found
If I change the type of the object I''m trying to serialize I get references to other obscure missing dll files... none of which can be found on Google, oddly enough.

Any thoughts or suggestions would be appreciated.

- Nick



这篇关于XmlSerializer问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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