https://bugzilla.novell.com/show_bug.cgi?id=690441
https://bugzilla.novell.com/show_bug.cgi?id=690441#c0 Summary: Calling WCF services with down or bad URLs causes app to crash - Can't catch WCF errors Classification: Mono Product: MonoTouch Version: unspecified Platform: Macintosh OS/Version: Apple iOS 4.3 Status: NEW Severity: Critical Priority: P5 - None Component: Class Libraries AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=426978) --> (http://bugzilla.novell.com/attachment.cgi?id=426978) MonoDevelop Solution demoing the crash User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_7; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.205 Safari/534.16 Unable to catch WCF errors. Using a service generated by the silverlight service generator will crash the app if called on a url that is down or bad or that throws an error back to client. We use this to generate the service wrapper: slsvcutil.exe http://localhost/GGGGG/Timesheet.svc?wsdl /namespace:"*,General" /d:z:\desktop /noConfig /ser:DataContractSerializer Reproducible: Always Steps to Reproduce: 1. Generate a service wrapper with the Silverlight 4 slsvcutil.exe 2. Call it with a bad URL or URL that is down 3. Try to catch the exception - unable to, app crashes Actual Results: Unable to catch exception Expected Results: Should be able to catch the exception. I have attached a sample app that will crash when the "Crash Me" button is pressed. A number of use cases that also crash are in the code. All code is in the AppDelegateIPhone.cs Run as iPhone in Simulator. iOS 4+ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
