Greetings,
I have an application with several web services. They all connect to an
Oracle database to retreive/save data. Some methods return datasets
containning English and/or Arabic data. All these methods work fine most of
the time, but sometimes I receive the following error:
Server was unable to process request. --> There was an error generating the
XML document. --> The surrogate pair is invalid.
I cannot reproduce the error, but I think it happens only when the dataset
is being serialized to XML before being sent to the client.
When this exception is thrown after calling a certain web method, it is only
resolved by restarting the application domain in which the web services are
running. I restart the application domain by making any change in the
web.config file (such as adding/removing a space at the end of the file).
After restarting the application domain, the problem is solved, even though
I call the same web method with the same parameters and against the same
database (I just refresh the web page that calls the web method and it
works)
Thanks for your help in advance