locked
Not Add into Dataset

    Question

  • Hi Friends,

    I am using Visual Studio 2005 for my Project. i got this Error when add the row into typed dataset. The Error Message is "Cannot perform '=' operation on System.Int64 and System.String."

    Kindly give me the solution for this Problem

    Tuesday, April 17, 2012 9:11 AM

All replies

  • I need more detainls on you Programming Environment.  What libraries are you referencing in your project?  What operating system are you using?  What Net libraries do you have installed on your PC?  Can you post some of your code and the line that is generating the error?

    Visual studio 2005 is old and you are getting a system.Int64 error which usually occurs on Win 7 PCs.  I'm not sure if you are just using a 64 bit integer in your code or the error is occuring when you are using one of the libraries.


    jdweng

    Tuesday, April 17, 2012 11:20 AM
  • i am using the following libraries

     Microsoft.Office.Interop.Excel.dll

    TallComponents.PDF.ReaderControls.dll

    Microsoft.Office.Interop.Word.dll

    Microsoft.ReportViewer.WinForms.dll

    Microsoft.Vbe.Interop.dll

    office.dll

    System.Data.dll

    System.Deployment.dll

    System.Drawing.dll

    System.Windows.Forms.dll

    System.Xml.dll

    System.dll

    TallComponents.PDF.ReaderControls.dll

    Utility.dll

    MY Os environment is xp SP3

    Our project is based on windows application  dot net version2.0

    The Exception occurs in the following line

    dstCaseGlobal.Medication.AddMedicationRow(OrderId, DrugID, Drug, "", "", "", "", "", "", Category, "", "", "", "H", "N", "", "", "", "", "", "", "", "", "", false, clinicalOrderDesc, TradeName, false, "", false, "", "");

    where orderid parameter is long data type rest are string  and bool data type..

    The data gets added into the dataset evenafter exception.

    The issue is when we bind the data to datasource of the datagrid it is not displaying and shows an error ....

    Wednesday, April 18, 2012 11:10 AM
  • Please fix your last posting.  It is missing important information

    jdweng

    Wednesday, April 18, 2012 11:11 AM
  • i am using the following libraries

     Microsoft.Office.Interop.Excel.dll

    TallComponents.PDF.ReaderControls.dll

    Microsoft.Office.Interop.Word.dll

    Microsoft.ReportViewer.WinForms.dll

    Microsoft.Vbe.Interop.dll

    office.dll

    System.Data.dll

    System.Deployment.dll

    System.Drawing.dll

    System.Windows.Forms.dll

    System.Xml.dll

    System.dll

    TallComponents.PDF.ReaderControls.dll

    Utility.dll

    MY Os environment is xp SP3

    Our project is based on windows application  dot net version2.0

    The Exception occurs in the following line

    dstCaseGlobal.Medication.AddMedicationRow(OrderId, DrugID, Drug, "", "", "", "", "", "", Category, "", "", "", "H", "N", "", "", "", "", "", "", "", "", "", false, clinicalOrderDesc, TradeName, false, "", false, "", "");

    where orderid parameter is long data type rest are string  and bool data type..

    The data gets added into the dataset evenafter exception.

    The issue is when we bind the data to datasource of the datagrid it is not displaying and shows an error ....

    Thanks in Advance,

    Rajkumar

    Wednesday, April 18, 2012 11:49 AM