C#/ XML / WebSvc问题 [英] C# / XML / WebSvc problem

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

问题描述

这是一个问题,发生了几次,非开发

Windows XP平板电脑SP2,运行.NET Framework 2.0和1.1。调用Web服务的

Windows应用程序是为.NET

2.0编写/编译的,并且从GAC加载所有2.0 dll,即使发生以下错误也是如此。在

空间问题的情况下,平板电脑总是有10GB或更大的空间。我们的

应用程序在任何时候都不需要超过10MB的空间。这台机器是一台

Compaq TC1000平板电脑,是的,我们知道它的旧款,一个慢速处理器,拥有256MB的b
内存。在出错时只有我们的应用程序运行,内存测试

已经显示我们的应用程序在峰值时需要不超过25-40MB内存

操作点。 Web服务在我们的运行Windows 2003的服务器上,带有

IIS 6.0,并且在出现错误时永远不会关闭其他机器

访问Web服务。


给出异常的代码行 - MobileService.PublicWebSvc

frmWebSvc = new MobileService.PublicWebSvc();


为什么会发生以下情况?


System.InvalidOperationException:无法生成临时类

(结果= 1)。

错误CS0583:内部编译器错误(0xc000001d,地址为5A10383F):

可能的罪魁祸首是''BEGIN''。

错误CS0587:内部编译器错误:阶段''在System.Xml.Serialization.Compiler.Compile开始''


(汇编父级,字符串ns,

CompilerParameters参数,证据证据)

at System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping []

xmlMappings,Type [] types,String defaultNamespace,Evidence ev理想,

CompilerParameters参数,汇编汇编,Hashtable程序集)

在System.Xml.Serialization.TempAssembly..ctor(XmlMap ping [] xmlMappings,

类型[]类型,字符串defaultNamespace,字符串位置,证据证据)

在System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping []

映射,类型类型)

在System.Web.Services.Protocols.SoapClientType..ctor(类型类型)

在System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor ()

在Company.Solution.MobileService.PublicWebSvc..ctor()


VJ

Here is a problem that happened about a few times, on non-development
Windows XP Tablet PC with SP2, running NET Framework 2.0 and 1.1. The
windows application invoking the web service was written/complied for .NET
2.0 and loads all 2.0 dll''s from GAC, even when the below error occurs. In
case of space concerns, the Tablet has 10GB or greater of space always. Our
application at no point need more than 10MB of space. The machine is a
Compaq TC1000 Tablet, yes we know its old, a slow processor and has 256MB of
RAM. At the time of error only our application was running, memory tests
have shown our applications need no more than 25-40MB memory at peak
operation point. The web service is on our server running Windows 2003, with
IIS 6.0, and is never down at the time of error there were other machines
accessing the web service.

The code line that gave the exception - MobileService.PublicWebSvc
frmWebSvc = new MobileService.PublicWebSvc();

Why would the below happen??

System.InvalidOperationException: Unable to generate a temporary class
(result=1).
error CS0583: Internal Compiler Error (0xc000001d at address 5A10383F):
likely culprit is ''BEGIN''.
error CS0587: Internal Compiler Error: stage ''BEGIN''

at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns,
CompilerParameters parameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAsse mbly(XmlMapping[]
xmlMappings, Type[] types, String defaultNamespace, Evidence evidence,
CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMap ping[] xmlMappings,
Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.FromMapping s(XmlMapping[]
mappings, Type type)
at System.Web.Services.Protocols.SoapClientType..ctor (Type type)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol..ctor()
at Company.Solution.MobileService.PublicWebSvc..ctor( )

VJ

推荐答案

我听说

下一版本中的XML Web Services正在被命名管道取代;它应该在下个月出局


-Todos
I heard that XML Web Services are being replaced by Named Pipes in the
next version; it shoudl be out next month

-Todos


这与我报道的问题有什么关系?抱歉,我无法理解你在说什么!


VJ


" Todos Menos [ MSFT] QUOT; < ************** @ hotmail.comwrote in message

news:11 **************** ****** @ y66g2000hsf.googlegr oups.com ...
How is that related to the problem I reported? Sorry I am not able to
understand what you are saying!

VJ

"Todos Menos [MSFT]" <to**************@hotmail.comwrote in message
news:11**********************@y66g2000hsf.googlegr oups.com...

>我听说XML Web服务正被
下一个版本;它将在下个月出局


-Todos

>I heard that XML Web Services are being replaced by Named Pipes in the
next version; it shoudl be out next month

-Todos



VJ< no***********@yahoo.comwrote:
VJ <no***********@yahoo.comwrote:

这与我报告的问题有什么关系?对不起,我无法理解你在说什么!
How is that related to the problem I reported? Sorry I am not able to
understand what you are saying!



他是一个巨魔 - 别打扰他。


-

Jon Skeet - < sk *** @ pobox.com>
http ://www.pobox.com/~skeet 博客: http:/ /www.msmvps.com/jon.skeet

如果回复小组,请不要给我发邮件

He''s a troll - don''t bother with him.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too


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

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