Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EntryPointNotFoundException in OWIN

Tags:

.net

owin

katana

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?

like image 835
Jameel Moideen Avatar asked Dec 08 '13 18:12

Jameel Moideen


People also ask

How do I specify Owin startup Assembly?

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.


1 Answers

you misspelt configuration. your code -> "Configuraion". Correction -> "Configuration"

like image 192
Ahmed ilyas Avatar answered Dec 09 '22 23:12

Ahmed ilyas