0

I am doing user authentication using owin middleware. But for IppBuilder it is giving error "IAppBuilder could not found. Are you missing Reference?" I have already installed nuggets packages related to owin as shown while searching on google. Any help would be appreciated. Here is my code:

using Microsoft.Owin;
using Owin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using OpenConfigure.Core;
[assembly: OwinStartup(typeof(CURDApis.API.Startup))]

namespace CURDApis.API
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            HttpConfiguration config = new HttpConfiguration();
            WebApiConfig.Register(config);
            app.UseWebApi(config);
        }
    }
}
radbyx
  • 9,352
  • 21
  • 84
  • 127
dip
  • 63
  • 1
  • 8
  • Have you tried https://stackoverflow.com/questions/21738034/the-type-or-namespace-iappbuilder-could-not-be-foundmissing-using-a-directive-p ? – Gregoire Feb 11 '19 at 15:27
  • yes. I also tried this but did not work for me. Thank you. – dip Feb 13 '19 at 04:52
  • 1
    Problem is solved . I added reference of owin 1.0 to my project. Now working fine. Thank you. – dip Feb 13 '19 at 13:17

0 Answers0