How to solve SocketException was unhandled by user code?
I want to check the email address is exist or not but when I input email address and run the code it show an exception which is :"An exception of type 'System.Net.Sockets.SocketException' occurred in...
View ArticleProblems with identity - first time using it
Hello all,This is my first VS project being put on the web. I had trouble getting it to work after publish but have worked past that. Now the problem is when I try to log in to the site. I get this...
View ArticleASP.net Identity, Assigning a specific role to a specific email domain
Hi there,I have the following code (which is called in global), which creates a specific role and assigns it to the email address included. I'd like to add add to this method, I'd like to automatically...
View ArticleHow to publish Identity database?
Since the database that my solution is using for identity is not a SQL database, but a local .mdf file, how do I specify that in the web publish settings? I have not found an example of that.Thanks!
View ArticleSignout in SPClaimsUtility
We created two sites, one with FBA and other one is Windowsauthentication. Code base remain same for both sites, only authentication will get differ. Each site has different signout page and...
View ArticleHttpContext.Current.User.Identity.Name returning different values for IE9 and...
I am getting different values for HttpContext.Current.User.Identity.Name for IE9 and Firefox 31.4 for ASP.net4.5. This is on the server with IIS7.So, with Firefox the domain name is being appended...
View ArticleWebSite Security, Username & Location and Password
Hi AllI have been working through the security tutorials and have learned most of what I need, butI am looking to expand the validation to have a username / password and the addition of a location, so...
View ArticleOWIN Resource Server - [Authorize] Always Returns 401
I've been intently looking at this article: http://www.asp.net/aspnet/overview/owin-and-katana/owin-oauth-20-authorization-server.It seems that I got the authorization server to work because I'm able...
View ArticleHow should I get a unique Id value from windows authenticated User?
Creating an intranet site and the users will be creating and updating data in a database. The data tables have columns for createdBy and updateby. This should be the unique Id of the current user....
View ArticleAn type or namespace 'createrole, deleterole, getallrole and roleexist' does...
I got this problem, i check on internet, copy paste all the code exactly and precisely, but this error comes out.. can you guys tell me what the problem???here the front code:<%@ Page Title=""...
View ArticleRestricting directory access to specific roles in asp.net?
I wish to restrict directory access to a specific directory to certain user roles. I am new to the changed asp.net security model. Right now my intent is simply to restrict directory access to a...
View ArticleMembership Tables in ASP.NET
Hello,I have recently altered my program so that when a user registers their details on the site, their email and password will be saved to the membership tables. I done this without the built in login...
View ArticleError trying to configure roles
Can someone please help me?, I am trying to create a user with access except for that I receive error! This is my firsrt try at using the ASP configuration website and I recieve an error. the tutorial...
View ArticleLogin/Logout work and then stop
I am building a ASP.NET 4.5 application (not MVC another big story) using the .Net authentication an up to date Visual Studio 13 in Windows 8.1. A few days back I did some package manager updates that...
View ArticleIs Forms Authentication prevent Load Balancer issues?
Hi, When I am searching in the internet I noticed Forms Authentication will prevent Load Balancer issues and this is the best way to avoid load balancer problems. Is this current. Please let me know...
View ArticleTrouble logging out
I have 2 mvc websites using the same login database, one on occasion will not logout. I have had a look with fiddler and at the difference between the successful and failed logoff requests.The...
View ArticleHosting a role based website on shared hosting plan
please check this thread http://www.webhostingtalk.com/showthread.php?p=9393202#post9393202
View ArticleBasic Authentication Progrmatically
Hi there.I have a asp.net website that has a .asmx service and few methods on it. The site is protected with basic authentication. I have another website that will make a REST call to my web service....
View ArticleForms Authentication folder permissions
I have an interesting problem on an application that I didn't create but am now tasked with supporting. I'm hoping someone who has some experience with Forms Authentication can help me out. I have...
View ArticleASP.NET MVC / OWIN Middleware / Cookie Authentication LogOff in Account...
I have run into a really weird issue and I cannot reproduce 100% of the time. When calling LogOff (via HTTP Post) in the account controller I am redirected back to the home page and the user is not...
View Article