OWIN中的EntryPointNotFoundException

Cod*_*-EZ 5 .net owin katana

我在Visual Studio 2010中创建了一个控制台应用程序,并为OWIN安装了nuget软件包,如Microsoft.Owin.Hosting和Microsoft.Owin.Host.HttpListener,并配置如下

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"));
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

运行应用程序后,我得到异常EntryPointNotFoundException *尝试加载应用程序时发生以下错误.- 在类'KatanaIntro.Startup,KatanaIntro,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null*中找不到'配置'方法

我怎么能解决这个问题?我失踪了什么?

Ahm*_*yas 7

你拼错配置.你的代码 - >"Configuraion".更正 - >"配置"