cancel
Showing results for 
Search instead for 
Did you mean: 

Error: 1101 Message: monet:DeviceManagement.dll Windows Mobile

Former Member
0 Kudos

Hi.

We're depeloping an application on Windows Mobile 6.5 with the last version of Sybase Unwired Plataform 2.1.3 patch #2 and we have troubles  when we try to register the application on the server because it throws this exception:

**Error: 1101 Message: 'monet:DeviceManagement.dll:DeviceManagement:AddDeviceRegistration

We've checked the connections of the server and the packges on the workspace and are ok. So we don't know exaclty what is the problem because we have tried the example that are on sybooks (SUP101) and it runs perfectly, actually we're using the same lines of code in our application but the error occurs when pass the line that register the application on the server

This is our method:

private void menuItemRegister_Click(object sender, EventArgs e)

        {


            Sybase.Mobile.Application app = Sybase.Mobile.Application.GetInstance();

            app.ApplicationIdentifier = "SYNC_SAC";

           

            SYNC_SACDB.SetApplication(app);

            SYNC_SACDB.GetSynchronizationProfile().ServerName = HOST;

            ConnectionProperties connProps = app.ConnectionProperties;


           

            LoginCredentials loginCredentials = new LoginCredentials(USERNAME, PASSWORD);

            connProps.LoginCredentials = loginCredentials;

            connProps.ServerName = HOST;


            connProps.PortNumber = PORT;

if (app.RegistrationStatus != RegistrationStatus.REGISTERED)

            {

                app.RegisterApplication(TIMEOUT);     //In this line is when throws the error unexpectedly**

            }

else

            {

                app.StartConnection(TIMEOUT);

            }

if (!SYNC_SACDB.IsSynchronized("default"))

            {

                  SYNC_SACDB.DisableChangeLog();

                  SYNC_SACDB.Synchronize(); // Initial Synchronize

                  ISynchronizationGroup sg = SYNC_SACDB.GetSynchronizationGroup("default");

                sg.EnableSIS = true;

                sg.Save();

                SYNC_SACDB.Synchronize();

            }


SYNC_SACDB.EnableChangeLog();

        }

This is the output of Visual Studio 2008:

'Supervisores de venta.exe' (Managed): Loaded 'C:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\mscorlib.dll'

'Supervisores de venta.exe' (Managed): Loaded 'c:\users\carvazquez\desktop\@mobile\sup 2.1\@supervisores\@supervisores_v.2.5_sac_upgrade\@supervisoresventas_des\supervisores de venta\supervisores de venta\bin\debug\Supervisores de venta.exe', Symbols loaded.

'Supervisores de venta.exe' (Managed): Loaded 'System.Windows.Forms.dll'

'Supervisores de venta.exe' (Managed): Loaded 'System.dll'

'Supervisores de venta.exe' (Managed): Loaded 'System.Drawing.dll'

'Supervisores de venta.exe' (Managed): Loaded 'c:\sybase\unwiredplatform\mobilesdk213\objectapi\wm\ultralite\sup-client.dll'

'Supervisores de venta.exe' (Managed): Loaded 'System.Data.dll'

'Supervisores de venta.exe' (Managed): Loaded 'System.Xml.dll'

The thread 0x9d989a2e has exited with code 0 (0x0).

The thread 0xdd6c0ad6 has exited with code 0 (0x0).

'Supervisores de venta.exe' (Managed): Loaded 'System.SR.dll'

The thread 0x9d989a2e has exited with code 0 (0x0).

A first chance exception of type 'System.Net.WebException' occurred in System.dll

A first chance exception of type 'System.Net.WebException' occurred in System.dll

'Supervisores de venta.exe' (Managed): Loaded 'c:\users\carvazquez\desktop\@mobile\sup 2.1\@supervisores\@supervisores_v.2.5_sac_upgrade\@supervisoresventas_des\mbos\sync_sac\generated code\src\bin\debug\SYNC_SAC.dll', Symbols loaded.

A first chance exception of type 'Sybase.MessagingClientLib.MessagingClientException' occurred in sup-client.dll

A first chance exception of type 'Sybase.MessagingClientLib.MessagingClientException' occurred in sup-client.dll

A first chance exception of type 'Sybase.MessagingClientLib.MessagingClientException' occurred in sup-client.dll

A first chance exception of type 'Sybase.MessagingClientLib.MessagingClientException' occurred in sup-client.dll

The thread 0x9d6ee046 has exited with code 0 (0x0).

A first chance exception of type 'Sybase.Mobile.ApplicationRuntimeException' occurred in sup-client.dll

Someone that have had the same problem in one of your solutions?? or any idea that what is the problem??  We'll be thanked

Regards!!

Accepted Solutions (0)

Answers (1)

Answers (1)

DoanManhQuynh
Active Contributor
0 Kudos

Hi Carlos.

have you solve this issue? I have this trouble too,please tell me how to solve this.

Former Member
0 Kudos

Hi guys,

Have you resolve that issue ? If yes, can you tell me please what is wrong, and how to fix it ?

DoanManhQuynh
Active Contributor
0 Kudos

This issue used to come when I register app with 1 SUP server then register with another server. It's make MMS authentication failed. You can go to Moca file to see more detail what happen.If you going to register your project with multi server, u should unregister first.