呼叫WebService時出現「The formatter threw an exception while trying to deserialize the message...」錯誤

摘要:呼叫WebService時出現「The formatter threw an exception while trying to deserialize the message...」錯誤

今天在呼叫WebService時,出現了以下的錯誤訊息

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter WS名稱:方法名稱Response. The InnerException message was 'There was an error deserializing the object of type 專案名稱.WS名稱.方法名稱ResponseBody. The maximum string content length quota (8192) has been exceeded while reading XML data. This quota may be increased by changing the MaxStringContentLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader. Line 1, position 13880.'.  Please see InnerException for more details.

繼續閱讀