Click here to Skip to main content
15,914,379 members
Home / Discussions / C#
   

C#

 
GeneralRe: Simple .Net 2.0 Data Binding question (WinForms) Pin
Furty12-Dec-05 17:51
Furty12-Dec-05 17:51 
Questionzoom? Pin
bobisreallycool12-Dec-05 14:49
bobisreallycool12-Dec-05 14:49 
AnswerRe: zoom? Pin
Ista12-Dec-05 15:47
Ista12-Dec-05 15:47 
AnswerRe: zoom? Pin
Christian Graus12-Dec-05 15:49
protectorChristian Graus12-Dec-05 15:49 
Questionhelp me Pin
Rosayne12-Dec-05 14:03
Rosayne12-Dec-05 14:03 
AnswerRe: help me Pin
Christian Graus12-Dec-05 14:04
protectorChristian Graus12-Dec-05 14:04 
AnswerRe: help me Pin
bismark12-Dec-05 17:16
bismark12-Dec-05 17:16 
QuestionProxy with authentication retire something Pin
icerein12-Dec-05 13:58
icerein12-Dec-05 13:58 
Hi friends,

the follow code will be run normally in WindowsApplication:

string userName = "a";
string userPass = "a";
string address = "192.168.18.145";
int port = 8080;

WebProxy myproxy = new WebProxy(address , port);
NetworkCredential credentials = new NetworkCredential(userName, userPass, null);
myproxy.Credentials = credentials;

WebRequest rqt = WebRequest.Create(this.textBox2.Text.Trim());
rqt.Proxy = myproxy;
rqt.PreAuthenticate = true;

WebResponse rsp = rqt.GetResponse();
System.IO.Stream stream = rsp.GetResponseStream();
System.IO.StreamReader reader = new System.IO.StreamReader(stream);
this.textBox1.Text = reader.ReadToEnd();

stream.Close();
reader.Close();


but in the SmartDeviceApplication,,it will cause the problem :
The response did not contain an end of entity mark.

Can you tell me why and how to solve the problem??
Thank you !!


22
AnswerRe: Proxy with authentication retire something Pin
Jared Parsons12-Dec-05 14:22
Jared Parsons12-Dec-05 14:22 
GeneralRe: Proxy with authentication retire something Pin
icerein12-Dec-05 19:11
icerein12-Dec-05 19:11 
GeneralRe: Proxy with authentication retire something Pin
Jared Parsons13-Dec-05 7:44
Jared Parsons13-Dec-05 7:44 
GeneralRe: Proxy with authentication retire something Pin
icerein13-Dec-05 13:59
icerein13-Dec-05 13:59 
GeneralRe: Proxy with authentication retire something Pin
Jared Parsons14-Dec-05 4:52
Jared Parsons14-Dec-05 4:52 
GeneralRe: Proxy with authentication retire something Pin
icerein14-Dec-05 13:58
icerein14-Dec-05 13:58 
QuestionLicensing Pin
SBolder12-Dec-05 12:29
SBolder12-Dec-05 12:29 
AnswerRe: Licensing Pin
SBolder12-Dec-05 13:28
SBolder12-Dec-05 13:28 
Questionarray of strucs Pin
dust212-Dec-05 11:53
dust212-Dec-05 11:53 
AnswerRe: array of strucs Pin
Christian Graus12-Dec-05 12:03
protectorChristian Graus12-Dec-05 12:03 
GeneralRe: array of strucs Pin
dust212-Dec-05 12:48
dust212-Dec-05 12:48 
GeneralRe: array of strucs Pin
Christian Graus12-Dec-05 12:54
protectorChristian Graus12-Dec-05 12:54 
GeneralRe: array of strucs Pin
dust213-Dec-05 3:14
dust213-Dec-05 3:14 
GeneralRe: array of strucs Pin
Christian Graus13-Dec-05 10:37
protectorChristian Graus13-Dec-05 10:37 
QuestionRandom Generation Pin
Dave Hurt12-Dec-05 10:16
Dave Hurt12-Dec-05 10:16 
AnswerRe: Random Generation Pin
Ista12-Dec-05 16:13
Ista12-Dec-05 16:13 
QuestionImplementing an Interface Pin
adafaaa12-Dec-05 10:07
adafaaa12-Dec-05 10:07 

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.