Click here to Skip to main content
15,907,492 members
Home / Discussions / C#
   

C#

 
Question2 Equations 2 Unknows - How to program in C#? Pin
laura131627-Mar-07 16:05
laura131627-Mar-07 16:05 
AnswerRe: 2 Equations 2 Unknows - How to program in C#? Pin
laura131627-Mar-07 16:06
laura131627-Mar-07 16:06 
GeneralRe: 2 Equations 2 Unknows - How to program in C#? Pin
Leslie Sanford27-Mar-07 16:24
Leslie Sanford27-Mar-07 16:24 
AnswerRe: 2 Equations 2 Unknows - How to program in C#? Pin
darkcalin27-Mar-07 22:12
darkcalin27-Mar-07 22:12 
GeneralRe: 2 Equations 2 Unknows - How to program in C#? Pin
darkcalin27-Mar-07 22:29
darkcalin27-Mar-07 22:29 
QuestionNAT Translation problem Pin
kamPooh27-Mar-07 15:50
kamPooh27-Mar-07 15:50 
AnswerRe: NAT Translation problem Pin
m@u27-Mar-07 21:54
m@u27-Mar-07 21:54 
QuestionReading XML from a url on a Pocket PC Pin
Brad Wick27-Mar-07 14:39
Brad Wick27-Mar-07 14:39 
I have a pocket PC which I would like to request data from a xml file on a website and loop thru all the nodes. So I have the basic testing application, but I have two problems.

When I am in the emulator state and I try and request a URL of a very simple file which the contents of the html are only "blank file" then during runtime I get a error that says...

WebException was unhandled

This code is the exact same code I use on a desktop application, does anyone know why the below code would report this error?

            string xmlLoadFrom = "https://www.domainhere.com/test.php";<br />
            string strResponse = "";<br />
            WebRequest req = WebRequest.Create(xmlLoadFrom);<br />
            req.Timeout = 1800000; // 5 minutes<br />
            WebResponse resp = req.GetResponse();<br />
            StreamReader sr2 = new System.IO.StreamReader(resp.GetResponseStream());<br />
            strResponse = sr2.ReadToEnd().Trim();<br />
            sr2.Close();<br />
            resp.Close();<br />
<br />
            MessageBox.Show(strResponse);


The error occurs on this line
StreamReader sr2 = new System.IO.StreamReader(resp.GetResponseStream());
QuestionStrange problem in property grid when using custom TypeConverter Pin
cueshot27-Mar-07 12:09
cueshot27-Mar-07 12:09 
AnswerRe: Strange problem in property grid when using custom TypeConverter Pin
m@u27-Mar-07 22:15
m@u27-Mar-07 22:15 
GeneralRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot30-Mar-07 11:57
cueshot30-Mar-07 11:57 
QuestionRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot30-Mar-07 15:20
cueshot30-Mar-07 15:20 
AnswerRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot5-Apr-07 13:35
cueshot5-Apr-07 13:35 
QuestionRe: Strange problem in property grid when using custom TypeConverter Pin
cueshot5-Apr-07 13:57
cueshot5-Apr-07 13:57 
QuestionVs 2005 Addin Question Pin
Jason McBurney27-Mar-07 11:57
Jason McBurney27-Mar-07 11:57 
QuestionSaving changes to a dataGridView - colour rows Pin
steve_rm27-Mar-07 11:36
steve_rm27-Mar-07 11:36 
AnswerRe: Saving changes to a dataGridView - colour rows Pin
joon vh.28-Mar-07 4:08
joon vh.28-Mar-07 4:08 
QuestionIs is possible to Serialise a Dynamically created assembly? Pin
Trevor T27-Mar-07 11:07
Trevor T27-Mar-07 11:07 
Questionread image from picture box Pin
iman_kh27-Mar-07 10:53
iman_kh27-Mar-07 10:53 
AnswerRe: read image from picture box Pin
art_coding27-Mar-07 11:37
art_coding27-Mar-07 11:37 
QuestionAcceptchange() in data set Pin
iman_kh27-Mar-07 10:51
iman_kh27-Mar-07 10:51 
QuestionProvider model Pin
netJP12L27-Mar-07 10:24
netJP12L27-Mar-07 10:24 
QuestionC# network transfer stream problem Pin
art_coding27-Mar-07 10:19
art_coding27-Mar-07 10:19 
QuestionClass &quot;Child&quot; MUST NOT call &quot;Euthanize&quot; on class &quot;Dog&quot; Pin
Edmundisme27-Mar-07 9:54
Edmundisme27-Mar-07 9:54 
AnswerRe: Class &quot;Child&quot; MUST NOT call &quot;Euthanize&quot; on class &quot;Dog&quot; Pin
Dave Kreskowiak27-Mar-07 10:11
mveDave Kreskowiak27-Mar-07 10:11 

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.