CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 10/26/2004 7:34:20 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 0 Views: 194 Favorited: 0 Favorite
1 Items, 1 Pages 1 |< << Go >> >|
Versley
Asp.Net User
Newbie HttpWebResponse Problem10/26/2004 7:34:20 PM

0

Using ASP .Net 2.0 w/VB in VS2005

I have been trying to get the weather xml to work on our intranet. When I test it, I get a "No connection could be made because the target machine actively refused it " error. I am able to go to the xoap site and view the xml data, but it won't retrieve it. Here's my code:

Imports System.IO
Imports System.Net
Imports System.Xml
Imports System.Xml.Xpath
Imports System.Configuration

Partial Class Default_aspx

Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim url As String = "http://xoap.weather.com/weather/local/78207?cc=*&dayf=" & _
ConfigurationSettings.AppSettings.Get("ExtForecastLength") & _
"&prod=xoap&par=" & ConfigurationSettings.AppSettings.Get("PartnerID") & _
"&key=" & ConfigurationSettings.AppSettings.Get("LicenseKey")

' Creates an HttpWebRequest for the specified URL.
Dim wr As HttpWebRequest = CType(WebRequest.Create(url), System.Net.HttpWebRequest)

' Sends the request and waits for a response.
Dim resp As HttpWebResponse = CType(wr.GetResponse(), System.Net.HttpWebResponse)

' Calls the method GetResponseStream to return the stream associated with the response.
Dim str As System.IO.Stream = resp.GetResponseStream()
Dim reader As XmlTextReader = New System.Xml.XmlTextReader(str)
reader.XmlResolver = Nothing

' Create and load the XmlDocument.
Dim doc As XmlDocument = New System.Xml.XmlDocument()
doc.Load(reader)
Xml1.Document = doc

Xml1.TransformSource = "new.xslt"


End Sub
End Class

I have our ParnterID and LicenseKey store in the webconfig file.

Any help that you could provide would be greatly appreciated.

Matt
1 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Newbie HttpWebResponse Problem - ng.asp-net-forum ... Newbie HttpWebResponse Problem, > ROOT > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005, Date: 10/26/2004 7:34:20 PM, ...
Re: HTTPWebResponse Timeout problems Oct 25, 2005 ... HTTPWebResponse connection before opening another. ... Next by Date: Re: Newbie: Adding a User Control Problems; Previous by thread: ...
HTTPWebResponse Timeout problems HTTPWebResponse connection before opening another. But -- to my .... Newbie: Adding a User Control Problems · User control refresh ...
HttpWebRequest and HttpWebResponse question - ASP.NET Forums Just sharing what i found in case some newbie like me got stuck with this. ... About this Site. Questions / Problems with this site? ...
Re: HttpWebResponse not reading all data: msg#00228 windows.devel ... Re: HttpWebResponse not r - Find Help in our windows.devel.dotnet.clr Forum. ... However you CAN have > 65K strings, so the problem is not with .... Previous by Date: Re: Newbie: VB.net server authentication, ERNST KUSCHKE ...
c#:collectin cookies frm httpwebresponse when multiple set-cookies ... Newbie. Join Date: Feb 2008. Posts: 5 .... EDIT: I just noticed a problem with this, guess it's not as simple as i thought. So using: ...
No response from webclient or httpWebResponse - ASP Free No response from webclient or httpWebResponse- Visual Basic Programming. ... ASP Free Newbie (0 - 499 posts). Join Date: Nov 2006 ... It sends requests out the the site no problem which are recieved and dealt with ...
HttpWebRequest and HttpWebResponse - CodeCall Programming Forum Newbie. Join Date: Dec 2008. Posts: 6. Credits: 0. Rep Power: 0 ... execute the request HttpWebResponse response = (HttpWebResponse) request ...
problem in HttpWebResponse GetResponse problem in HttpWebResponse GetResponse. microsoft.public.dotnet.framework.aspnet . Author. 24 May 2005 12:31 AM. Taner Özyürekoglu ...
CodeProject: How to use HttpWebRequest and HttpWebResponse in .NET ... Mar 28, 2004 ... There's no problem while trying basic or no authentication at all. ... so much for this article, it even is usefull for a newbie like me! ...






sub folder

how to switch existing .net 2.0 site from non-encrypted passwordanswers to encrypted ones?

test for anonymous profile or registered???

asp:login not working

capture user credentials in both console module (scheduled tasks) and asp.net form

how to programmatically set the urlauthorization rather than hardcode in web.config

feature suggestion

membership provider web.config newbie question

creduipromptforcredentials and httpwebrequest (msft or mvp replies preferred)

how can i get last login time for user to my website ?!

unlock a member

forms authentication

using ad/forms-authentication, using "user"-objects in database-relations

authentication problem...

setpassword through directoryentry

password strength in login security controls

system.unauthorizedaccessexception

automatic authentication

problem authenticating 2 applications: .net2 and .net1.1

exepath error when using custom membership provider

membership api password case sensitivity

security for documents

how does the backend work?

question about compiling code

ad users into sql membership/roles

xp security problem

activedirectorymembershipprovider

membership.deleteuser() not removing user from role

sql server greate problem

login

   
  Privacy | Contact Us
All Times Are GMT