- Joined
- May 14, 2011
- Messages
- 1
- Reaction score
- 0
I have been working in a project which transacts the data between Tally and our Database through Webservice.
For some time It worked fine, but eventually im stuck in a place, where, im finding it difficult to track the solution of a problem.
Im attaching the file exactly which is creating error, and also the error.
I googled the error and just could understand one fact that its an issue related to MSXML.dll's
Ive registerd all the MSXML dll's in the clients PC..
while sending the XML request ot Tally for the first time, im facing this error....
Dim strtxt2, xmlRequest1 As String
strtxt2 = "<ENVELOPE>" & vbCrLf & _
"<HEADER>" & vbCrLf & _
"<VERSION>1</VERSION>" & vbCrLf & _
"<TALLYREQUEST>EXPORT</TALLYREQUEST>" & vbCrLf & _
"<TYPE>DATA</TYPE>" & vbCrLf & _
"<ID>TATA STEEL SALES VOUCHERS</ID>" & vbCrLf & _
"</HEADER>" & vbCrLf & _
"<BODY>" & vbCrLf & _
"<DESC>" & vbCrLf & _
"<STATICVARIABLES>" & vbCrLf & _
"<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>" & vbCrLf & _
"<SVCURRENTCOMPANY>##SVCURRENTCOMPANY</SVCURRENTCOMPANY>" & vbCrLf & _
"<STOCKGROUPNAME>jkasgdagfhk</STOCKGROUPNAME>" & vbCrLf & _
"</STATICVARIABLES>" & vbCrLf & _
"</DESC>" & vbCrLf & _
"</BODY>" & vbCrLf & _
"</ENVELOPE>"
Dim xmlhttp1 As New MSXML2.XMLHTTP40
Try
xmlhttp1.open("POST", varurl, False)
xmlhttp1.setRequestHeader("Content-type", "text/xml;charset=ISO-8859-1;")
'-------- Sends the Request to Tally --------
xmlhttp1.send(strtxt2)
Catch ex1 As Exception
'-----------------this is error which I am facing .and this is due to the .send request---------------------
MsgBox("First XML creating problem" + ex1.ToString)
Me.Close()
End
End Try
Exception : System.IO.FileNotFoundException:Exception from HRESULT:0x800C0008 at MSXML2.XMLHTTP40class.send(Object varBody)
PLEASE HELP !!!!
For some time It worked fine, but eventually im stuck in a place, where, im finding it difficult to track the solution of a problem.
Im attaching the file exactly which is creating error, and also the error.
I googled the error and just could understand one fact that its an issue related to MSXML.dll's
Ive registerd all the MSXML dll's in the clients PC..
while sending the XML request ot Tally for the first time, im facing this error....
Dim strtxt2, xmlRequest1 As String
strtxt2 = "<ENVELOPE>" & vbCrLf & _
"<HEADER>" & vbCrLf & _
"<VERSION>1</VERSION>" & vbCrLf & _
"<TALLYREQUEST>EXPORT</TALLYREQUEST>" & vbCrLf & _
"<TYPE>DATA</TYPE>" & vbCrLf & _
"<ID>TATA STEEL SALES VOUCHERS</ID>" & vbCrLf & _
"</HEADER>" & vbCrLf & _
"<BODY>" & vbCrLf & _
"<DESC>" & vbCrLf & _
"<STATICVARIABLES>" & vbCrLf & _
"<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>" & vbCrLf & _
"<SVCURRENTCOMPANY>##SVCURRENTCOMPANY</SVCURRENTCOMPANY>" & vbCrLf & _
"<STOCKGROUPNAME>jkasgdagfhk</STOCKGROUPNAME>" & vbCrLf & _
"</STATICVARIABLES>" & vbCrLf & _
"</DESC>" & vbCrLf & _
"</BODY>" & vbCrLf & _
"</ENVELOPE>"
Dim xmlhttp1 As New MSXML2.XMLHTTP40
Try
xmlhttp1.open("POST", varurl, False)
xmlhttp1.setRequestHeader("Content-type", "text/xml;charset=ISO-8859-1;")
'-------- Sends the Request to Tally --------
xmlhttp1.send(strtxt2)
Catch ex1 As Exception
'-----------------this is error which I am facing .and this is due to the .send request---------------------
MsgBox("First XML creating problem" + ex1.ToString)
Me.Close()
End
End Try
Exception : System.IO.FileNotFoundException:Exception from HRESULT:0x800C0008 at MSXML2.XMLHTTP40class.send(Object varBody)
PLEASE HELP !!!!