Click here to Skip to main content
15,888,579 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: .dbf files Pin
Rajesh Anuhya5-May-09 0:36
professionalRajesh Anuhya5-May-09 0:36 
GeneralRe: .dbf files[SOLVED] Pin
vijay24826-May-09 10:51
vijay24826-May-09 10:51 
Questionproblem with assignment Pin
blackstar14614-May-09 23:02
blackstar14614-May-09 23:02 
AnswerRe: problem with assignment Pin
Christian Graus4-May-09 23:11
protectorChristian Graus4-May-09 23:11 
AnswerRe: problem with assignment Pin
Dinesh Vitharana4-May-09 23:19
Dinesh Vitharana4-May-09 23:19 
GeneralRe: problem with assignment Pin
Christian Graus5-May-09 12:17
protectorChristian Graus5-May-09 12:17 
GeneralRe: problem with assignment Pin
_Damian S_5-May-09 15:05
professional_Damian S_5-May-09 15:05 
QuestionAn existing connection was forcibly closed by the remote host? [modified] Pin
AliAmjad4-May-09 18:43
AliAmjad4-May-09 18:43 
Previously my code was working perfectly fine but suddenly showing up this error Unable to write data to the transport connection:An existing connection was forcibly closed by the remote host; whenever i try to write something on the network stream. Following is the code i am using right now:

Dim PacketSize As Integer = 8192

       Dim client As New TcpClient
       client.Connect(IPAddress.Parse("192.168.15.51"), 7771)

       Dim ns As NetworkStream = client.GetStream

       Dim fs As New FileStream(FileName, FileMode.Open, FileAccess.Read)

       Dim buffer(PacketSize - 1) As Byte

       Dim i As Integer
       i = fs.Read(buffer, 0, PacketSize)

       While i <> 0

           ns.Write(buffer, 0, i) <-- this line cause the error

           i = fs.Read(buffer, 0, PacketSize)

       End While


       fs.Close()
       ns.Close()


There's no anti-virus or firewall on target machine. I've even turned window's firewall off. Do i have to start any service on the target machine which somehow stopped??? I've searched everywhere but didn't find solution. Please help.



AliAmjad(MCP)


First make it Run THEN make it Run Fast!

modified on Tuesday, May 5, 2009 2:13 AM

AnswerRe: An existing connection was forcibly closed by the remote host? Pin
Dinesh Vitharana4-May-09 23:06
Dinesh Vitharana4-May-09 23:06 
AnswerRe: An existing connection was forcibly closed by the remote host? Pin
daveice19-Oct-09 2:28
daveice19-Oct-09 2:28 
QuestionVisual Basic 2008 Express: Sendkeys Pin
helen004-May-09 16:46
helen004-May-09 16:46 
AnswerRe: Visual Basic 2008 Express: Sendkeys Pin
Dave Kreskowiak4-May-09 17:21
mveDave Kreskowiak4-May-09 17:21 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
helen004-May-09 18:08
helen004-May-09 18:08 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
Christian Graus4-May-09 19:51
protectorChristian Graus4-May-09 19:51 
GeneralRe: Visual Basic 2008 Express: Sendkeys Pin
Dave Kreskowiak5-May-09 3:24
mveDave Kreskowiak5-May-09 3:24 
QuestionConstructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 10:30
professionalAlaric_4-May-09 10:30 
AnswerRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
MidwestLimey4-May-09 10:39
professionalMidwestLimey4-May-09 10:39 
GeneralRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 11:30
professionalAlaric_4-May-09 11:30 
AnswerRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) [modified] Pin
Alaric_4-May-09 10:52
professionalAlaric_4-May-09 10:52 
GeneralRe: Constructor problems - Receiving T, need to indirect to a Constructor that accepts List(Of T) Pin
Alaric_4-May-09 10:57
professionalAlaric_4-May-09 10:57 
Questionif statement.... Pin
Jamal Abdul Nasir4-May-09 9:55
Jamal Abdul Nasir4-May-09 9:55 
AnswerRe: if statement.... Pin
MidwestLimey4-May-09 10:05
professionalMidwestLimey4-May-09 10:05 
AnswerRe: if statement.... Pin
Dalek Dave4-May-09 10:25
professionalDalek Dave4-May-09 10:25 
GeneralRe: if statement.... Pin
Andy Missico4-May-09 14:57
Andy Missico4-May-09 14:57 
AnswerRe: if statement.... Pin
Tiyani Miyambo4-May-09 22:42
Tiyani Miyambo4-May-09 22:42 

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.