Which namespace and assembly contains the CFFaultException-Klass of CF3.5?
-
Donnerstag, 13. Oktober 2011 21:35I am working with WCF webservices. About errors in my service-contracts (wrong input etc.) I want to tell the client by sending FaultExceptions. Unfortunately the FaultException-Class is not available in the compact framework. But as compensation there should be a class named CFFaultException with the same functionality. But I can not find this class. Neither there is a Microsoft.Tools.ServiceModel-Namespace nor there is a Microsoft.Tools-assembly. Where do I get this class? Which assembly I have to include and which namespace I have to use? The server is a .NET 3.5 application, on the client runs windows ce 5 with .net compact framework 3.5. The IDE is Visual Studio 2008 on Windows 7 Pro 64bit. Thanks in advance! Peter
Alle Antworten
-
Freitag, 14. Oktober 2011 11:26
That class gets generated by the NetCFSvcUtil Tool.
The following blog should help on how to use this tool: http://blogs.msdn.com/b/andrewarnottms/archive/2007/09/13/calling-wcf-services-from-netcf-3-5-using-compact-wcf-and-netcfsvcutil-exe.aspx
Michael
MVP Windows Embedded -
Sonntag, 16. Oktober 2011 18:22Thanks.
But I am using web references instead of proxy classes generated by NetCFSvcUtil Tool.
Is there still a possebility to send own exceptions to the client or I have to use the NetCFSvcUtil Tool?
Peter

