PDA

View Full Version : SMS dll Error



rayyan
03-03-2014, 11:56 AM
Hi,
This is Rayan el hachem from Elbarid.com company from Lebanon
I'm a senior developer working in .NET solution (visual basic 2010).
I made a sample code in vb.net as below:
'''''''''''''''''''''''''''''
Public Class SMS

Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

Dim elb As New ElbaridRef.AuthHeader
Dim cl As New ElbaridRef.ElbaridService
System.Net.ServicePointManager.Expect100Continue = False
Dim clSMS As New ElbaridRef.Sms

' pTO: The mobile number
' pBody: SMS Body
' pFrom: The SMS sender ID as will be displayed in mobile SMS
elb.username = "rayanhachem"
elb.password = "rayanhachem"
cl.AuthHeaderValue = elb

'''''''''''''''''''''''''''
' Implement your SMS sending here
'''''''''''''''''''''''''''
clSMS.phoneNumber = pTo
clSMS.notify = "0"
clSMS.senderId = pFrom
clSMS.vbApp = "SoapRequest"
clSMS.vbIdTime = "1" '' MessageID
clSMS.priority = "1"
clSMS.sms_type_id = "1" ''if normal
clSMS.message = pBody
clSMS.unicodeMessage = "0"
cl.unicast(clSMS)

End Function
End Class
'''''''''''''''''''''''''''''
and i saved it as dll file
i tried to insert this dll in the vertex SMS Central but i an erro has occured ,you can the it in the attached file with the dll

waiting for you in order to know what is reason oof this error and how i can avoid it

best regards,319

Hassan-HS
03-03-2014, 12:29 PM
Hello,



You are welcome bro,,, please rename your class to be "SMSSending"




Public Class SMSSending
Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

Dim elb As New ElbaridRef.AuthHeader
Dim cl As New ElbaridRef.ElbaridService
System.Net.ServicePointManager.Expect100Continue = False
Dim clSMS As New ElbaridRef.Sms

' pTO: The mobile number
' pBody: SMS Body
' pFrom: The SMS sender ID as will be displayed in mobile SMS
elb.username = "rayanhachem"
elb.password = "rayanhachem"
cl.AuthHeaderValue = elb

'''''''''''''''''''''''''''
' Implement your SMS sending here
'''''''''''''''''''''''''''
clSMS.phoneNumber = pTo
clSMS.notify = "0"
clSMS.senderId = pFrom
clSMS.vbApp = "SoapRequest"
clSMS.vbIdTime = "1" '' MessageID
clSMS.priority = "1"
clSMS.sms_type_id = "1" ''if normal
clSMS.message = pBody
clSMS.unicodeMessage = "0"
cl.unicast(clSMS)

End Function

End Class

rayyan
03-10-2014, 05:18 AM
Thank you hassan ,
i will test it than i will get back to u the result

Hello,



You are welcome bro,,, please rename your class to be "SMSSending"




Public Class SMSSending
Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

Dim elb As New ElbaridRef.AuthHeader
Dim cl As New ElbaridRef.ElbaridService
System.Net.ServicePointManager.Expect100Continue = False
Dim clSMS As New ElbaridRef.Sms

' pTO: The mobile number
' pBody: SMS Body
' pFrom: The SMS sender ID as will be displayed in mobile SMS
elb.username = "rayanhachem"
elb.password = "rayanhachem"
cl.AuthHeaderValue = elb

'''''''''''''''''''''''''''
' Implement your SMS sending here
'''''''''''''''''''''''''''
clSMS.phoneNumber = pTo
clSMS.notify = "0"
clSMS.senderId = pFrom
clSMS.vbApp = "SoapRequest"
clSMS.vbIdTime = "1" '' MessageID
clSMS.priority = "1"
clSMS.sms_type_id = "1" ''if normal
clSMS.message = pBody
clSMS.unicodeMessage = "0"
cl.unicast(clSMS)

End Function

End Class

Hassan-HS
03-10-2014, 09:03 PM
Hello,


