two c# applications:
1. ConsoleApplication accessing a url and parsing something at that url
2. ASP.NET app that does the same
Both apps are working fine on my machine (the ASP.NET app works when executed in VS2008, using the surrogate IIS), on a second machine the ASP.NET app always gets cannot connect to remote server error. I see different settings in the Proxy settings on the
two machines. Do I have to incorporate this in my code?
Or is it just a context problem? How do I make the user running IIS get connection to the site?
It is hard to say what is the main issue according to your description. In order to resolve your issue, please try to share the exception which is thrown out. It will help us continue.
Thank you for your supporting!
Best wishes,
Please mark the replies as answers if they help or unmark if not.
Feedback to us
kowalsky
Member
69 Points
54 Posts
DownloadString methos of WebClient cannot connect to remote server
Dec 21, 2012 07:46 PM|LINK
Hi all,
I have the following situation:
two c# applications:
1. ConsoleApplication accessing a url and parsing something at that url
2. ASP.NET app that does the same
Both apps are working fine on my machine (the ASP.NET app works when executed in VS2008, using the surrogate IIS), on a second machine the ASP.NET app always gets cannot connect to remote server error. I see different settings in the Proxy settings on the two machines. Do I have to incorporate this in my code?
A shortened sample is below:
WebClient w = new WebClient();
string s = w.DownloadString(http://www.somesite.com/public/list.htm);
//some processing of s
Or is it just a context problem? How do I make the user running IIS get connection to the site?
Thanks,
kowalsky
ToughMan
Participant
1490 Points
635 Posts
Re: DownloadString methos of WebClient cannot connect to remote server
Dec 22, 2012 07:04 AM|LINK
What exception have u got?
Catherine Sh...
All-Star
23382 Points
2490 Posts
Microsoft
Re: DownloadString methos of WebClient cannot connect to remote server
Dec 26, 2012 01:20 AM|LINK
Hi,
It is hard to say what is the main issue according to your description. In order to resolve your issue, please try to share the exception which is thrown out. It will help us continue.
Thank you for your supporting!
Best wishes,
Feedback to us
Develop and promote your apps in Windows Store