Click here to Skip to main content
15,894,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can i change the base address of my dll Pin
Timothy_198226-Aug-06 22:39
Timothy_198226-Aug-06 22:39 
QuestionAccess Denied trying to read file with StreamReader [modified] Pin
Matt Casto18-Aug-06 2:02
Matt Casto18-Aug-06 2:02 
AnswerRe: Access Denied trying to read file with StreamReader Pin
Dave Kreskowiak18-Aug-06 2:19
mveDave Kreskowiak18-Aug-06 2:19 
GeneralRe: Access Denied trying to read file with StreamReader Pin
Matt Casto18-Aug-06 2:41
Matt Casto18-Aug-06 2:41 
GeneralRe: Access Denied trying to read file with StreamReader Pin
Dave Kreskowiak18-Aug-06 11:41
mveDave Kreskowiak18-Aug-06 11:41 
AnswerSolution Found Pin
Matt Casto18-Aug-06 4:45
Matt Casto18-Aug-06 4:45 
GeneralRe: Solution Found [modified] Pin
Dave Kreskowiak18-Aug-06 11:46
mveDave Kreskowiak18-Aug-06 11:46 
Questionclient server network problem Pin
Kim061818-Aug-06 1:15
Kim061818-Aug-06 1:15 
Hi,

I write a client server network program, the client part
using HttpWebRequest to access the server. The server part uses
threading and sockets list to listen the client request.
The program worked fine in .NET1.0 and after I upgraded to VS2005 (NET2.0)
the program didn't work, with the error in client side as "unable to write data to the transport connection, connection closed by program in host".

The strange part is that the error come out in the second access from the
client to the server. The first access to server is OK, but the second access can't connect to the server and generated the error.

I suspect that this may be due to NET2.0 upgrade, but don't know the exact problem. Anyone can help ?


Part of the client code is as below,
try
{
WebRequest request = HttpWebRequest.Create(remoteClientSession.URL);

string contentType = "multipart/form-data;";

request.ContentLength = message.Length;
request.Method = "POST";
request.Timeout = timeoutTime;

Stream requestStream = request.GetRequestStream();

requestStream.Write(message, 0, message.Length); ** error start to throw here

requestStream.Close();
}
catch (WebException webEx)
{
}
catch (IOException ex)
{
** the error throw in here "Unable to write data to the transport connection"
}


WebResponse response = request.GetResponse();
.....


Thanks


QuestionBegin-Commit Transaction in .NET Pin
Coding C#18-Aug-06 1:14
Coding C#18-Aug-06 1:14 
AnswerRe: Begin-Commit Transaction in .NET Pin
coolestCoder18-Aug-06 1:24
coolestCoder18-Aug-06 1:24 
JokeRe: Begin-Commit Transaction in .NET Pin
Guffa18-Aug-06 1:29
Guffa18-Aug-06 1:29 
AnswerRe: Begin-Commit Transaction in .NET Pin
Guffa18-Aug-06 1:26
Guffa18-Aug-06 1:26 
GeneralRe: Begin-Commit Transaction in .NET Pin
Coding C#18-Aug-06 1:30
Coding C#18-Aug-06 1:30 
AnswerRe: Begin-Commit Transaction in .NET Pin
Dustin Metzgar18-Aug-06 3:27
Dustin Metzgar18-Aug-06 3:27 
GeneralRe: Begin-Commit Transaction in .NET Pin
Coding C#18-Aug-06 5:13
Coding C#18-Aug-06 5:13 
Questionget the name of a parameter as a string Pin
C-Scharbe18-Aug-06 1:06
C-Scharbe18-Aug-06 1:06 
AnswerRe: get the name of a parameter as a string Pin
Christian Graus18-Aug-06 1:17
protectorChristian Graus18-Aug-06 1:17 
AnswerRe: get the name of a parameter as a string Pin
Coding C#18-Aug-06 1:20
Coding C#18-Aug-06 1:20 
GeneralRe: get the name of a type-member as a string Pin
C-Scharbe18-Aug-06 4:07
C-Scharbe18-Aug-06 4:07 
AnswerRe: get the name of a parameter as a string Pin
beatles169220-Aug-06 20:34
beatles169220-Aug-06 20:34 
QuestionHow to delete NODE in BINARY SEARCH TREE,.... Pin
hkim_zoro18-Aug-06 0:48
hkim_zoro18-Aug-06 0:48 
AnswerRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
Divyang Mithaiwala18-Aug-06 0:56
Divyang Mithaiwala18-Aug-06 0:56 
GeneralRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
hkim_zoro19-Aug-06 23:42
hkim_zoro19-Aug-06 23:42 
AnswerRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
Ennis Ray Lynch, Jr.18-Aug-06 4:28
Ennis Ray Lynch, Jr.18-Aug-06 4:28 
AnswerRe: How to delete NODE in BINARY SEARCH TREE,.... Pin
hkim_zoro19-Aug-06 23:48
hkim_zoro19-Aug-06 23:48 

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.