-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Startup failure with rc2-20466 and dotnet rc2-002339 #1384
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
Comments
This issue was moved to aspnet/Hosting#695 |
natemcmaster
pushed a commit
that referenced
this issue
Oct 17, 2018
jkotalik
added a commit
that referenced
this issue
Nov 1, 2018
natemcmaster
pushed a commit
that referenced
this issue
Nov 14, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When an exception is thrown in the constructor of a service, and that service is injected in the
Configure
method, the application crashes on startup, but does not include any trace of the actual exception.I encountered the issue in a larger project, and reduced the repro to this gist. Versions of Windows,
dotnet
,dnvm
and the content ofproject.lock.json
are also included there. Here is the code:Running the repro application with
-f net461
prints the following to the console before the Windows error dialog (Repro.exe has stopped working) shows up:I expected the actual exception message (Crash in the constructor) and source (
Repro.Crasher
) to be shown. In the real application, it took a long time to figure out the cause of the crash.Changing to
CaptureStartupErrors(true)
prints the same error message, but the application does not crash; it starts listening on http://localhost:5000. However, the startup error page also does not include any details of the actual exception; the only thing it shows is:Trying to run the same repro with
-f netcoreapp1.0
fails withCould not resolve coreclr path
. I know things are still in flux with the new TFM, so I thought I should mention this also, just in case I missed something obvious in myproject.json
.The text was updated successfully, but these errors were encountered: