0
I uploaded a file to a WEB server, but when I use this code:
WebClient update = new WebClient();
string Teste = update.DownloadString("http://testexxx.000webhostapp.com/teste.txt");
Returns this error: Configurationerrorsexception: Unrecognized element.
Because it is not downloading the file directly, because when it opens the file on the site it shows what is inside and does not download, how can I fix it?
What would be your update? could put more code ? is a Webclient ?
– Thiago Loureiro
update and Webclient, I will update the code
– user92401
TXT is a file has to do different
– novic
How could I do it? But it had to be TXT
– user92401
@Thiagoloureiro is logical that it is a Webclient, given the fact that it was declared as Webclient update.
– perozzo
Perozzo, did not have the declaration before rsrs
– Rovann Linhalis
@Thiagoloureiro Sorry mate :( Thanks Rovann.
– perozzo
@Perozzo ta forgiven :P
– Thiago Loureiro