Click here to Skip to main content
15,902,835 members
Home / Discussions / C#
   

C#

 
QuestionAccessing other projects "user.config" file Pin
Kaare Tragethon26-Jun-10 4:32
Kaare Tragethon26-Jun-10 4:32 
AnswerRepost - Answered in QA Pin
DaveyM6926-Jun-10 6:05
professionalDaveyM6926-Jun-10 6:05 
QuestionQuery for multiple occurance in Column Pin
Nikhil Bhivgade26-Jun-10 2:30
professionalNikhil Bhivgade26-Jun-10 2:30 
AnswerRe: Query for multiple occurance in Column Pin
Pete O'Hanlon26-Jun-10 2:33
mvePete O'Hanlon26-Jun-10 2:33 
QuestionHTML Page download in C# Pin
makumazan8426-Jun-10 1:58
makumazan8426-Jun-10 1:58 
GeneralRe: HTML Page download in C# Pin
harold aptroot26-Jun-10 2:24
harold aptroot26-Jun-10 2:24 
GeneralRe: HTML Page download in C# [modified] Pin
makumazan8426-Jun-10 3:48
makumazan8426-Jun-10 3:48 
QuestionProblem on XMLUnSerialize Pin
Tiago Conceição26-Jun-10 1:33
Tiago Conceição26-Jun-10 1:33 
im tring to UnSerialize that string:

XML
<?xml version="1.0" encoding="UTF-8"?>
<result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" method="auth.createToken" status="ok">
	<error code="21" text="One of the parameter values is invalid" info="api_key"/> 
</result>


But when i acess the properties it crash program with a null exception

wheres my class:

C#
[XmlRoot("result")]
 public class ResultMessage
 {
 [XmlIgnore] 
 public const string StatusOk = "ok";
 [XmlIgnore]
 public const string StatusFail = "fail";

 [XmlAttribute("method")]
 public string _method;
 public string Method
 {
 get { return _method; }
 }

 [XmlAttribute("status")]
 public string _status;
 public string Status
 {
 get { return _status; }
 }

 [XmlElement("error")] 
 [XmlAttribute("status")] 
 public int _errorcode;
 public ErrorCode ErrorCode
 {
 get { return (ErrorCode)_errorcode; }
 }

 [XmlElement("error")]
 [XmlAttribute("text")]
 public string _errortext;
 public string ErrorText
 {
 get { return _errortext; }
 }

 [XmlElement("error")]
 [XmlAttribute("info")]
 public string _errorinfo;
 public string ErrorInfo
 {
 get { return _errorinfo; }
 }

 public ResultMessage()
 {
 _errorcode = 0;
 }


Thanks
QuestionJoin RTF Pin
Sebastian T Xavier25-Jun-10 19:21
Sebastian T Xavier25-Jun-10 19:21 
AnswerRe: Join RTF Pin
Abhinav S25-Jun-10 22:19
Abhinav S25-Jun-10 22:19 
GeneralRe: Join RTF Pin
Sebastian T Xavier27-Jun-10 18:41
Sebastian T Xavier27-Jun-10 18:41 
AnswerRe: Join RTF Pin
Xmen Real 26-Jun-10 4:32
professional Xmen Real 26-Jun-10 4:32 
QuestionPopulate a Table with Recordset [modified] Pin
ASPnoob25-Jun-10 18:44
ASPnoob25-Jun-10 18:44 
AnswerRe: Populate a Table with Recordset Pin
Roger Wright25-Jun-10 19:32
professionalRoger Wright25-Jun-10 19:32 
AnswerRe: Populate a Table with Recordset Pin
Richard MacCutchan25-Jun-10 22:23
mveRichard MacCutchan25-Jun-10 22:23 
GeneralRe: Populate a Table with Recordset Pin
Pete O'Hanlon26-Jun-10 2:28
mvePete O'Hanlon26-Jun-10 2:28 
GeneralRe: Populate a Table with Recordset Pin
Richard MacCutchan26-Jun-10 2:59
mveRichard MacCutchan26-Jun-10 2:59 
Questioni need a very simple chat application Pin
Nikhil Bhivgade25-Jun-10 2:27
professionalNikhil Bhivgade25-Jun-10 2:27 
AnswerRe: i need a very simple chat application Pin
OriginalGriff25-Jun-10 2:46
mveOriginalGriff25-Jun-10 2:46 
GeneralRe: i need a very simple chat application Pin
Luc Pattyn25-Jun-10 3:12
sitebuilderLuc Pattyn25-Jun-10 3:12 
GeneralRe: i need a very simple chat application Pin
OriginalGriff25-Jun-10 3:18
mveOriginalGriff25-Jun-10 3:18 
GeneralRe: i need a very simple chat application Pin
Luc Pattyn25-Jun-10 3:37
sitebuilderLuc Pattyn25-Jun-10 3:37 
AnswerRe: i need a very simple chat application Pin
Richard MacCutchan25-Jun-10 2:49
mveRichard MacCutchan25-Jun-10 2:49 
AnswerRe: i need a very simple chat application Pin
PIEBALDconsult25-Jun-10 4:03
mvePIEBALDconsult25-Jun-10 4:03 
AnswerRe: i need a very simple chat application Pin
Blue_Boy25-Jun-10 12:36
Blue_Boy25-Jun-10 12:36 

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.