Monday, October 25, 2010

Asp.net password membership change password forms authentication

Now a days security is the major factor while developing websites. While developing secured websites using asp.net developers must consider asp.net membership database etc. How to configure asp.net membership db Sometimes the programmer may need to change the username and password in asp.net membership database. This article describes some possible ways to change username and password in asp.net membership provider Change Username in ASP.NET membership database The username is storing in aspnet_Users table. So to change run the following query UPDATE aspnet_Users SET UserName = @UserName ,LoweredUserName = LOWER( @UserName) WHERE UserName = @CurrentUname How to change password in membership database To change password the programmer can use ResetPassword() function. see the example below MembershipUser Obj = Membership.GetUser(UserName.Text); Obj.ResetPassword(); But following is the most useful way MembershipUser Obj = Membership.GetUser(UserName.Text); Obj.ChangePassword(Obj.ResetPassword(), Password.Text); TACS LLC Dubai Time Attendance Dubai Access Control System Gate Barrier HRMS Solutions EID Reader Software EID Reader Building Maintanance UHF Reader Regards

Tuesday, October 19, 2010

System.Net.WebException: The remote server returned an error: (500) Internal Server Error. asp.net, system.net.mail, authentication

System.Net.WebException: The remote server returned an error: (500) Internal Server Error. When i was trying to send email using system.net.mail the above error came. The reason for this error was i did't specify username and password along with mailmessage To sove this error you specify the username and password along with mailmessage TACS LLC Dubai Time Attendance Dubai Access Control System Gate Barrier HRMS Solutions EID Reader Software EID Reader Building Maintanance UHF Reader

The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'.

The 'System.Web.Security.SqlMembershipProvider' requires a database schema compatible with schema version '1'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version. The above erro is comming when using asp.net membership provider for user authentication etc. And when running whole scripts into server instead of using aspnetdb_regsql.exe. To solve this error copy the data of schemaversion table into server TACS LLC Dubai Time Attendance Dubai Access Control System Gate Barrier HRMS Solutions EID Reader Software EID Reader Building Maintanance UHF Reader ID Shope

Login failed for user 'IIS APPPOOL\DefaultAppPool', iis7 asp.net, windows 7

Login failed for user 'IIS APPPOOL\DefaultAppPool' Sometimes when you try to host website in iis7 in windows 7 OS you may encounter the following error message. Login failed for user 'IIS APPPOOL\DefaultAppPool' To finish this error, follow the below steps 1. Open IIS 2. Double-click your PC name under Connections 3. Click Application Pools, Select your app pool (DefaultAppPool), 4. Then under actions on the right click Advanced Settings 5. Go to the Process Model section and click on Identity. Now select NetworkService. 6. To open IIS, click your start button and enter IIS into the search field. TACS LLC Dubai Time Attendance Dubai Access Control System Gate Barrier HRMS Solutions EID Reader Software EID Reader Building Maintenance UHF Reader Blog  Entrust Datacard Printer Best Regards