0

How can I bind the startup.cs file adding manually to the project? I created it from Add > New Item > OWIN Startup class but is ignored by the app.

The Startup class

using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;

[assembly: OwinStartup(typeof(WebApplication1.Startup))]

namespace WebTest
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888
        }
    }
}

Thanks

Update

I can do it thanks to this

OwinStartup not firing

Jien
  • 1
  • 3

1 Answers1

0
[assembly: OwinStartup(typeof(**WebApplication1**.Startup))]

In the OwinStartup attribute you specify a class WebApplication1.Startup but the class shown says WebTest.Startup

Neil
  • 11,059
  • 3
  • 31
  • 56
  • Sorry I did not copy the right code, but is like you said, anyway is not working. Do I have to configure something in the web.config file? – Jien Jul 09 '20 at 21:21