Issue Details (XML | Word | Printable)

Key: DNET-904
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Jiri Cincura
Reporter: EzberYazan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

Unable to complete network request to host "{0}". error , but no args

Created: 13/Oct/19 12:07 PM   Updated: 04/Nov/19 07:36 AM
Component/s: ADO.NET Provider
Affects Version/s: 7.1.1.0
Fix Version/s: None

Environment: windows


 Description  « Hide
ERR: 335544721 : Unable to complete network request to host "{0}".

but no arg on : private static void AppendMessage(StringBuilder builder, string message, List<string> args) {
i solved pratically adding 3 arg for general purposes;

if (args == null || args.Count == 0) { args.Add("no-arg-defined"); args.Add("no-arg-defined"); args.Add("no-arg-defined"); }


  private static void AppendMessage(StringBuilder builder, string message, List<string> args) {
if (builder.Length > 0) {
builder.Append(Environment.NewLine);
}
if (args == null || args.Count == 0) { args.Add("no-arg-defined"); args.Add("no-arg-defined"); args.Add("no-arg-defined"); }
builder.AppendFormat(CultureInfo.CurrentCulture, message, args.ToArray());
}

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jiri Cincura added a comment - 14/Oct/19 09:24 AM
The missing args is probably because the exception was thrown from local code, not from server. Blindly adding some dummy arguments isn't good design decision, IMO. It would rather make sense to find all occurrences and provide the arguments at the place where the exception is thrown.

EzberYazan added a comment - 04/Nov/19 07:09 AM
Dear Jiri;

on source codes; ERR: 335544721 : Unable to complete network request to host "{0}".
{0} is not filling on source code. so throwing argument missing exception.
and for your analiyz

"no-arg-defined" is my temp solution

br

Jiri Cincura added a comment - 04/Nov/19 07:36 AM
Yeah, temp solution is not a good solution.