Click here to Skip to main content
15,916,188 members
Home / Discussions / C#
   

C#

 
AnswerRe: I had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found Pin Pin
OriginalGriff13-Feb-18 1:10
mveOriginalGriff13-Feb-18 1:10 
AnswerRe: I had an error of Email in line " dynamic email = new Email("ChngPasswordEmail");" which say's The type or Namespace name "Email" could not be found Pin Pin
Dave Kreskowiak13-Feb-18 3:19
mveDave Kreskowiak13-Feb-18 3:19 
QuestionC# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 4:00
Travis Jacobson12-Feb-18 4:00 
AnswerRe: C# need help reading XML config file with multiple values in windows forms app Pin
Richard MacCutchan12-Feb-18 6:04
mveRichard MacCutchan12-Feb-18 6:04 
AnswerRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 6:13
mveGerry Schmitz12-Feb-18 6:13 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 6:22
Travis Jacobson12-Feb-18 6:22 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 6:35
mveGerry Schmitz12-Feb-18 6:35 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 7:27
Travis Jacobson12-Feb-18 7:27 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 7:36
mveGerry Schmitz12-Feb-18 7:36 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 7:57
Travis Jacobson12-Feb-18 7:57 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Gerry Schmitz12-Feb-18 8:03
mveGerry Schmitz12-Feb-18 8:03 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 8:43
Travis Jacobson12-Feb-18 8:43 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 9:17
J. Calhoun12-Feb-18 9:17 
What is the error that you are getting with this code? Couple things that I see are I would wrap the FileStream in a using statement, there are often problems that arise if the stream hasn't been disposed properly. I would also initialize XMLClass. Also, personally I would use a StreamReader not a FileStream if you are trying to just read from the document. So you might try something like:

C#
XMLClass i = new XMLClass();

using(StreamReader stream = new StreamReader(filename))
    i = (XMLClass)serializer.Deserialize(stream);


The using statement will open, close, and dispose of you stream properly and if you want to go a step further you could wrap it in a try/catch, and it would catch the error and help you debug exactly what is going wrong.
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 10:29
Travis Jacobson12-Feb-18 10:29 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 10:44
J. Calhoun12-Feb-18 10:44 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 10:55
Travis Jacobson12-Feb-18 10:55 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
J. Calhoun12-Feb-18 11:06
J. Calhoun12-Feb-18 11:06 
QuestionRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 11:46
Travis Jacobson12-Feb-18 11:46 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 11:48
Travis Jacobson12-Feb-18 11:48 
GeneralRe: C# need help reading XML config file with multiple values in windows forms app Pin
Travis Jacobson12-Feb-18 8:43
Travis Jacobson12-Feb-18 8:43 
AnswerRe: C# need help reading XML config file with multiple values in windows forms app Pin
Dave Kreskowiak12-Feb-18 11:43
mveDave Kreskowiak12-Feb-18 11:43 
QuestionUpdating textbox from derived class c# wpf Pin
Member 1357136412-Feb-18 3:44
Member 1357136412-Feb-18 3:44 
AnswerRe: Updating textbox from derived class c# wpf Pin
Richard MacCutchan12-Feb-18 6:10
mveRichard MacCutchan12-Feb-18 6:10 
AnswerRe: Updating textbox from derived class c# wpf Pin
Gerry Schmitz12-Feb-18 6:21
mveGerry Schmitz12-Feb-18 6:21 
GeneralRe: Updating textbox from derived class c# wpf Pin
Member 1357136412-Feb-18 20:54
Member 1357136412-Feb-18 20:54 

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.