Click here to Skip to main content
13,769,004 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
MSXML2.ServerXMLHTTP objHTTP = new ServerXMLHTTP();
ServerIP = txtTallyPath.Text.ToString();
try
{
objHTTP.open("POST", ServerIP, false, null, null);
string strFileName = string.Empty;
strFileName = System.Configuration.ConfigurationManager.AppSettings["XMLPath"].ToString();

if (System.IO.File.Exists(strFileName))
{
System.IO.File.Delete(strFileName);
}

using (StreamWriter sw = new StreamWriter(strFileName, true))
{
sw.WriteLine(strXMLData);
}

//objHTTP.send(strFileName);
objHTTP.send(strXMLData);
}
catch (System.Runtime.InteropServices.COMException ex)
{
ErrorLogClass.PrintText(ex.ToString(), "GetTallyInvoice()");
}

strResponse = string.Empty;
strResponse = objHTTP.responseText.ToString();

I am getting error on this line,
strResponse = objHTTP.responseText.ToString();

and data is not imported into Tally. There is no error shown apart from this.

What I have tried:

I tried all the possible ways to solve this issue even i am getting help from my senior also, but he also cannot solve this. Anyone give the solution. Last 3 days i am trying to solve this.
Posted 2-Jan-18 21:28pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web05-2016 | 2.8.181117.1 | Last Updated 3 Jan 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100