OWIN中的EntryPointNotFoundException

时间:2013-12-08 18:18:45

标签: .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"));
        }
    }
}

运行应用程序后,我得到了异常 EntryPointNotFoundException * 尝试加载应用时发生以下错误。   - 在'KatanaIntro.Startup,KatanaIntro,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = null *

类中找不到'配置'方法

我如何解决这个问题?我失踪了什么?

1 个答案:

答案 0 :(得分:7)

你拼错了配置。你的代码 - &gt; “组态”。更正 - &gt; “配置”

相关问题