Does anyone know the proxy info so I can use webrequests for services like getting rss feeds making server to website calls and other response streams. Here is a message that I sent to support but havent heard anything back yet. I am on one of the VPS plans and didnt have a problem on the pro.net plan last year with these calls.
[027-0FB74DCC-70BB]
Here is a more detaild view of the error. Seems like I need to add the web proxy address to my web.config. Do you know what that is?
NEED TO ADD THE PROXY TO THE WEB.CONFIG:
http://support.microsoft.com/default.aspx/kb/318140
<defaultProxy>
<proxy usesystemdefault="False" proxyaddress="http://proxyserver:port " bypassonlocal="True" />
</defaultProxy> -->
ERROR MESSAGE
The remote name could not be resolved: 'www.erh.noaa.gov'
at System.Net.HttpWebRequest.GetResponse()
at Weather_CurrentSpot.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\jenkinsta@gmail.com\ad5qa.com\wwwroot\Weather\CurrentSpot.aspx.cs:line 27
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----------------------------------------
I am trying to perform a simple HttpWebRequest and it works fine at home on my server but not when I send it to Ultima. Is there some setting I need to allow for this communication? It does not even throw errors; Here is my result at home and at work.
NWUS51 KLWX 092207
LSRLWX
PRELIMINARY LOCAL STORM REPORT
NATIONAL WEATHER SERVICE BALTIMORE MD/WASHINGTON DC
606 PM EDT FRI MAY 09 2008
..TIME... ...EVENT... ...CITY LOCATION... ...LAT.LON...
..DATE... ....MAG.... ..COUNTY LOCATION..ST.. ...SOURCE....
..REMARKS..
0102 AM TORNADO CAMP SPRINGS 38.80N 76.92W
05/09/2008 PRINCE GEORGES MD NWS EMPLOYEE
NUMEROUS TREES DOWN AND SIDING AND SHINGLES REMOVED FROM
HOMES IN THE TOWN CENTER SUBDIVISION IN CAMP SPRINGS.
DAMAGE WAS 100 TO 200 YARDS WIDE AND SPORATIC. ESTIMATED
WINDS WERE ABOUT 80 MPH. DAMAGE ALSO OBSERVED IN THE
REGENCY PARK TOWNHOME SUBDIVISION IN SUITLAND.
PRELIMINARY RATING EF0. Here is some of the SIMPLE code I am using:
HttpWebRequest req = ( HttpWebRequest ) HttpWebRequest .Create( "http://www.erh.noaa.gov/lwx/products/" );
try
{
HttpWebResponse resp = ( HttpWebResponse )req.GetResponse();
StreamReader sr = new StreamReader (resp.GetResponseStream());
results = sr.ReadToEnd();
sr.Close();
}
catch ( WebException wex)
{
} Thanks