Event code: 4005 Event message: Forms authentication failed for the request....
Recently some CIS Windows hardening policies were applied to one of our Windows 2012R2 Datacenter servers.When smoke testing the web applications on these servers, we discovered that the authentication...
View ArticlePrevent posting messages
Hello. I have some form on web site that return model to controller . Model have some three string properties: Name, Note and Emailvisitors fill theese properties and push "send" button. Then the...
View ArticleASP.NET MVC 5 - Microsoft Account OAuth2 sign-on stop to work after update...
I have updated the following Nuget packages from v3.0.1 to v3.1.0:Microsoft.Owin Microsoft.Owin.Host.SystemWeb Microsoft.Owin.Security Microsoft.Owin.Security.Cookies Microsoft.Owin.Security.Google...
View ArticleThe name 'ConfigureAuth' does not exist in the current context
Hi, I have this error above in this line in my startup.cs file:[assembly: OwinStartupAttribute(typeof(ContosoUniversity.Startup))] namespace ContosoUniversity { public partial class Startup { public...
View ArticleManaged Service Account (MSA)
Hi folks,I have an application that I want to use MSA account to connect to the database server. Can someone help with sample code or explanation that I can use in my web config? I have the WCF and the...
View ArticleBuilt in Login Control
Hi,I am bug fixing an existing vb.net website. The site uses the built-in Login control. I have been trying to figure out how to get the userID and the user login status so that I can log off...
View ArticleMock specific claim and specific role using et Asp.net identity
Hi, I want to moq specific claim and specific role using et Asp.net identity public static ClaimsPrincipal MockIdentity(int userId, string username, List<Claim> userClaims, bool isAuthenticated...
View ArticleUpdating data in User Accounts - Value cannot be null. Parameter name: manager
I'm having issues with geting the user data to update in MVC5. I created a form and when I click on submit, it runs the method below, which throws the error Value cannot be null. Parameter name:...
View ArticleUsername and hashed password authentication on login form C#
Hello I am working on a project, and I am trying to authenticate the user to log in to my website. I do have the password hashed and salt in the database. I can get it to work if the password is in...
View ArticleUser Roles and Permissions
Hello, is there a good tutorial or blog that shows how to set user roles and give users permission to view forms and not view other forms in a project? Thanks
View Articlehow to get windows login from webform website with authentication mode...
I created an empty basic default webform website in VS2015 (windows 7 pro workstation) and set windows authentication = enabled and anonymous authentication = disabled and in web.config I set...
View ArticleMedium Trust Level application
One of my web based application on .net was developed on full trust level environment for dedicated server hosting.Now, I have to move my application on shared hosting who does not provide the full...
View ArticleError 401.2: Unauthorized: Logon failed due to server configuration
We have used Microsoft.AspNet.FriendlyUrls for that we install from nuget package manager and added following code into Global.ASAX file.protected void Application_Start(object sender, EventArgs e) {...
View ArticleWebsite Login problem with Identity 2
I have created a ASP.net 4.5 website in Visual Studio 2015 using identity 2. I have added the most recent Nuget packages for OWINOn my local machine with Firefox I experience no problems but since...
View ArticleAsp.Net Identity Globalization
I am trying to use globalization in my Asp.NET Identity specifically in TokenEndpointPath.My dll versions are the following:Microsoft.AspNet.Identity.Core -...
View ArticleASP.NET Identity and Database-First Approach
ASP.NET Identity and Entity Framework Database-First ApproachI have used ASP.NET Identity in my code-first projects before and tried using it in a project that has an existing database-first approach...
View Articlenewbee - anyone who has gotten a cert and set up SSL would easily be able to...
hi all,I am using vs2010 asp.net web app . I want this cert for ssl for a directory that will have a shopping cart. I am using winhost.com as my IIS 7 web server1. The site is not showing all images...
View Articlecontext Identity is not set in AuthorizationHandler
Hello!I am using policy based authorization. Here is what I have in my Startup.cs:services.AddSingleton<IAuthorizationHandler, PrivateAuthorizationHandler>(); services.AddAuthorization(options...
View ArticleIdentity Login with mobile phone number
I am using Identity in .NET to make my token based authentication. At the moment the login is done using the username (email) and password, but I would also like to add the possibility to login using...
View ArticleClaim based Authentication and Authorization
Hi All,I am trying to implement claim based authentication and authorization in Web Api and Mvc. Can anyone please help me how can I implement security using Claim? ThanksSelvakumar R
View Article