cancel
Showing results for 
Search instead for 
Did you mean: 

UltraLite UWP app not Syncing

Former Member
1,925

My UltraLite 17 UWP app cannot connect to MobiLink 17. It timesout. It has never connected. I have a UltraLite.NET 17 version of the app that does sync successfully repeatedly. The Sync Parameters are the same, now that I rectified the comma issue. The UWP app has the "Private Networks" and "Enterprise Authentication" enabled. The is no evidence of an attempted connection in the MobiLink 17 logs. This is with minimal logging and quite verbose logging. Have I overlooked anything? A Setting? Not sure whether this is an UWP or UltraLite/MobiLink issue. Thought I'd ask here before getting our network people involved.

Former Member
0 Kudos

I get the same Time Out if I do not enable Enterprise Authentication. I am using Connecion.Synchronize (syncParams, syncObserverDelegate). I am not creating another thread at any point to Sync.

chris_keating
Product and Topic Expert
Product and Topic Expert
0 Kudos

The following are defined in the sample application:

<capabilities> <capability name="internetClient"/> <capability name="privateNetworkClientServer"/> </capabilities>

This matches the setting Private Networks (Client & Server).

Can you add Internet (Client) for testing? Does that allow the connection. If not, please provide the exact error code that is reported at the client.

Former Member
0 Kudos

<capability name="privateNetworkClientServer"/> </capabilities> gets me network accessibility. Internet (Client) does not get facilitate connection. MobiLink Error # 241.

Former Member
0 Kudos

Where are the samples, in particular this sample program, installed? I can't seem to find them on my HD

Former Member
0 Kudos

Found sample. Can't load into VS 2017. I think it is VS 2012 proj, not sure. The only Capability enabled in its "manifest" file is "internetServerClient". This doesn't connect to the network nor prevent the time out.

Former Member
0 Kudos

I can't load the CustDB project because it's a SilverLight project. That must be why it has "internetServerClient" enabled. I'm working with a pure UWP project.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I have given up on Connecion.Synchronize (syncParams, syncObserverDelegate). I am now using Connection.SychronizeAsync (syncParams). I did this after looking at the sample program and saw they were using it. I looked at the code file in notepad since VS2017 would not load it. AND I CAN SYNC with SychronizeAsync. The "Private Networks" Capability is the only Capability enabled.

chris_keating
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you running your sync in the context of a UI thread? If so, you are likely blocked and that is why the SynchronizeAsync may be working. If you move the Synchronize() call into a non-UI thread, I suspect that the problem will resolve.

Former Member
0 Kudos

I did just that a couple of times, moving where I created the new thread in my app to different places. But I always got MobiLink error 63. I was going to follow up on this. But not now for the time being. Thanks for you help. Your mentioning the sample program made me take a 2nd look at it even though I couldn't load into any version of VS I have.