| View previous topic :: View next topic |
| Author |
Message |
smitha.p
Joined: 01 Mar 2008 Posts: 6
|
Posted: Sat Mar 01, 2008 9:29 am Post subject: Wap Push error |
|
|
I am trying to wap push from .net using GSMOUT in active experts library. using MO 200 GPRS modem. The sending sms is working.
But it is throwing the following error from wap push module.
'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' while doing objWap.ConnectionType =objConstants.asWAPPUSH_SERVICE_INDICATION.
Can some one please help. I am attaching the code below.
string[] status = new string[2];
ASmsCtrl.WapPush objWap = new ASmsCtrl.WapPush();
ASmsCtrl.ConstantsClass objConstants = new ASmsCtrl.ConstantsClass();
objWap.ConnectionType = objConstants.asWAPPUSH_SERVICE_INDICATION;
//objWap.ConnectionType = 0;
objWap.URL = url;
objWap.Description = message;
objWap.SignalReference = "6532";
objWap.SignalAction = objConstants.asWAPPUSHSIGNAL_MEDIUM;
int nMessageParts = objWap.Encode();
GsmOut objGsmOut = new GsmOut();
objGsmOut.Device = ConfigurationSettings.AppSettings["gsmDevice"].
ToString();
objGsmOut.MessageType = objConstants.asMESSAGETYPE_DATA_UDH;
//asMESSAGETYPE_DATA_UDH;
objGsmOut.MessageRecipient = mPhoneNo;
for (int i = 0; i < nMessageParts; i++)
{
objGsmOut.MessageData = objWap.GetMessagePart(i);
objGsmOut.Send();
}
if (objGsmOut.LastError == 0)
{
status[0] = "1";
status[1] = objGsmOut.MessageReference.ToString();
}
else
{
status[0] = "0";
status[1] = objGsmOut.GetErrorDescription(objGsmOut.LastError);
}
objGsmOut.Clear();
return status; |
|
| Back to top |
|
 |
Leon
Joined: 11 Jul 2007 Posts: 405
|
|
| Back to top |
|
 |
smitha.p
Joined: 01 Mar 2008 Posts: 6
|
Posted: Thu Mar 06, 2008 11:35 am Post subject: |
|
|
We are about to release the website and is stuck with this problem. Using a licensed version of the library. Version 1.0.0
There is no such class mentioned in the post.
Can somebody please give some useful information. |
|
| Back to top |
|
 |
Leon
Joined: 11 Jul 2007 Posts: 405
|
Posted: Fri Mar 07, 2008 8:42 am Post subject: |
|
|
Hi,
I noticed that you are a 2006 version. Can you try the latest package to see if the problem still exists. I am unable to reproduce this error with the latest version.
Leon |
|
| Back to top |
|
 |
smitha.p
Joined: 01 Mar 2008 Posts: 6
|
Posted: Mon Mar 10, 2008 6:48 am Post subject: |
|
|
| We have installed licensed version. How to install the latest version? |
|
| Back to top |
|
 |
smitha.p
Joined: 01 Mar 2008 Posts: 6
|
Posted: Mon Mar 10, 2008 6:56 am Post subject: |
|
|
| Sorry the version of ASMSCtrl.dll is 4.1.7.914. The interop.ASmsCtrl is of version 1.0.0 |
|
| Back to top |
|
 |
Leon
Joined: 11 Jul 2007 Posts: 405
|
Posted: Fri Mar 14, 2008 12:59 pm Post subject: |
|
|
Okay thanks for the update. I will try to reproduce this and let you know,
Leon |
|
| Back to top |
|
 |
|