我使用xsd.exe工具从我的xsd文件创建一个类后出现此错误.所以我在网上搜索并找到了解决方案.这是链接:http://satov.blogspot.com/2006/12/xsdexe-generated-classes-causing.html
问题是这会使代码运行,但不知何故反序列化数据似乎已损坏.我做了网站建议的内容,最后第二个数组维度总是空的(参见网站的评论,有人也有这个问题).问题是,我现在该如何解决这个问题?是否有另一种工具来创建xsd文件?我尝试过Xsd2Code,没有成功.
谢谢 :-)
我有一个Web服务,当我尝试生成它的对象时,我遇到了错误.
"无法生成临时类(result = 1).error CS0030:无法将类型'ShortSell.ShortSellRQOriginDestinationInformationFlightSegment []'转换为'ShortSell.ShortSellRQOriginDestinationInformationFlightSegment'error CS0030:无法将类型'ShortSell.ShortSellRSOriginDestinationOptionFlightSegment []'转换为'ShortSell.ShortSellRSOriginDestinationOptionFlightSegment '错误CS0030:无法将类型'ShortSell.ShortSellRQOriginDestinationInformationFlightSegment []'转换为'ShortSell.ShortSellRQOriginDestinationInformationFlightSegment'error CS0029:无法将类型'ShortSell.ShortSellRQOriginDestinationInformationFlightSegment'隐式转换为'ShortSell.ShortSellRQOriginDestinationInformationFlightSegment []'错误CS0029:无法隐式转换类型'ShortSell. ShortSellRSOriginDestinationOptionFlightSegment'to'ShortSell.ShortSellRSOriginDestinationOptionFlightSegment []'error CS0029:无法将类型'ShortSell.ShortSellRSOriginDestinationOptionFlightSegment'隐式转换为' ShortSell.ShortSellRSOriginDestinationOptionFlightSegment []'"}
我尝试将临时文件夹属性更改为可写但我仍然收到此错误.为什么我会收到此错误,如何解决?