Click here to Skip to main content
15,884,472 members
Home / Discussions / C#
   

C#

 
QuestionWriting word in MS word by using voice Pin
Basudevkuet14-Mar-10 18:23
Basudevkuet14-Mar-10 18:23 
AnswerRe: Writing word in MS word by using voice Pin
ScottM114-Mar-10 21:03
ScottM114-Mar-10 21:03 
GeneralRe: Writing word in MS word by using voice in c# Pin
Basudevkuet15-Mar-10 8:31
Basudevkuet15-Mar-10 8:31 
GeneralRe: Writing word in MS word by using voice in c# Pin
ScottM115-Mar-10 20:57
ScottM115-Mar-10 20:57 
AnswerRe: Writing word in MS word by using voice Pin
Andre' Gardiner14-Mar-10 23:28
professionalAndre' Gardiner14-Mar-10 23:28 
GeneralRe: Writing word in MS word by using voice Pin
Basudevkuet15-Mar-10 8:07
Basudevkuet15-Mar-10 8:07 
AnswerRe: Writing word in MS word by using voice Pin
Dave Kreskowiak15-Mar-10 4:07
mveDave Kreskowiak15-Mar-10 4:07 
QuestionProblem while Deserializing [Solved] Pin
nagendrathecoder14-Mar-10 18:23
nagendrathecoder14-Mar-10 18:23 
hi all,
i am trying to deserialize a xml string into an object but i am getting following error :
"An exception of type 'System.InvalidCastOperationException' occured in System.Xml.dll but was not handled in user code.
Additional information: There is an error in XML document(1,2)."

I am using following code to deserialize :
object obj = new object();
System.Xml.Serialization.XmlSerializer x = new XmlSerializer(obj.GetType());
StringReader sr = new StringReader(strNewXml);// strNewXml is a string in xml format
XmlTextReader xml = new XmlTextReader(sr);
obj = (object)x.Deserialize(xml);//Here i am getting error

I tried to see the value of XmlTextReader xml, but it is showing as {None}.
I even tried with a string which i earlier serialized from an object but same error is displaying with it too.
Can anyone tell me where i am doing wrong.
Thanks and Regards,
Nagendra
AnswerRe: Problem while Deserializing Pin
nagendrathecoder14-Mar-10 19:25
nagendrathecoder14-Mar-10 19:25 
QuestionDatagridView Multiple ComboBox issue Pin
kruegersck14-Mar-10 12:08
kruegersck14-Mar-10 12:08 
AnswerRe: DatagridView Multiple ComboBox issue Pin
Dr.Walt Fair, PE14-Mar-10 14:59
professionalDr.Walt Fair, PE14-Mar-10 14:59 
QuestionIs scrollbar hidden? Pin
hain14-Mar-10 11:01
hain14-Mar-10 11:01 
AnswerRe: Is scrollbar hidden? Pin
Luc Pattyn14-Mar-10 11:57
sitebuilderLuc Pattyn14-Mar-10 11:57 
AnswerRe: Is scrollbar hidden? Pin
Alan N14-Mar-10 13:10
Alan N14-Mar-10 13:10 
AnswerRe: Is scrollbar hidden? Pin
Luc Pattyn14-Mar-10 13:29
sitebuilderLuc Pattyn14-Mar-10 13:29 
QuestionProblem to save assembly via System.Reflection.Emit. Pin
hdv21214-Mar-10 9:56
hdv21214-Mar-10 9:56 
AnswerRe: Problem to save assembly via System.Reflection.Emit. Pin
Luc Pattyn14-Mar-10 11:35
sitebuilderLuc Pattyn14-Mar-10 11:35 
QuestionProgrammingly Change treeview indexes Pin
Ronni Marker14-Mar-10 7:34
Ronni Marker14-Mar-10 7:34 
AnswerMessage Closed Pin
14-Mar-10 7:56
stancrm14-Mar-10 7:56 
GeneralRe: Programmingly Change treeview indexes Pin
Ronni Marker14-Mar-10 8:42
Ronni Marker14-Mar-10 8:42 
GeneralRe: Programmingly Change treeview indexes Pin
Dan Mos14-Mar-10 13:44
Dan Mos14-Mar-10 13:44 
QuestionEditing Text in a DataGridViewComboBoxColumn Pin
jojoba201114-Mar-10 4:48
jojoba201114-Mar-10 4:48 
AnswerRe: Editing Text in a DataGridViewComboBoxColumn Pin
Sandeep Mewara14-Mar-10 8:08
mveSandeep Mewara14-Mar-10 8:08 
QuestionRe: Editing Text in a DataGridViewComboBoxColumn Pin
jojoba201114-Mar-10 19:18
jojoba201114-Mar-10 19:18 
QuestionDataGridView Combobox DataError Exception Pin
arj_agt14-Mar-10 4:22
arj_agt14-Mar-10 4:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.