filii_neo

Hi,

while calling a webservice method on a smart device, I get the following exception:

System.Reflection.CustomAttributeFormatException: CustomAttributeFormatException
bei System.Reflection.CustomAttribute.GetObject()
bei System.Reflection.CustomAttribute.CheckConsistencyAndCreateArray()
bei System.Reflection.CustomAttribute.GetCustomAttributes()
bei System.Reflection.CustomAttribute.GetCustomAttributes()
bei System.RuntimeType.GetCustomAttributes()
bei System.Xml.Serialization.TypeAttributes..ctor()
bei System.Xml.Serialization.TypeAttributes..ctor()
bei System.Xml.Serialization.XmlSerializationReflector.AddType()
bei System.Xml.Serialization.XmlSerializationReflector.FindType()
bei System.Xml.Serialization.XmlSerializationReflector.FindType()
bei System.Web.Services.Protocols.SoapReflector.ReflectHeaders()
bei System.Web.Services.Protocols.SoapReflector.getSoapMethod()
bei System.Web.Services.Protocols.SoapMessageSerializer.GetSoapMethod()
bei System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke()

Can anybody tell me why the exception is thrown

thx

filii



Re: .NET Compact Framework CustomAttributeFormatException calling a webservice

Guang-Ming Bian - MSFT

hi filii_neo

I feel that something wrong with Serialization
Please click the link below:
http://blogs.msdn.com/netcfteam/archive/2007/02/01/why-your-netcf-apps-fail-to-call-some-web-services.aspx

I hope it helpful to you






Re: .NET Compact Framework CustomAttributeFormatException calling a webservice

filii_neo

Hi, thanks for you answer,

I have read the blog article and I was very surprised. I do not understand whether the exceptions do always. The exceptions I have posted do only appear seldom.That's the thing that is so confusing. Is my problem the same like in the blog post `

So, right now, I can not ensure that a webservice call will return successfully. And this is really frustrating.

filii_neo