Bug 274

Summary: NullReferenceException in System.ServiceModel.ChannelFactory
Product: [Mono] Class Libraries Reporter: Willem Meints <willemm>
Component: WCF assembliesAssignee: Bugzilla <bugzilla>
Severity: normal CC: craigrs84, jlrosen416, martin.baulig, mono-bugs+mono, rick.mccabe
Priority: ---    
Version: 2.10.x   
Target Milestone: Untriaged   
Hardware: PC   
OS: Windows   
Tags: Is this bug a regression?: ---
Last known good build:

Description Willem Meints 2011-08-12 01:17:43 UTC
When you create a service proxy that uses the DefaultOpenTimeout property it will raise a NullReferenceException when you try to use the service proxy.

I/MonoDroid(  422): UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
I/MonoDroid(  422): at System.ServiceModel.ChannelFactory.get_DefaultOpenTimeout () <0x00028>
I/MonoDroid(  422): at System.ServiceModel.MonoInternal.ClientRuntimeChannel..ctor
(System.ServiceModel.Description.ServiceEndpoint,System.ServiceModel.ChannelFactory,System.ServiceModel.EndpointAddress,System.Uri) <0x00057>
Comment 1 Martin Baulig 2012-09-20 00:36:01 UTC
Do you have a test case for this ?
Comment 2 Craig 2014-03-07 15:07:25 UTC
I'm seeing this error as well.

Create a proxy using the following command and try hitting one of the service methods on the latest stable version of Xamarin Android:

SlSvcUtil.exe https://www.vectren.com/webservices/cxf/contentService?wsdl /directory:c:\users\cschulte\desktop\temp /n:*,Vectren.Mobile.Shared.Services.Content /o:ContentService.cs
Comment 3 Craig 2014-03-07 15:23:42 UTC
nevermind my issue was resolved.  I didn't have my binding set up correctly.
Comment 4 rick.mccabe 2015-01-08 06:52:15 UTC
@Craig I have the same problem, how did you set up the binding please?
Comment 5 Julien 2015-01-21 19:32:02 UTC
I also am having the same problem. Is there a resolution of some sort?
Comment 6 Marek Safar 2018-03-13 11:07:11 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and reopen the bug report.

Thank you!