【问题标题】:EntryPointNotFoundException in OWINOWIN 中的 EntryPointNotFoundException
【发布时间】:2013-12-08 18:18:45
【问题描述】:

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

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”类中找不到“配置”方法*

我该如何解决这个问题?我缺少什么?

【问题讨论】:

  • 你拼错了配置。您的代码->“配置”。更正->“配置”
  • 我所说的方法名称......你拼错了配置
  • 很高兴你成功了!
  • 如何直接调用配置?我想我们可以直接调用这个方法方法名不是pblm

标签: .net owin katana


【解决方案1】:

你拼错了配置。您的代码->“配置”。更正->“配置”

【讨论】:

  • 只是补充一下 - 我在配置中写了字母 c 作为小写并遇到了同样的问题。当我配置它时它已修复。谢谢。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-06-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-08-04
相关资源
最近更新 更多