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

View: 15723|Reply: 0

[WCF/Web Servics] Type 'System.IO.FileStream' with data contract name 'FileStream:http://schema...

[Copy link]
Posted on 7/19/2016 5:31:33 PM | | |
{"Type 'System.IO.FileStream' with data contract name 'FileStream:http://schemas.datacontract.org/2004/07/System.IO' 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."}

Solution:

http://stackoverflow.com/questions/24527029/unable-to-send-image-file-as-part-datacontract

http://www.cnblogs.com/easywebfactory/archive/2012/05/10/2495040.html


namespace: using System.ServiceModel;







Previous:For request in operation xx to be a stream the operation must have a sing...
Next:Due to an internal error, the server was unable to process the request. For more information about the error, open In...
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