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?
In Visual Studio 2017 right-click the project and select Add Class. - In the Add New Item dialog box, enter OWIN in the search field, and change the name to Startup. cs, and then select Add. The next time you want to add an Owin Startup class, it will be in available from the Add menu.
you misspelt configuration. your code -> "Configuraion". Correction -> "Configuration"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With