Donate

The remote server returned an error: (500) Internal Server Error (WebCclient) In C#

In our case when we encountered this error using WebClient, the solution was to set the user agent and add it as header to the WebCclient object.
newWebClient.Headers.Add("user-agent",   
"Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0");

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.