Web service exception

Web service exception

Post by Shlomy Shive » Tue, 03 Apr 2007 18:15:41



Hi,
I have a web service installed on windows 2003 x64 machine. I have a
consist exception from the web service:

System.InvalidOperationException: There was an error generating the
XML document. ---> System.AccessViolationException: Attempted to read
or write protected memory. This is often an indication that other
memory is corrupt.
   at
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializer1.CreateWriter()
   at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter
xmlWriter, Object o, XmlSerializerNamespaces namespaces, String
encodingStyle, String id)
   --- End of inner exception stack trace ---
   at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter
xmlWriter, Object o, XmlSerializerNamespaces namespaces, String
encodingStyle, String id)
   at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter
xmlWriter, Object o, XmlSerializerNamespaces namespaces, String
encodingStyle)
   at System.Xml.Serialization.XmlSerializer.Serialize(TextWriter
textWriter, Object o)
   at System.Web.Services.Protocols.XmlReturnWriter.Write(HttpResponse
response, Stream outputStream, Object returnValue)
   at
System.Web.Services.Protocols.WebServiceHandler.WriteReturns(Object[]
returnValues)
   at System.Web.Services.Protocols.WebServiceHandler.Invoke()

When I switch the IIS to run under .net framework 2.0 x86 , it works
fine. The problem only happen when the IIS is running under .net
framework x64.
I tried to apply hotfix kb 923028 from microsoft with no success.

Can someone help on that ???

 
 
 

1. Web Service Exception

Dear All,

    If i want to catch the exception when the device try to consume a web
service while the network connection is not available, which exception
should i catch?

    Moreover, i found that when i consume web service asyncrhonously, seem
even i did not catch any exception, CF would also call the callback
gracefully without throwing any exception. Any ppl got the same experience
before?

    Best Regards,

Alex

2. A question about Windows vs. OS/2...

3. Web service exception

4. Invoices

5. FW: Merry Christmas!!!

6. Web service exception in INotifyConnection2

7. Looking for PD or Used Atari ST Sequencer and/or SysEx Tools

8. Catching Asynchronous Web Service Exceptions

9. Web exception occured when accessing web service from Cf

10. DBConcurrency exception with Web Service

11. Accessing Web Service in marginal Wi-Fi coverage - Unhandled Exception

12. XmlSerialization Exception in invoking a web service