I have created a console application in Visual Studio 2010 and installed nuget packages such as Microsoft.Owin.Hosting and Microsoft.Owin.Host.HttpListener for OWIN and configured like below
namespace KatanaIntro
{
class Program
{
static void Main(string[] args)
{
const string uri = "http://localhost:8080";
using (WebApp.Start<Startup>(uri))
{
Console.WriteLine("Started");
Console.ReadKey();
Console.WriteLine("Stopped");
}
}
}
public class Startup
{
public void Configuraion(IAppBuilder app)
{
app.Run(ctx=> ctx.Response.WriteAsync("Welcome to my first katana application"));
}
}
}
After running the application i got the exception EntryPointNotFoundException *The following errors occurred while attempting to load the app. - No 'Configuration' method was found in class 'KatanaIntro.Startup, KatanaIntro, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null*
How can i resolve this?anything iam missing?
you misspelt configuration. your code -> "Configuraion". Correction -> "Configuration"