StockQuote Sample: How to Avoid Error 80004005 (Windows Embedded Compact 7)
When you run the Web Services on Devices (WSD) StockQuote sample provided by the Web Services on Devices Samples (SYSGEN_WSDAPI_SAMPLES) catalog item in Windows Embedded Compact 7, StockQuoteClient.exe may report error 0x80004005 (unspecified error). You may receive this error, for example, when the StockQuote client is running on a computer that is running Windows 7 and the StockQuote service is running on a Windows Embedded Compact 7 powered device.
In this article:
Cause
The problem may be related to the Web Services on Devices code generator tool (wsdcodegen.exe), which generates program code from a service description. For information on how wsdcodegen.exe works, see Web Services on Devices Code Generator.
Two versions of the wsdcodegen.exe tool exist:
- The Windows 7 SDK contains v6.1.7074.0
- Windows Embedded Compact 7 contains v6.0.6001.16478
These versions of wsdcodegen.exe produce different code. The code produced by one version will not communicate correctly with the code produced by the other version. For example, if you use one version to create the StockQuote client, and the other version to create the StockQuote service, the client and service will not work together.
Resolution
Use the same version of wsdcodegen.exe on both the development computer running Windows 7 and the development computer running Windows Embedded Compact 7.
Community Resources
See Also