This article is a mirror article of machine translation, please click here to jump to the original article.

View: 16683|Reply: 0

[WCF/Web Servics] WCF data communication parameters cannot be of Image type?

[Copy link]
Posted on 7/19/2016 4:39:00 PM | | |
{"There was an error while trying to serialize parameter http://tempuri.org/:_image. The InnerException message was 'Type 'System.Drawing.Bitmap' with data contract name 'Bitmap:http://schemas.datacontract.org/2004/07/System.Drawing' is not expected. Consider using a DataContractResolver or add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.'.  Please see InnerException for more details."}


{"There is an error while trying to serialize the parameter HTTP://:_image tempuri. org。 InnerException message type system. Figure. The data contract name "bitmap:http://schemas.datacontract.org/2004/07/system.drawing" for bitmaps is not expected. Consider using the DataContractResolver or adding any type that doesn't know static known types, such as linked lists, with the knowntypeattribute attribute, or adding to a known type through the DataContractSerializer list. ”。 See InnerException for details. ”}

I reported it wrong anyway, I don't know why, it hasn't been solved yet.




Previous:c# to get the Image image format
Next:For request in operation xx to be a stream the operation must have a sing...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com