dbTalk Databases Forums  

Problem with Mobilink Sync over https from Ultralite

sybase.public.sqlanywhere.ultralite sybase.public.sqlanywhere.ultralite


Discuss Problem with Mobilink Sync over https from Ultralite in the sybase.public.sqlanywhere.ultralite forum.



Reply
 
Thread Tools Display Modes
  #51  
Old   
Justin Wong
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 03-01-2008 , 12:45 AM






I managed to get my code working after adding

ULEnableHttpsSynchronization( m_Sqlca.GetCA() );

into my code. Thanks everyone for your replies.

"Tom Slee" <firstname.lastname (AT) sybase (DOT) com> wrote

Quote:
Justin Wong wrote:
Hi Tom,

I have already read through that document before I attempted the sync. I
have a feeling it's a problem with some libraries. Is there some way to
get a more detailed error message? -85 is kinda generic.

I use code like this for communication error reporting:

if( uEx.NativeError == ULSQLCode.SQLE_COMMUNICATIONS_ERROR )
{
MessageBox.Show( "StreamErrorCode = " +
_conn.SyncResult.StreamErrorCode.ToString() + "\r\n"
+ "StreamErrorContext = " + _conn.SyncResult.StreamErrorContext
+ "\r\n"
+ "StreamErrorID = " + _conn.SyncResult.StreamErrorID + "\r\n"
+ "StreamErrorSystem = " + _conn.SyncResult.StreamErrorSystem + "\r\n"
);
}

Tom



Reply With Quote
  #52  
Old   
Justin Wong
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 03-01-2008 , 12:45 AM






I managed to get my code working after adding

ULEnableHttpsSynchronization( m_Sqlca.GetCA() );

into my code. Thanks everyone for your replies.

"Tom Slee" <firstname.lastname (AT) sybase (DOT) com> wrote

Quote:
Justin Wong wrote:
Hi Tom,

I have already read through that document before I attempted the sync. I
have a feeling it's a problem with some libraries. Is there some way to
get a more detailed error message? -85 is kinda generic.

I use code like this for communication error reporting:

if( uEx.NativeError == ULSQLCode.SQLE_COMMUNICATIONS_ERROR )
{
MessageBox.Show( "StreamErrorCode = " +
_conn.SyncResult.StreamErrorCode.ToString() + "\r\n"
+ "StreamErrorContext = " + _conn.SyncResult.StreamErrorContext
+ "\r\n"
+ "StreamErrorID = " + _conn.SyncResult.StreamErrorID + "\r\n"
+ "StreamErrorSystem = " + _conn.SyncResult.StreamErrorSystem + "\r\n"
);
}

Tom



Reply With Quote
  #53  
Old   
Justin Wong
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 03-01-2008 , 12:45 AM



I managed to get my code working after adding

ULEnableHttpsSynchronization( m_Sqlca.GetCA() );

into my code. Thanks everyone for your replies.

"Tom Slee" <firstname.lastname (AT) sybase (DOT) com> wrote

Quote:
Justin Wong wrote:
Hi Tom,

I have already read through that document before I attempted the sync. I
have a feeling it's a problem with some libraries. Is there some way to
get a more detailed error message? -85 is kinda generic.

I use code like this for communication error reporting:

if( uEx.NativeError == ULSQLCode.SQLE_COMMUNICATIONS_ERROR )
{
MessageBox.Show( "StreamErrorCode = " +
_conn.SyncResult.StreamErrorCode.ToString() + "\r\n"
+ "StreamErrorContext = " + _conn.SyncResult.StreamErrorContext
+ "\r\n"
+ "StreamErrorID = " + _conn.SyncResult.StreamErrorID + "\r\n"
+ "StreamErrorSystem = " + _conn.SyncResult.StreamErrorSystem + "\r\n"
);
}

Tom



Reply With Quote
  #54  
Old   
Justin Wong
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 03-01-2008 , 12:45 AM



I managed to get my code working after adding

ULEnableHttpsSynchronization( m_Sqlca.GetCA() );

into my code. Thanks everyone for your replies.

"Tom Slee" <firstname.lastname (AT) sybase (DOT) com> wrote

Quote:
Justin Wong wrote:
Hi Tom,

I have already read through that document before I attempted the sync. I
have a feeling it's a problem with some libraries. Is there some way to
get a more detailed error message? -85 is kinda generic.

I use code like this for communication error reporting:

if( uEx.NativeError == ULSQLCode.SQLE_COMMUNICATIONS_ERROR )
{
MessageBox.Show( "StreamErrorCode = " +
_conn.SyncResult.StreamErrorCode.ToString() + "\r\n"
+ "StreamErrorContext = " + _conn.SyncResult.StreamErrorContext
+ "\r\n"
+ "StreamErrorID = " + _conn.SyncResult.StreamErrorID + "\r\n"
+ "StreamErrorSystem = " + _conn.SyncResult.StreamErrorSystem + "\r\n"
);
}

Tom



Reply With Quote
  #55  
Old   
Justin Wong
 
Posts: n/a

Default Re: Problem with Mobilink Sync over https from Ultralite - 03-01-2008 , 12:45 AM



I managed to get my code working after adding

ULEnableHttpsSynchronization( m_Sqlca.GetCA() );

into my code. Thanks everyone for your replies.

"Tom Slee" <firstname.lastname (AT) sybase (DOT) com> wrote

Quote:
Justin Wong wrote:
Hi Tom,

I have already read through that document before I attempted the sync. I
have a feeling it's a problem with some libraries. Is there some way to
get a more detailed error message? -85 is kinda generic.

I use code like this for communication error reporting:

if( uEx.NativeError == ULSQLCode.SQLE_COMMUNICATIONS_ERROR )
{
MessageBox.Show( "StreamErrorCode = " +
_conn.SyncResult.StreamErrorCode.ToString() + "\r\n"
+ "StreamErrorContext = " + _conn.SyncResult.StreamErrorContext
+ "\r\n"
+ "StreamErrorID = " + _conn.SyncResult.StreamErrorID + "\r\n"
+ "StreamErrorSystem = " + _conn.SyncResult.StreamErrorSystem + "\r\n"
);
}

Tom



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.