The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF, In WinForms?

First, adding an app.config file is just as easy as adding any other file, How to: Add an Application Configuration File to a C# Project Then you just have to add that code snippet above to that new app.config. Another way of setting that property via code, avoiding the need for an app.config is shown … Read more

System.Net.WebException: The remote name could not be resolved:

It’s probably caused by a local network connectivity issue (but also a DNS error is possible). Unfortunately HResult is generic, however you can determine the exact issue catching HttpRequestException and then inspecting InnerException: if it’s a WebException then you can check the WebException.Status property, for example WebExceptionStatus.NameResolutionFailure should indicate a DNS resolution problem. It may … Read more

No connection could be made because the target machine actively refused it?

If this happens always, it literally means that the machine exists but that it has no services listening on the specified port, or there is a firewall stopping you. If it happens occasionally – you used the word “sometimes” – and retrying succeeds, it is likely because the server has a full ‘backlog’. When you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)