This is a known issue [1] and was fixed (after 6.3.5 beta) and will be fixed in the next alpha/beta. Temporary workaround included in [1].
[1] https://bugzilla.xamarin.com/show_bug.cgi?id=12356 On Sat, Jun 1, 2013 at 9:25 PM, Paul Johnson <[email protected]>wrote: > Hi, > > Using the current alpha, but get the same results in the release version. > > I'm accessing a wcf webservice as part of a large app. On the simulator, > everything works fine. When I try to do the same on an iPhone, I'm getting > a null exception (object not set to a reference) with the following > throwback > > at System.ServiceModel.**MonoInternal.**ClientRuntimeChannel..ctor > (System.ServiceModel.**Dispatcher.ClientRuntime runtime, > System.ServiceModel.**Description.**ContractDescription contract, > TimeSpan openTimeout, TimeSpan closeTimeout, IChannel contextChannel, > IChannelFactory factory, System.ServiceModel.Channels.**MessageVersion > messageVersion, System.ServiceModel.**EndpointAddress remoteAddress, > System.Uri via) [0x0012f] in /Developer/MonoTouch/Source/** > mono/mcs/class/System.**ServiceModel/System.**ServiceModel/**ClientRuntimeChannel.cs:121 > > at System.ServiceModel.**MonoInternal.**ClientRuntimeChannel..ctor > (System.ServiceModel.**Description.ServiceEndpoint endpoint, > System.ServiceModel.**ChannelFactory channelFactory, System.ServiceModel.* > *EndpointAddress remoteAddress, System.Uri via) [0x00027] in > /Developer/MonoTouch/Source/**mono/mcs/class/System.**ServiceModel/System. > **ServiceModel/**ClientRuntimeChannel.cs:90 > at System.ServiceModel.**ClientBase`1+ChannelBase`1[** > ISyncService,ISyncService].**get_Inner () [0x00000] in <filename > unknown>:0 > at System.ServiceModel.**ClientBase`1+ChannelBase`1[** > ISyncService,ISyncService].**System.ServiceModel.** > ICommunicationObject.add_**Opening (System.EventHandler value) [0x00000] > in <filename unknown>:0 > at ftrack2ios.SyncManager.**getClient () [0x00051] in > /Volumes/Developer/Developer/**new ftrack/iOS/ftrack2-ios/** > ftrack2-ios/WebServices/**SyncManager.cs:415 > at ftrack2ios.logSignUp.**StartLogin (System.Object sender, > System.EventArgs e) [0x00047] in /Volumes/Developer/Developer/**new > ftrack/iOS/ftrack2-ios/**ftrack2-ios/LoginSignup/**logSignUp.cs:112 > at ftrack2ios.logSignUp.<**ViewDidLoad>m__B (System.Object sender, > System.EventArgs e) [0x00000] in /Volumes/Developer/Developer/**new > ftrack/iOS/ftrack2-ios/**ftrack2-ios/LoginSignup/**logSignUp.cs:40 > at MonoTouch.UIKit.**UIControlEventProxy.Activated () [0x00000] in > /Developer/MonoTouch/Source/**monotouch/src/UIKit/UIControl.**cs:30 > at (wrapper managed-to-native) > MonoTouch.UIKit.UIApplication:**UIApplicationMain > (int,string[],intptr,intptr) > at MonoTouch.UIKit.UIApplication.**Main (System.String[] args, > System.String principalClassName, System.String delegateClassName) > [0x0004c] in /Developer/MonoTouch/Source/**monotouch/src/UIKit/** > UIApplication.cs:38 > at ftrack2ios.Application.Main (System.String[] args) [0x0000a] in > /Volumes/Developer/Developer/**new ftrack/iOS/ftrack2-ios/** > ftrack2-ios/Main.cs:16 > > The code leading up to this is > > SyncServiceClient client = new SyncServiceClient(new BasicHttpBinding(), > new EndpointAddress("http://" + SyncManager.SyncHost + > "/services/SyncService.svc")); > > client.InnerChannel.Opening += delegate > { > > //UIAppDelegate.Self.**SharedAppDelegate.Self.** > NetworkActivityIndicatorVisibl**e = true; > }; > > SyncManager.SyncHost is a valid URL and if I go to the endpoint address, > the service appears fine (so it's not a 404 error). > > I know there can be differences between the simulator and a real device, > but I'm not sure on this one. Any help would be appreciated. > > Paul > -- > "Space," it says, "is big. Really big. You just won't believe how vastly, > hugely, mindbogglingly big it is. I mean, you may think it's a long way > down the road to the chemist's, but that's just peanuts to space, listen..." > Hitch Hikers Guide to the Galaxy, a truly remarkable book! > > ______________________________**_________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/**mailman/listinfo/monotouch<http://lists.ximian.com/mailman/listinfo/monotouch> >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
