Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle TPL exceptions so that they don't cause fatal app exit #24

Closed
GoogleCodeExporter opened this issue Jul 13, 2015 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

e.g. when submitting a request to http://ipv4.fiddler:19116 while fiddler is 
not running:

[2012-12-15 22:31:58.9451] [INFO] {4480::15} Swensen.Ior.Core.IorClient - 
responseTask did not run to completion, status=Faulted 
[2012-12-15 22:32:18.5851] [FATAL] {4480::2} Swensen.Ior.Forms.Program - 
Unhandled AppDomain exception, IsTerminating=True 
System.AggregateException: A Task's exception(s) were not observed either by 
Waiting on the Task or accessing its Exception property. As a result, the 
unobserved exception was rethrown by the finalizer thread. ---> 
System.Net.Http.HttpRequestException: An error occurred while sending the 
request. ---> System.Net.WebException: The remote name could not be resolved: 
'ipv4.fiddler'
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.TaskExceptionHolder.Finalize()
---> (Inner Exception #0) System.Net.Http.HttpRequestException: An error 
occurred while sending the request. ---> System.Net.WebException: The remote 
name could not be resolved: 'ipv4.fiddler'
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)
   at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)
   --- End of inner exception stack trace ---<---
    at System.Threading.Tasks.TaskExceptionHolder.Finalize()

Original issue reported on code.google.com by [email protected] on 16 Dec 2012 at 3:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant