Top "Asp.net-mvc-5" questions

ASP.

MVC 5 Owin Facebook Auth results in Null Reference Exception

I'm trying to setup integrated OWIN Facebook authentication in a new MVC 5 project in Visual Studio 2013. I have configured apps …

asp.net-mvc facebook asp.net-mvc-5 owin asp.net-identity
Add Custom Claim Types

New to OWIN authentication and finding it hard to create my own owin claim types. Heres the thing. I need …

c# asp.net-mvc-5 owin
Correct way to use HttpContext.Current.User with async await

I am working with async actions and use the HttpContext.Current.User like this public class UserService : IUserService { public ILocPrincipal …

c# asp.net-mvc asp.net-mvc-5 async-await httpcontext
Rotativa PDF generation working locally but not on IIS 7

I have an ASP.NET MVC 5 application. It has a simple form and when the user submits it, the form …

iis-7 asp.net-mvc-5 rotativa
How to resolve error 500 on Azure web app?

What I have: VS2015U2 ASP.NET 5 MVC 6 website Deployed to Azure Web App The site works locally When I …

azure asp.net-mvc-5 azure-web-app-service
Enable CORS for Web Api 2 and OWIN token authentication

I have an ASP.NET MVC 5 webproject (localhost:81) that calls functions from my WebApi 2 project (localhost:82) using Knockoutjs, to make …

asp.net-web-api asp.net-mvc-5 cors asp.net-web-api2 owin
How to configure StructureMap for asp.net MVC 5

I'm getting below error. I setup it similar to asp.net mvc 4. No parameterless constructor defined for this object. Description: …

c#-4.0 asp.net-mvc-4 dependency-injection structuremap asp.net-mvc-5
ASP.NET Identity vs Simple membership Pros and Cons?

In MVC4 we had Simple Membership. My opinion is that Simple Membership was a good Identity Model tried and tested …

asp.net-mvc asp.net-mvc-4 asp.net-mvc-5 simplemembership asp.net-identity
MVC5 and Bootstrap3: Html.EditorFor wrong class? How to change?

I just noticed that MVC 5 is using a different class for input fields when using EditorFor. I think its from …

twitter-bootstrap-3 asp.net-mvc-5 asp.net-mvc-5.1
User.Identity.GetUserId() returns null after successful login

I've defined a temp variable to get current user id, it always returns null. Here is the snapshot: Why? UPDATE: // // …

c# asp.net-mvc asp.net-mvc-5 identity