You are welcome... i'm waiting your updates....

rayyan
03-11-2014, 02:28 PM
Dear hassan ,
it gave me the same error322
kindly find attached the error
maybe there is an error in the configuration

Hassan-HS
03-11-2014, 03:13 PM
Hello,
Please send me the content of this file... C:\Program Files\HS\VertexFX SMS Central\info.txt

rayyan
03-12-2014, 07:34 AM
kindly find below the content of the Dll file:

Public Class SMSSending

Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

Dim elb As New ElbaridRef.AuthHeader
Dim cl As New ElbaridRef.ElbaridService
System.Net.ServicePointManager.Expect100Continue = False
Dim clSMS As New ElbaridRef.Sms

' pTO: The mobile number
' pBody: SMS Body
' pFrom: The SMS sender ID as will be displayed in mobile SMS
elb.username = "rayanhachem"
elb.password = "rayanhachem"
cl.AuthHeaderValue = elb

'''''''''''''''''''''''''''
' Implement your SMS sending here
'''''''''''''''''''''''''''
clSMS.phoneNumber = pTo
clSMS.notify = "0"
clSMS.senderId = pFrom
clSMS.vbApp = "SoapRequest"
clSMS.vbIdTime = "1" '' MessageID
clSMS.priority = "1"
clSMS.sms_type_id = "1" ''if normal
clSMS.message = pBody
clSMS.unicodeMessage = "0"
cl.unicast(clSMS)

End Function
End Class

Hassan-HS
03-12-2014, 08:07 AM
Hello,

Please zip this folder and send it to me C:\Program Files\HS\VertexFX SMS Central

rayyan
03-12-2014, 10:54 AM
Hello,

Please zip this folder and send it to me C:\Program Files\HS\VertexFX SMS Central

Dear find a zip file attached to this mail

Hassan-HS
03-12-2014, 02:01 PM
Hello,

Can you send me your team-viewer ID and password to solve the issue?

rayyan
03-13-2014, 12:01 PM
Hello,

Can you send me your team-viewer ID and password to solve the issue?

Dear Hassan ,

Mr ali jazeeiri wil contact you asap in order to give you the criteria

Hassan-HS
03-13-2014, 01:07 PM
Hello,


We are working to solve your case...

Hassan-HS
03-16-2014, 03:53 PM
Hello,


I have upgraded Vetexfx SMS to 10.5 and now it's loads your DLL without any problem.

rayyan
03-17-2014, 02:15 PM
hey hassan,
thank you for your prompt reply
Did you make a test?
did you receive an sms?

rayyan
03-17-2014, 02:38 PM
Hello,


I have upgraded Vetexfx SMS to 10.5 and now it's loads your DLL without any problem.


Hi hassan,
kindly find below the content of the dll if is there any incompatibility with your system becoze i tried to send sms but it give me an error :]

Public Class SMSSending

Public Function SendSMS(ByVal pTo As String, ByVal pBody As String, ByVal pFrom As String) As String

Dim elb As New ElbaridRef.AuthHeader
Dim cl As New ElbaridRef.ElbaridService
System.Net.ServicePointManager.Expect100Continue = False
Dim clSMS As New ElbaridRef.Sms

' pTO: The mobile number
' pBody: SMS Body
' pFrom: The SMS sender ID as will be displayed in mobile SMS
elb.username = "rayanhachem"
elb.password = "rayanhachem"
cl.AuthHeaderValue = elb

'''''''''''''''''''''''''''
' Implement your SMS sending here
'''''''''''''''''''''''''''
clSMS.phoneNumber = pTo
clSMS.notify = "0"
clSMS.senderId = pFrom
clSMS.vbApp = "SoapRequest"
clSMS.vbIdTime = "1" '' MessageID
clSMS.priority = "1"
clSMS.sms_type_id = "1" ''if normal
clSMS.message = pBody
clSMS.unicodeMessage = "0"
cl.unicast(clSMS)

End Function
End Class

Hassan-HS
03-17-2014, 02:41 PM
Hello,



