Hi Guys,
This is my first time posting, so forgive me if I am not in the correct place.
So I'm working on a project, and I am trying to utilize policy based authorization. I need to add these policies to ConfigureServices method in the Startup class according to the asp.net documentation; however, there are some differences in the documentation and other website tutorials that I cannot figure out.
First some background information. This is a project that has been working without the Startup class or policy based authorization, and I am implementing new features.
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-AspNetMvc-Version: 5.2
Microsoft.Owin v3.0.1
Visual Studio Pro 2015
The documentation says that there will be a Configure & ConfigureServices method in the Startup class, and will called when the application is started. My application will not even look at the Startup class until I installed Owin. After I installed Owin, it went to the Startup class, but will not call Configure nor ConfigureServices method when I put breakpoints on them. The application actually gave an error if there isn't a Configuration(IAppBuilder app) method in the Startup class.
Once I added the Configuration(IAppBuilder app) as en empty class, the app ran normally, but it still would not call the ConfigureServices method. I can not for the life of me figure out why. Please, any help would be appreciated.
NewbDeveloper