You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.
I was trying projectk Custom hosting with console app. I had added startup.cs file without Configure method. Custom host was not even starting. after adding Configure method, custom host started.
I can provide sample if needed.
The text was updated successfully, but these errors were encountered:
After adding try catch block, I got error like below. Error message can be polished by removing “TODO:”.
But I didn’t think of adding try catch block to see if code is throwing any error till you asked on this thread…
for me server was not starting ☹ and same code was working in CTP3.
"TODO: Configure or Configure method not found"
at Microsoft.AspNet.Hosting.Startup.StartupLoader.LoadStartup(String applicationName, String environmentName, IList`1 diagnosticMessages)
at Microsoft.AspNet.Hosting.Startup.StartupManager.LoadStartup(String applicationName, String environmentName)
at Microsoft.AspNet.Hosting.HostingEngine.EnsureApplicationStartup(HostingContext context)
at Microsoft.AspNet.Hosting.HostingEngine.EnsureApplicationDelegate(HostingContext context)
at Microsoft.AspNet.Hosting.HostingEngine.Start(HostingContext context)
at ConsoleAppWithMvcWebapi.Program.Main(String[] args)
-Anand
From: Eilon Lipton [mailto:notifications@github.com]
Sent: Thursday, September 18, 2014 1:00 PM
To: aspnet/Hosting
Cc: Anand Paranjape (ASP.NET)
Subject: Re: [Hosting] If startup.cs doesn't contain Configure method with correct Signature then it should throw meaningful error message (#76)
What's the actual result today? No error shows up at all? A bad error shows up?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/76#issuecomment-56093506.
Triage: running k web on a startup without a configure shows the exception. Changing title to remove TODO from the text.
glennc
changed the title
If startup.cs doesn't contain Configure method with correct Signature then it should throw meaningful error message
Cleanup exception message when missing or incorrect configure method
Feb 12, 2015
I was trying projectk Custom hosting with console app. I had added startup.cs file without Configure method. Custom host was not even starting. after adding Configure method, custom host started.
I can provide sample if needed.
The text was updated successfully, but these errors were encountered: