Bonnie
Thanks for your help I'll check the column format that is being used.
Jon
>>>The GUID (workstationguid) is being generated by a web service and workstationguid is defined as a string.<
>
>OK, Jon, but a GUID has a certain format. In the error message that you showed, workstationguid is definitely not in a GUID format, so I'm guessing that your column's datatype is expecting GUID data and your Webservice is not returning it in the correct format.
>
>~~Bonnie
>
>
>
>>Bonnie
>>Thanks for the reply.
>>
>>The GUID (workstationguid) is being generated by a web service and workstationguid is defined as a string.
>>
>>Jon
>>
>>>Jon,
>>>
>>>Ok, you said that the workstationguid is correct, and yet the error message is showing some kind of a date, not a GUID. So, there's something wrong with your data somewhere ... have you tried tracing it?
>>>
>>>~~Bonnie
>>>
>>>
>>>>Working with the compact framework and writing XML file with the following code I get an error of:
>>>>
>>>>"An unhandled exception of type 'SystemsArgumentException' occurred in System.Data.dll
>>>>
>>>>Additional information: Cannot set column 'workstationguid' to '5/27/2003 05:58:33 PM70754
>>>>
>>>>
>>>>The workstationguid value is correct.
>>>>
>>>>Code producing problem is the second line
>>>>
>>>>ds.Tables[0].Rows[0]["workstationguid"] = workstationguid;
>>>>ds.WriteXml(TAConfigPath + "TAConfig.XML");
>>>>
>>>>
>>>>
>>>>Any insight to what I'm missing?
>>>>
>>>>Thanks
>>>>Jon
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement