Click here to Skip to main content
16,007,932 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 10:38
Brady Kelly15-Jan-09 10:38 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Luc Pattyn15-Jan-09 10:52
sitebuilderLuc Pattyn15-Jan-09 10:52 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 11:20
Brady Kelly15-Jan-09 11:20 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Luc Pattyn15-Jan-09 11:54
sitebuilderLuc Pattyn15-Jan-09 11:54 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 12:06
Brady Kelly15-Jan-09 12:06 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Luc Pattyn15-Jan-09 12:47
sitebuilderLuc Pattyn15-Jan-09 12:47 
GeneralI suspect the problem is solved Pin
Luc Pattyn15-Jan-09 12:07
sitebuilderLuc Pattyn15-Jan-09 12:07 
GeneralRe: I suspect the problem is solved Pin
Brady Kelly15-Jan-09 22:16
Brady Kelly15-Jan-09 22:16 
Yes, I just didn't have the original code at hand. BTW, why wouldn't it compile? The only reason I can see is that it's incomplete, but I just posted an excerpt.

This one was a nasty. The original code was getting an FTP 550 error, file not found or no access, because the directory I was trying to create already existed. It made no check of this, and almost ignored the FTP error by only catching and logging the exception. Because I was breaking when thrown, I noticed an exception that is actually often expected, but I suspected my changes, adding authorization, had introduced the problem. Because another developer had broken the function I needed to execute the code, I extracted it into a separate project to experiment, beginning my troubles.


[Edit]
Ah, I see in the original code that I was trying to write the StreamReader, not the filename, which results in System.IO.StreamReader appearing in the console, just before the same disposed object exception.
[/Edit]



GeneralRe: I suspect the problem is solved Pin
Luc Pattyn16-Jan-09 0:58
sitebuilderLuc Pattyn16-Jan-09 0:58 
GeneralRe: I suspect the problem is solved Pin
Brady Kelly16-Jan-09 1:57
Brady Kelly16-Jan-09 1:57 
GeneralRe: I suspect the problem is solved Pin
Luc Pattyn16-Jan-09 2:08
sitebuilderLuc Pattyn16-Jan-09 2:08 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 6:44
Brady Kelly15-Jan-09 6:44 
GeneralRe: Textboxes Pin
Luc Pattyn15-Jan-09 6:53
sitebuilderLuc Pattyn15-Jan-09 6:53 
Questioncontrol.focus();???? Pin
bfis10813714-Jan-09 22:47
bfis10813714-Jan-09 22:47 
AnswerRe: control.focus();???? Pin
Eddy Vluggen14-Jan-09 23:04
professionalEddy Vluggen14-Jan-09 23:04 
GeneralI found the solution Pin
bfis10813714-Jan-09 23:12
bfis10813714-Jan-09 23:12 
QuestionWithevents for dynamicly created controls Pin
David Hovey14-Jan-09 17:16
David Hovey14-Jan-09 17:16 
GeneralRe: Withevents for dynamicly created controls Pin
Anshumas14-Jan-09 17:52
Anshumas14-Jan-09 17:52 
AnswerRe: Withevents for dynamicly created controls Pin
Dave Kreskowiak14-Jan-09 18:00
mveDave Kreskowiak14-Jan-09 18:00 
GeneralRe: Withevents for dynamicly created controls Pin
David Hovey16-Jan-09 8:17
David Hovey16-Jan-09 8:17 
QuestionCan't find System.EnterpriseServices.Wrapper.dll or one of it's dependencies Pin
mweingart14-Jan-09 6:18
mweingart14-Jan-09 6:18 
QuestionDataGrid Header Pin
bobbymale7714-Jan-09 4:52
bobbymale7714-Jan-09 4:52 
GeneralRe: DataGrid Header Pin
Anshumas14-Jan-09 17:54
Anshumas14-Jan-09 17:54 
AnswerRe: DataGrid Header Pin
bobbymale7715-Jan-09 1:37
bobbymale7715-Jan-09 1:37 
QuestionGetting System.Security.Permissions.UIPermission When try to access C# activex control on a web-page . [modified] Pin
Dattatraya K13-Jan-09 21:29
Dattatraya K13-Jan-09 21:29 

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.