Questions tagged as 'owin'

2
answers

How to solve error with OWIN?

Well friends, I've created an Asp.Net MVC web project with No Authentication , but now I'm in need of authentication. I'm following some tutorials like this to put authentication from scratch, but after installing EntityFramework an...
asked by 02.06.2015 / 15:57
1
answer

Global FIlter in MVC 5 is not working

Hello. I'm following the tutorial below with the intention of better understanding the .net Identity authentication process with OWIN. link When accessing Home, it should redirect to the auth / login and this is not happening. It's as if...
asked by 22.09.2014 / 22:39
1
answer

How do I get access_token when I sign in with Facebook on MVC5?

When I create a project MVC5 the Visual Studio automatically creates a site for me with a login option via Facebook, Google ... I just need to enable "Startup.Auth.cs" . But it does the direct login and I do not know how t...
asked by 19.12.2013 / 21:40
1
answer

Error logging in using Facebook

Attempting to log in via facebook I come across with the following error:    Server Error in Application '/'.   Object reference not set to an instance of an object.   Description: An unhandled exception occurred during the execution of the  ...
asked by 23.01.2017 / 21:05
1
answer

Data access in DAL with ASP.Net MVC Identity and Owin

Today my solution has an MVC 5 Web application project and a Data Access Layer (DAL) Library with EF DatabaseFirst. I want to create a layer with MVC Identity + Owin, however, I would like data access to be made in the DAL. How do I do thi...
asked by 25.09.2014 / 18:16
1
answer

Ensure that HttpConfiguration.EnsureInitialized ()

Good Night! I'm studying ASP.NET (I come from java) and I'm a bit confused by all that. I'm trying to create an endpoint to return the list of clients from my database, however, I can not initialize it at all! When I run the project, it...
asked by 28.10.2015 / 00:58
2
answers

Assembly Microsoft.Owin not found

In my project I am using the OWIN library for user authentication. I have already installed the package, but when I run the project, the error is returned:    Could not load file or assembly 'Microsoft.Owin, Version = 2.1.0.0, Culture = neutr...
asked by 10.08.2016 / 05:44
1
answer

How to get type of user in view?

I have an Asp.Net MVC project that uses Individual User Account with Owin . Everything is working perfectly, but I would like to get the user type ( role ) in View . Home I'm using Request.IsAuthenticated to know if the use...
asked by 08.06.2015 / 15:19
2
answers

Register a user "admin" when running the application c # mvc

Good afternoon, I need some idea for a web system to automatically create a user Admin as soon as I run (open) the application. That is, when running the application with a zeroed bank, so that I do not have to register any users before loggi...
asked by 05.06.2018 / 19:29
1
answer

IIS Express or Owin self host (as service)

What are the advantages / disadvantages of these two approaches. Some features: It will be a REST server. The project in the beginning will have few requests Local server (not cloud)
asked by 26.07.2015 / 01:27