Skip to content

Instantly share code, notes, and snippets.

@jchannon
Created July 6, 2016 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchannon/07468ecf4812585b2f18f429e3451d78 to your computer and use it in GitHub Desktop.
Save jchannon/07468ecf4812585b2f18f429e3451d78 to your computer and use it in GitHub Desktop.
Configuration Result:
[Success] Name MyApp
[Success] Description MyApp FrontEnd
[Success] ServiceName MyApp
Topshelf v3.2.150.0, .NET Framework v4.0.30319.19448
Connected to Proxy
The MyApp service is now running, press Control+C to exit.
Running a http server on https://10.240.205.4:443
Topshelf.Hosts.ConsoleRunHost Critical: 0 : The service threw an unhandled exception, System.NullReferenceException: Object reference not set to an instance of an object.
at System.Net.HttpListener.EndGetContext(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Owin.Host.HttpListener.OwinHttpListener.<ProcessRequestsAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Stopping the MyApp service
The MyApp service has stopped.
@ffogell
Copy link

ffogell commented Jun 6, 2017

Hey Jonathan,

While searching for this exact same stacktrace. I stumbled on this log you posted here.
Do you understand what this exception mean and how to fix it ?

Thank you very much !

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