gpt4 book ai didi

c# - OWIN 启动类丢失

转载 作者:IT王子 更新时间:2023-10-29 03:29:16 27 4
gpt4 key购买 nike

我收到此错误是因为我的项目无法找到 OWIN 启动类的引用。我什至通过 Nuget 安装了所有 OWIN 引用包,但仍然遇到同样的问题。我正在使用 Visual Studio 2012MVC4

尝试加载应用程序时出现以下错误。

  • No assembly found containing an OwinStartupAttribute.
  • No assembly found containing a Startup or [AssemblyName].Startup class. To disable OWIN startup discovery, add the appSetting owin:AutomaticAppStartup with a value of "false" in your web.config. To specify the OWIN startup Assembly, Class, or Method, add the appSetting owin:AppStartup with the fully qualified startup class or configuration method name in your web.config.

最佳答案

Create One Class With Name Startup 这将帮助你..

public class Startup
{
public void Configuration(IAppBuilder app)
{
app.MapSignalR();
}
}

关于c# - OWIN 启动类丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20068075/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com