How to know the Application of current logged-on user?
I added 2nd Application in aspnet_Applications and want to use it to seperate users in the same ASP.net Web Application Project.In web.config:<membership...
View ArticleSimpleMembership Roles Management
Hi All,I would like to use roles to dictate what user groups can access what part of the website. How can I start to use the roles which I can see in the webpages_Roles table? Also besides using this...
View ArticleError - An object reference is required for the non-static field, method, or...
Hi,Could somebody please advice on the error I am getting while building the solution. The error comes up on the following code (bold and italic):public static bool CheckUser() { SqlConnection...
View ArticleUse fingerprint All-in-one for my program
I want to buy All-in-one model Asus All-in-One ET2220INTI or Asus All-in-One ET2013IGTI for a corporation. I'm programmer(ASP.NET4 C#, SQL Server 2008). Should I use the fingerprint Asus All-in-One on...
View ArticleRetriving a list of users
Hi All,Im using SimpleMembership in my MVC project and am having difficulty trying to create a page where I can list all user accounts in the system.I came up with the following in the controller;...
View ArticleMVC5/Web API 2 ExternalLogin with returnURL other than /
Hi Everyone,I've been banging my head on this all night long and I'm sure there's some undocumented property that I need to set somewhere to get this to work.Essentially, I have a mobile application...
View ArticleExecuting a program server-side inside a Virtual Machine/Sandbox
Hello everyone.I'm not very well-versed in ASP.net or Windows Secuirty, I come from a Linux background. However I'm working on a Web application in ASP.net / Razor, that will involve the user typing in...
View Articlehow to log in with asp:login if user does not have roles
my username for log in: username1 does not have roles usernam2 have roles How to check which user have roles and if have redirect returns: wrong username or password.Please help
View ArticleRoles in SimpleSecurity
Hi All,Im currently using the following code to show what Roles exist and what users are associated to what Roles. @foreach (var r in Roles.GetAllRoles()) {<li>@r</li><ul> @foreach...
View ArticleHTTP Error 401.3 - Unauthorized
I was unable to open an MVC4 Project using IIS, so I have created a new test web site on my system http://localhost/atest. It essentially has one web page – index.html. The system is my PC and I’m...
View ArticleOWIN Authentication and timeout with redirection
Hi, I am using OWIN authentication with MVC 5. Here are the code for my StartUp.cspublic void ConfigureAuth(IAppBuilder app) { app.UseCookieAuthentication(new CookieAuthenticationOptions {...
View ArticleExample for logging into webapi 2 from .net program
Hi all, I'm trying to learn WebAPI 2 and MVC 5, though a hobby project.What i'm currently want to achieve is the following. I want to login into a webapi site from a .net forms application or a WPF...
View ArticleNot able to redirect to custom error page for HTTP error 400
Hi Team,I tried to redirect the page using global.asax and also in webconfig. But only the 400 error is not able to redirect to custom error page. i think there is some thing else needed to handle for...
View ArticleHow to inject ClaimsPrincipal with autofac
Hi,currently I am working on a single page application with durandal and breeze. The authentification I did with the new ASP.net Identity and OAuthAuthorizationServerProvider. This work fine so far. I...
View ArticlePassword policy (NO repeated or serial characters)
-Combination of alpha, numeric and special characters (DONE)-Minimim 9 characters long and can't match previous password (DONE)-No repeated or serial characters (e.g. aaa111 or abcd4567) : This one...
View ArticleDecrypting cookie / STS SSO with 3rd Party Application
Hi All,I have a SSO application running through an STS I built. The SSO works great between the STS, RP, and my SharePoint Application. I have a 3rd party system I need to integrate with my STS. This...
View ArticleImports to membership
Hi,I use asp.net memberships for users login...I have a table (tb) whit NAME and PASSWORD fileds, whit many records,I wants imports this table (tb1) for asp.net memberships tables ... how i do?
View ArticleMicrosoft.AspNet.Identity Claims not added
Hi, I am trying the new AspNet Identity functionality, and I am puzzled by the following.Using a new Visual Studio 2013, ASP.NET Web Application (webforms) with standard Identity model, just local user...
View Articlehow to find applicationid of user and then login with this?
Hi, My code for get applicationid: var appid = from t1 in db.aspnet_Users where t1.UserName==UserName.Text.Trim() select t1.ApplicationId;Now I want with my code:if...
View ArticleHow to remove NONCE tag or specify EncodingType attribute for NONCE on...
Dear All,I have been trying to access SSL enabled secured web service from a .NET application but couldn't gain access whatsoever. I'm using WSE 2.0 on client application to supply credentials using...
View Article