gpt4 book ai didi

Owin启动检测

转载 作者:行者123 更新时间:2023-12-04 17:35:57 27 4
gpt4 key购买 nike

我用 Owin Startup 类开发了一个应用程序。当我运行 OwinHost.exe 时,它​​显示 No Assembly found containing OwinStartupAttribute .

但是我在启动类中将程序集定义为:

[assembly: OwinStartup(typeof(OwinDemo.BrandStartup))]

我还在 Web.Config 文件中将 appSettings 定义为:
<appSettings>
<add key="owin:AppStartup" value="OwinDemo.Startup, OwinDemo"/>

最佳答案

项目-> 右键单击​​添加新项目。

启动文件

using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(SignalRChat.Startup))]
namespace SignalRChat
{

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

关于Owin启动检测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19028311/

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