Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Cleanup exception message when missing or incorrect configure method #76

Closed
anandparanjape opened this issue Sep 18, 2014 · 4 comments
Closed

Comments

@anandparanjape
Copy link

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.

@Eilon
Copy link
Member

Eilon commented Sep 18, 2014

What's the actual result today? No error shows up at all? A bad error shows up?

@anandparanjape
Copy link
Author

Eilon,

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.

@Eilon
Copy link
Member

Eilon commented Sep 22, 2014

You're saying that no error shows up at all by default? Does k web just exit immediately?

@glennc
Copy link
Member

glennc commented Feb 12, 2015

Triage: running k web on a startup without a configure shows the exception. Changing title to remove TODO from the text.

@glennc 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
@glennc glennc added the polish label Feb 12, 2015
@glennc glennc added this to the Backlog milestone Feb 12, 2015
@Eilon Eilon closed this as completed in 16c8d51 Mar 2, 2015
@Eilon Eilon modified the milestones: 1.0.0-rc1, Backlog Mar 2, 2015
@Eilon Eilon added the 3 - Done label Mar 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants