Skip to content

Instantly share code, notes, and snippets.

View danmoseley's full-sized avatar
:shipit:

Dan Moseley danmoseley

:shipit:
  • Microsoft
  • Jackson, WY
  • 08:59 (UTC -06:00)
View GitHub Profile
System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.)
---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Net.Http.RedirectHandler.GetUriForRedirect(Uri requestUri, HttpResponseMessage response)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Grpc.Net.Client.Internal.GrpcCall`2.SendAsync(HttpClient client, HttpRequestMessage message) in C:\Development\Source\grpc-dotnet\src\Grpc.Net.Client\Internal\GrpcCall.cs:line 432
at Grpc.Net.Client.Internal.HttpContentClientStreamReader`2.MoveNextCore(CancellationToken cancellationToken) in C:\Development\Source\grpc-dotnet\src\Grpc.Net.Client\Internal\HttpContentClientStreamReader.cs:line 113
at Inte
System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object.
at System.Net.Http.RedirectHandler.GetUriForRedirect(Uri requestUri, HttpResponseMessage response)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Grpc.Net.Client.Internal.GrpcCall`2.SendAsync(HttpClient client, HttpRequestMessage message) in C:\Development\Source\grpc-dotnet\src\Grpc.Net.Client\Internal\GrpcCall.cs:line 432
at Grpc.Net.Client.Internal.HttpContentClientStreamReader`2.MoveNextCore(CancellationToken cancellationToken) in C:\Development\Source\grpc-dotnet\src\Grpc.Net.Client\Internal\HttpContentClientStreamReader.cs:line 113
at InteropTestsClient.InteropClient.RunTimeo
@danmoseley
danmoseley / oldtestoutput
Last active June 10, 2019 03:30
Old test program output
System.AggregateException: <aggmsg> (<outer1msg>
Parameter name: myarg) (<outer2msg>) ---> System.ArgumentException: <outer1msg>
Parameter name: myarg
at _1.Program.F(String type, String msg) in c:\d\dotnet30\1\Program.cs:line 122
at _1.Program.E(String type, String msg) in c:\d\dotnet30\1\Program.cs:line 116
at _1.Program.D(String type, String msg) in c:\d\dotnet30\1\Program.cs:line 107
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at _1.Program.C(String type, String msg) in c:\d\dotnet30\1\Program.cs:line 100
at _1.Program.B(String type, String msg) in c:\d\dotnet30\1\Program.cs:line 89
@danmoseley
danmoseley / newoutput
Last active June 10, 2019 03:30
New test program output
System.AggregateException: <aggmsg> (<outer1msg> (parameter 'myarg')) (<outer2msg>)
---> System.ArgumentException: <outer1msg> (parameter 'myarg')
at _1.Program.F(String type, String msg)
at _1.Program.E(String type, String msg)
at _1.Program.D(String type, String msg)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw(Exception source)
at _1.Program.C(String type, String msg)
at _1.Program.B(String type, String msg)
--- End of stack trace from previous location where exception was thrown ---
@danmoseley
danmoseley / testexceptiontostring.cs
Last active June 10, 2019 03:29
test exception to string
using System;
using System.Collections.Generic;
using System.Runtime.ExceptionServices;
using System.IO;
using System.Net.Http;
using System.Reflection;
using System.Security;
using System.Security.Authentication;
using System.Threading.Tasks;
@danmoseley
danmoseley / updated
Created June 9, 2019 21:24
Updated SSL exception output
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception.
---> System.TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
---> System.TypeInitializationException: The type initializer for 'Ssl' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
---> Interop+Crypto+OpenSslCryptographicException: error:25070067:DSO support routines:DSO_load:could not load the shared library
at Interop.SslInitializer..cctor()
at Interop.Ssl..cctor()
at Interop.Ssl.SslV2_3Method()
at Interop.Ssl.SslMethods..cctor()
#define CONTRACTS_FULL
using System;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
c:\test>c:\test\1.exe so 
Stack overflow.
c:\test>c:\test\1.exe null 
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at _1.Program.X(String arg)
   at _1.Program.Main(String[] args)
@danmoseley
danmoseley / newoutput1
Last active May 29, 2019 00:09
Possible output format for various fatal .NET errors
c:\test>c:\test\1.exe so
Stack overflow.
c:\test>c:\test\1.exe ff
Process terminated. <reason>
at System.Environment.FailFast(System.String)
at _1.Program.X(System.String)
at _1.Program.Main(System.String[])
c:\test>c:\test\1.exe av
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at _1.Program.X(System.String)
@danmoseley
danmoseley / errors.md
Last active January 11, 2024 08:22
Windows/Unix file IO errors
Unix code(s)