I have made a new ASP.NET program by using a WebClient functionality. I tested it locally and it works fine.
But when I use it on the web site, I get this error: CS0117: ‘System.Net.WebClient’ does not contain a definition for ‘DownloadString’
I need this functionality. I have already submitted a ticket. Please look into it.
Thanks, Sanjay
Now I am not sure whether the method really exists in 1.1. In my local testing, I am using cassini web server and the web site is set to asp.net 1.1. I hope cassini does use 1.1.
I will try to switch to another method and see if that works.
My mistake. This feature is not there in asp.net 1.1. My local cassini misled me to believe it should be there.
OK so the solution was to move to 2.0 and it works?
No, I changed it to use DownloadData which is present in 1.1.