How to redirect user to login page if the user is not login in web forms...
here is my web.config<system.web><compilation debug="true" targetFramework="4.5" /><authentication mode="Forms"><forms defaultUrl="Timeline.aspx" loginUrl="~/Account/login.aspx"...
View ArticleProtect a website from bad users
Good day We have a asp.net website high traffic website. When a user registers we store the ip address i that user,when the login we store all ip addreses he used and we have a blocking module which...
View ArticlePage Level Permissions for Roles using AspDotNet MemberShip
Hi,I'm using AspDotNet MemberShip. current i have created Admin, SubAmin and customer roles.now i want to give page level permission (View, Edit, Delete) for eash SubAmin based on Page.I need...
View Articleattempted to read or write protected memory. this is often an indication that...
Hi,I'm getting below error when trying to execute updategram from asp.net. And the normal sql queries are working fine.Also when I try to run the same code from console application, this is working...
View ArticleAsp Net Membership 4.0 to 4.5.2
I'm trying to upgrading my website from 4.0 to 4.5.2. I created a new user account with ASP.Net Membership in 4.5.2 and everything works fine. I can now login correctly, but I have a whole lot of...
View ArticleAuthentication Form
hi every bodyIamworking ona project (ASP.Net WebForm , SqlServer 2008 )Inthisprojectthereare four types ofuser Withdifferent accesslevels .{ For Example :Employees{id, name , family,...
View ArticleAsp Net Membership 4.5.2 Register Account
Hi,When you register a new account using asp net membership 4.5.2, they don't allow spaces. I want to be able to register an account with spaces. How do you change the register process to allow for...
View ArticleAd LDS There is no such object on the server.
I am using below code to create user in AD LDS which is installed on different server. In my local machine which is a remote desktop(VDI) it works but after deployment to server different host name it...
View ArticleGet current client username for SingleSignOn
Hi thereI have a asp.net website (Framework 4.5, IIS 8) for local intranet usage. The server and also the clients are in the same domain. In there I have implemented a little user management (SQL table...
View Articlerestrict access to folder by Membership Role
Hi All: I have an ASP.NET 2.0 membership website, with roles assigned to specific users. I've been using the following rules in web.config in each folder to restrict access:<?xml...
View ArticleCreate Role in ASP.NET Identity and Add User To That Role
I created a user in asp.net identity how do I create the role and then add the user to the role?The tables for the users in asp.net identity are AspNetRoles, AspNetUserRoles, and AspNetUsers tablesThanks
View ArticlePassport Authentication
I am trying to implement Passport Authentication in ASP.NET application but following websites are not accessible. Can anyone tell me step by step procedure to implement Passport...
View Articlewhen I or anyone open my website from any browser it want authentication...
when I or anyone open my website from any browser it want authentication request for my ftp server .previously i entered my ftp server or my website by google chrome after that it is happening.how to...
View ArticleBrowser asing for username/password
Hi Guys,I've and application running over the net and the problem is that everytime is asking me for the server's username/password, by providing the credentials I'm able to access the page, but how...
View ArticleASP.NET Identity with MongoDB -- problem with Facebook external authentication
Hi. I am developing a Web API service as a mobile app backend in which the users will authenticate via Facebook. We will also use MongoDB as data source.After reading ASP.NET Identity documentation on...
View ArticleBest practice creating default admin account
Dear Ladies and Gentlemen,I want to ask you, what the best practice for automatic admin account creation is.In the past I realized the admin account creation through a hard coded admin account email...
View ArticleWindows Authentication access denied in Logs with first request.
Hi all,I have a problem with with configuration of Windows Authentication in my app.I have local IIS in which I configured to allow Windows Authentication and deny anonymous Authentication in...
View ArticleActive Membership Provider ValidateUser method always return false
Hi,In my project I am using Active directory membership provider and for one user membership.ValidateUser method always return false. even if we provide correct credentials it is returning false. user...
View ArticleIssue encrypting using ASPNET_REGIIS with a custom RSA Key Container
OS: Server 2008 R2 Enterprise.NET Framework versions installed: 1.0.3705, 1.1.4322, 2.0.50727, 4.0.30319I have been asked to encrypt connectionStrings and a few other sections of the web.config files...
View ArticleHow to setup levels of "Access Permission" such as from 1 to 5? and another...
In an MVC application running on Windows server, am trying to setup the permission for various sections. How is this done?Say level 5 = super user, level 4 = admin, 3 = regular user, 2 = guest, 1 =...
View Article