Click here to Skip to main content
15,917,795 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionvb.net with excel2007 Pin
jetgrageda15-Jan-09 20:31
jetgrageda15-Jan-09 20:31 
AnswerRe: vb.net with excel2007 Pin
Eddy Vluggen18-Jan-09 1:09
professionalEddy Vluggen18-Jan-09 1:09 
QuestionHow can a remoted .NET object access objects/methods in the hosting app? Pin
Dathom15-Jan-09 10:04
Dathom15-Jan-09 10:04 
AnswerRe: How can a remoted .NET object access objects/methods in the hosting app? Pin
Moim Hossain16-Jan-09 10:15
Moim Hossain16-Jan-09 10:15 
RantCannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 5:30
Brady Kelly15-Jan-09 5:30 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Luc Pattyn15-Jan-09 5:49
sitebuilderLuc Pattyn15-Jan-09 5:49 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 5:54
Brady Kelly15-Jan-09 5:54 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Luc Pattyn15-Jan-09 6:18
sitebuilderLuc Pattyn15-Jan-09 6:18 
OK,

based on "...The HttpWebRequest class automatically tries to reopen a connection to the Web server to complete the transfer. When the transfer is successful, the EndGetRequestStream method incorrectly returns the Stream object from the first failed connection attempt, instead of the Stream object from the successful connection attempt..." from here[^] my best guess is you are systematically getting the same error on the first attempt, possibly a timeout (that is assuming your request is correct of course). Can you try and allow a larger timeout? or is there a huge amount of data involved?

You might try to validate your web response before calling on its stream? Maybe the StatusDescription property might shed some light.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text (not TextBoxes), and PictureBoxes for pictures (not drawings).


GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 6:41
Brady Kelly15-Jan-09 6:41 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Luc Pattyn15-Jan-09 6:46
sitebuilderLuc Pattyn15-Jan-09 6:46 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Brady Kelly15-Jan-09 7:07
Brady Kelly15-Jan-09 7:07 
GeneralRe: Cannot access a disposed object: Object name: ‘System.Net.Sockets.NetworkStream’. Pin
Luc Pattyn15-Jan-09 7:28
sitebuilderLuc Pattyn15-Jan-09 7:28 
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 
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 

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.