Click here to Skip to main content
15,899,126 members

Comments by Hesha (Top 52 by date)

Hesha 14-Dec-15 3:10am View    
hi i did like that but im getting following error

?ex
{"Cross-thread operation not valid: Control 'dataGridView1' accessed from a thread other than the thread it was created on."}
Data: {System.Collections.ListDictionaryInternal}
HResult: -2146233079
HelpLink: null
InnerException: null
Message: "Cross-thread operation not valid: Control 'dataGridView1' accessed from a thread other than the thread it was created on."
Source: "System.Windows.Forms"
StackTrace: " at System.Windows.Forms.Control.get_Handle()\r\n at System.Windows.Forms.DataGridView.FlushDisplayedChanged()\r\n at System.Windows.Forms.DataGridView.PerformLayoutPrivate(Boolean useRowShortcut, Boolean computeVisibleRows, Boolean invalidInAdjustFillingColumns, Boolean repositionEditingControl)\r\n at System.Windows.Forms.DataGridView.ResetUIState(Boolean useRowShortcut, Boolean computeVisibleRows)\r\n at System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged_PreNotification(CollectionChangeAction cca, Int32 rowIndex, Int32 rowCount, DataGridViewRow& dataGridViewRow, Boolean changeIsInsertion)\r\n at System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged(CollectionChangeEventArgs e, Int32 rowIndex, Int32 rowCount, Boolean changeIsDeletion, Boolean changeIsInsertion, Boolean recreateNewRow, Point newCurrentCell)\r\n at System.Windows.Forms.DataGridViewRowCollection.ClearInternal(Boolean recreateNewRow)\r\n at System.Windows.Forms.DataGridView.RefreshCol
umnsAndRows()\r\n at System.Windows.Forms.DataGridView.OnDataSourceChanged(EventArgs e)\r\n at System.Windows.Forms.DataGridView.set_DataSource(Object value)\r\n at Exp_GFM.frmVarifyInvoices.submitdata1() in C:\\Users\\Heshan\\Documents\\Visual Studio 2015\\Projects\\Exp_GFM\\Exp_GFM\\frmVarifyInvoices.cs:line 436"
TargetSite: {IntPtr get_Handle()}

here was the code i tried

private void submitdata()
{


List<task> tasks = new List<task>();
tasks.Add(Task.Run(() => { loading(); }));
tasks.Add(Task.Run(() => { submitdata1(); }));
Task.WaitAll(tasks.ToArray());


}
Hesha 19-Nov-15 22:14pm View    
Deleted
Thanks for ur Reply VR. I got following error when i tried to go thought their API Ver.3.0


n unhandled exception of type 'System.Xml.XmlException' occurred in System.Xml.dll

Additional information: Unexpected end of file has occurred. The following elements are not closed: YOUR_ACCOUNT_ID. Line 1, position 18.

my code was similar to following



CPS_Connection cpsConnection = new CPS_Connection(
"tcps://cloud-eu-0.clusterpoint.com:9008",
"ExpGFM",
"i entered myemail",
"enterd mypassword",
"document",
"/document/id",
new Dictionary<string, string="">(){{"101882","<your_account_id>"}}
(i dnt know YOUR account id part is not displaying even if i pasted here)

);
//CPS_Simple cps = new CPS_Simple(cpsConnection);
// creating a new document
System.Xml.XmlDocument doc1 = new System.Xml.XmlDocument();
doc1.LoadXml("<document> <id>21662 <jobdate>31-10-15 <jobtypeid>Export <vehiclecode>TestCode <to>TEST <ThenTo>SLPA</ThenTo> <load_size>40HC <load_id>TESTID <jobcost>0 ");
(all the document parts are not displaying)
// Update
CPS_Simple cpssimple = new CPS_Simple(cpsConnection);
cpssimple.updateSingle("id1", doc1.DocumentElement);
}


error indicates in core.cs in following way

foreach (KeyValuePair<string, string=""> param in envelopeParams)
{
root.AppendChild(this.p_requestDom.CreateElement("cps:" + param.Key, "www.clusterpoint.com")).InnerXml = param.Value;
}
Hesha 9-Oct-15 3:31am View    
HI I tried Cluster point.I created a DB. But how could I insert and retrieve data from Cluster Point to C# desktop App and wise versa Using Cluster point?
Hesha 17-May-14 3:31am View    
thanks
Hesha 13-Feb-13 3:56am View    
i'm using MVC asp.net.