Click here to Skip to main content
15,904,877 members
Home / Discussions / C#
   

C#

 
GeneralRe: How dotnet application run Pin
Mou_kol15-Feb-18 21:45
Mou_kol15-Feb-18 21:45 
GeneralRe: How dotnet application run Pin
Dave Kreskowiak16-Feb-18 5:03
mveDave Kreskowiak16-Feb-18 5:03 
QuestionPost an unselected ListBoxFor in MVC Pin
VK1913-Feb-18 9:36
VK1913-Feb-18 9:36 
QuestionRe: Post an unselected ListBoxFor in MVC Pin
Eddy Vluggen13-Feb-18 10:57
professionalEddy Vluggen13-Feb-18 10:57 
AnswerRe: Post an unselected ListBoxFor in MVC Pin
BillWoodruff13-Feb-18 18:11
professionalBillWoodruff13-Feb-18 18:11 
QuestionASP.NET: Buttons generated in code behind will not fire event Pin
Member 958444513-Feb-18 3:10
Member 958444513-Feb-18 3:10 
AnswerRe: ASP.NET: Buttons generated in code behind will not fire event Pin
Richard Deeming13-Feb-18 4:38
mveRichard Deeming13-Feb-18 4:38 
QuestionI 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
Member 1367430013-Feb-18 0:33
Member 1367430013-Feb-18 0:33 
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
CHill6013-Feb-18 1:07
mveCHill6013-Feb-18 1:07 
GeneralRe: 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
Member 1367430013-Feb-18 1:12
Member 1367430013-Feb-18 1:12 
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 

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.