WebClient could not be found WebClient could not be found asp.net asp.net

WebClient could not be found


Make sure you have reference to System.dll in your project.

Also either include using System.Net; to usings directive section of the source code where you're planning to use WebClient or use its fully-qualified name, i.e.:

var client = new System.Net.WebClient()