kindly find below the content of the dll if is there any incompatibility with your system becoze i tried to send sms but it give me an error :]


Can you send me the error description?

Hassan-HS
03-19-2014, 12:33 PM
Hello Rayan,

I confirm that the issue is from your side, I have developed a sample that sends text msgs using your DLL to custom mobile number and its not work at all please check your DLL or your provider.

rayyan
03-20-2014, 06:23 AM
ill check from the provider and ill get back to u the answer
thx u hassan :)

Hassan-HS
03-20-2014, 10:25 AM
Dear rayan,

You are welcome :D OK

rayyan
03-25-2014, 07:42 AM
Dear hassan kindly find a NEW DLL attached to this mail.
pls i need to test it and if an error will ocur it will store it in a folder that the DLL will create it in the desktop that contains a full description of the error

Waiting ur reply

Hassan-HS
03-25-2014, 08:45 AM
Hello Rayan,


OK i will test it, please standby.

Hassan-HS
03-25-2014, 09:33 AM
Dear Rayan,


I have tested it and its not working and there is no log file or folders that appeared on my desktop.


Note: You can test by your self as following

1- Add your DLL to your project as reference.
2- Create object of SMSSending
3- Invoke SendSMS method

rayyan
03-31-2014, 06:08 AM
dearr hassan ,
i tested by myself from my project and evrything is fine but when i add this DLL to vertex central SMS ,i received this error:
"ERROR: System.InvalidOperationException: Not allowed to change the 'ConnectionString' property. The connection's current state is open.
at System.Data.OleDb.OleDbConnection.ConnectionString _Set(String value)
at System.Data.OleDb.OleDbConnection.set_ConnectionSt ring(String value)
at VertexFX_SMS_Central.CSMSManager.Init() in D:\SMS\VertexFX SMS Central\CSMSManager.vb:line 63"

Kindly advice

Hassan-HS
03-31-2014, 07:03 AM
Hello Rayan,


Can we check your DLL together? please send me your teamviewer ID & pass.

As for the error just restart the SMS central.

rayyan
03-31-2014, 07:08 AM
dear hassan ,
you need the teamviewer of the code of the dll or of the server of vertex sms central?

Hassan-HS
03-31-2014, 07:40 AM
Hello rayyan.

1) I have checked the server and there is no error at this moment.
2) please send the teamviewer of the code.

rayyan
04-01-2014, 07:06 AM
the ID:918 527 705
Password: 7mme75

rayyan
04-01-2014, 07:16 AM
kindly send me an email to :
rayan@elbarid.com
when u want to login via teamviewer

Hassan-HS
04-01-2014, 09:21 AM
As our session on team-viewer we have found the problem, which is in the sender ID and it has been solved.

rayyan
04-01-2014, 10:00 AM
As our session on team-viewer we have found the problem, which is in the sender ID and it has been solved.

Dear hassan find attached the new dll file pls rename the extention from "jpeg" to ".dll"
waiting for you to comfirm me after testing

rayyan
04-01-2014, 11:13 AM
As our session on team-viewer we have found the problem, which is in the sender ID and it has been solved.

hi hassan
did u get the dl?

Hassan-HS
04-01-2014, 11:40 AM
Hello Rayyan



unfortunately no, please zip it and resend it.

rayyan
04-01-2014, 12:43 PM
hi hassan
kindly find attached

Hassan-HS
04-01-2014, 12:49 PM
Ok i will test it, thanks for your post

rayyan
04-02-2014, 07:06 AM
Ok i will test it, thanks for your post

hi hassan,hope u r fine :)
did u test the dll?

Hassan-HS
04-02-2014, 09:45 AM
Hi Rayyan,


yes i made a sample and i confirm that's works fine.

rayyan
04-02-2014, 11:36 AM
Hi Rayyan,


yes i made a sample and i confirm that's works fine.

thx a lot hassan
if i need anything else ill contact u thank u soo much
ill contact mr ali jazeiri to call u and make him a test in his local server
many thanks again!!