Category Archives: Support

How to Solve “System.UnauthorizedAccessException was unhandled”

Problem

When running sample code of VB.net, you may encounter an error message “System.UnauthorizedAccessException was unhandled”

Applies To

  • Windows 7 and above; 32 bit and 64 bit
  • MOBITEK SMS API version 7 and above
  • MOBITEK STK API version 6 and above

Solution

Replace

<requestedExecutionLevel level="asInvoker" uiAccess="false"/>

with

<requestedExecutionLevel  level="requireAdministrator" uiAccess="false" />

Follow these steps:-

For Visual Studio 2015, goto "View Windows Settings"

For Visual Studio 2015, goto “View Windows Settings”

For Visual Studio 2008, goto "View UAC Settings"

For Visual Studio 2008, goto “View UAC Settings”

Replace <requestedExecutionLevel>

Replace level= “asInvoker” uiAccess= “false” with level= “requireAdministrator” uiAccess= “false”

 

 

 

 

 

Java Sample Code for MOBITEK STK API version 6.2 — InputRequest() and InputSubmit()

Introduction

STK refers to SIM Tookit.

SAT refers to SIM Application Toolkit

Both terms are interchangeable.

Java Sample Code

//To display a request from STK menu for an input
vMOBITEK = STKAPI.invoke("InputRequest");
sMOBITEK = vMOBITEK.getString();
System.out.println ("STK Menu has requested for an input: " + sMOBITEK + ".");
//To submit an input to STK Menu
strInput = "OK"
vMOBITEK = STKAPI.invoke("InputSubmit",strInput);
bMOBITEK = vMOBITEK.getBoolean();

More Information

Bug in MOBITEK STK API version 6.2.1

Bug Found In

  • MobitekSTK6.dll version 6.0, 6.1 and 6.2.1
  • MobitekSTK6.dll — ReadSMSText() always return “False” after calling SendSMS().

Test Procedure

  1. Send 10 messages from cellphone to the MOBITEK Q24 STK Modem.
  2. Call the function ReadSMSText() four times, it display the 4 messages.
  3. Then send 1 message from MOBITEK Q24 STK Modem to cellphone.
  4. Cellphone will receive the message.
  5. Call the function ReadSMSText(), return value is always “False” even though there are remaining 6 messages in SIM card.

Suggested Solution

  1. Use ReadSMS() instead; or
  2. Bug has been fixed in MOBITEK STK API verion 6.3

Status

  1. Bug has been fixed in MOBITEK STK API verion 6.3

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Applies To:-

  • MOBITEK® MobiGATE
  • MOBITEK® SMS Engine — Enterprise Edition version 5 and 6
  • Windows 7, 8 and 2012; 64 bit

Error Message: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Solution: Do no use MySQL ODBC Driver 64 bit; must use 32 bit that is included in the CD, “mysql-connector-odbc-5.1.5-win32.msi”.

 

 

Virtual Serial Port Console Shows COM Port Not Connected

VSP Console version 2.8

VSP Console version 2.8 Shows “Unconnected”

Problem: after adding new “COM port” and adding new “net”, MobiGATE’s SMS Engine is not able to initialise the modem.

Solution: restart PC/server. Sometimes, the configuration in Virtual Serial Port Console will take effect after restarting.

Applies to:-

  1. MOBITEK® MobiGATE model: SG-4-E
  2. Virtual Serial Port Console version 2.8

More Information