Facebook Emotion

Facebook Emotion

Facebook Emotion for chat. Make your facebook chat is COOL, Faceook Ascii Art

Graphic Design

graphic design

all about graphic design ie. MSN Display pictures, Icon, PSD, Photoshop, Vectorclick here.

Career Inspire Corner

Career Inspire

Career Inspire Corner Good Technique for Job

You must specify a non-autogenerated machine key to store passwords in the encrypted format.

Peacefulkate | Monday, June 20, 2011 | 0 ความคิดเห็น

Solution



If you attempt to use Reset Password to change to an Encrypted PasswordFormat but have not specified a MachineKey in web.config, the SqlMembership Provider will throw the following exception:

You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key.


This exception is thrown by the SqlMembership provider when you attempt to store a password in an encrypted format but have not created a custom machineKey section in your web.config file. There are several reasons that a custom machineKey section is required by the Membership Provider:
  1. The machineKey defines a validation method, validationKey and decryptionKey which are used in the encryption/decryption algorithm.
  2. Normally, Asp.Net (and the .Net Framework) can autogenerate a machineKey, however, this would not be portable across machines. Since your web site may have to be moved from your development machine to a server or even onto a server farm, the "keys" for encrypting/decrypting passwords would not be available on those separate platforms unless they were explicitly defined.
You could configure a machineKey along with its validationKey and decryptionKey attributes in each server or workstation's machine.config file, which would allow all web sites to use a common set of encryption keys and eliminate the requirement for a custom section inweb.config. A simpler and more flexible approach, however, would be to add a machineKeysection to the web.config file of your web site. This way, whenever you copy your web site to a remote server, the web.config file will have the required machineKey section.

How to specify a non-autogenerated machine key

Microsoft's MSDN site provides a full explanation of machineKeys and all of the options you have for controlling the way encryption will work in your web application. For many web applications, it may be enough to just add a <machineKey> section to web.config as illustrated here:
<system.web>
...
<machineKey
validationKey=
"2B53D41C080E6D7151146285D337D2F8008544D0D840CDD54A865255CD
4DD5F5D8D08F6528C95913BA7AF200586985FA0E6CFE5437EEA0CC6C6C29B8E7C14E45"
decryptionKey=
 "32555827CFD4ADA6C56CAEC378029848484B12E0D0AF420E25F5E8F778B3C0DB"
validation="SHA1"
decryption="AES"/>
...
</system.web>
Note that additional elements may also exist within the <system.web> section of your application's web.config file.

Need a unique MachineKey?

For your convenience, we have used the CryptoServiceProvider to generate a unique <machineKey> section for you.  Just copy it out of the text box below and use it on your own site(s).



Other MachineKey related exceptions

If you do not have a MachineKey section in web.config, and attempt to Reset a Password, you may receive a message that indicates that the current password is encrypted but no MachineKey has been defined in web.config.


Similarly, if you attempt to Change Question and Answer for a member whose password is encrypted but have removed the MachineKey from web.config, the Change Question and Answer panel will display a message similar to that shown below.


Important

When using Encrypted passwords, be sure to make a backup copy of your originalmachineKey data as it is the key to decrypting passwords.

Related Topics

The Membership Manager Control
Membership Manager Configuration
Asp.Net SqlMembershipProvider Settings
Index was outside the bounds of the array



source  :http://www.qualitydata.com/products/aspnet-membership/help/configuration/no-machinekey.aspx

Free Corner: , ,

0 ความคิดเห็น

Fav Corner

Programming (16) Facebook (10) Graphic Design (9) ASCII Name (8) Social Media (8) javascript (8) Facebook ASCII (7) Facebook Symbols (7) Cool Symbols (6) Google logo (6) doodle (6) Facebook Emotion (5) ASCII MSN Name (4) Adapted Graphic (4) Cool Facebook Text (4) Cool MSN Symbols Name (4) Cool Msn Symbols (4) ASP (3) CSS (3) Career Corner (3) Career Inspire (3) Cool Facebook Display (3) Cool Msn Name (3) Msn Pictures (3) database (3) Adecco Thailand (2) English (2) Facebook Campaign (2) Graphic Horoscope (2) IIS (2) Internet Browser (2) Knowledge (2) MS SQL (2) MsnDisplay (2) PHP (2) Social media Tool (2) Software (2) แต่งภาพออนไลน์ (2) 5 Innovative Facebook Campaigns to Learn From (1) ASP.Net (1) Adobe (1) Albert Szent Gyorgyi (1) Alert window (1) CGI (1) CSS Table (1) CSS Tool (1) Cartoon (1) Coding (1) Colors in English (1) Convert BahtText (1) Crowdsourcing (1) Css Forms (1) Database model (1) Designer Template (1) Display Copy Right (1) Download Google Chrome (1) Earth Day 2012 (1) English Grammar (1) English writing (1) Example of Social Media Job (1) Face your manga (1) Facebook Admin (1) Facebook App (1) Facebook Chat (1) Facebook Group (1) Facebook Profile (1) Fail (1) Father's Day of Thailand (1) Filter only Number (1) Fish (1) Fish ASCII (1) Free Activity (1) Free Horoscope Display (1) Full Screen window (1) Google Chrome (1) Google plus username (1) Google+ (1) Google+ Username (1) HR Recruitment (1) HR Solution (1) Happy Birthday (1) Happy Birthday 13th Google (1) Happy Holiday Logo (1) Hide notice Warning in PHP5 (1) How to add Classic ASP to IIS7 (1) How to create group (1) How to make iframe full height (1) HowTo Open Animated GIFs with Photoshop CS3; (1) ISAPI (1) Image Rotation (1) Japanese word (1) Keroro (1) Let the Music Heal Your Soul (1) Like (1) Love Symbols (1) Measuring Social Media ROI (1) Merry Christmas Logo (1) MilkTea (1) Msn Display (1) New Facebook Feature (1) Onion (1) PHP5 (1) Programming Tool (1) Programming.Display All IP Variables (1) Random Images (1) SQL Statement (1) Salary Guide in Thailand (1) Social Media Career (1) Social Media Job (1) Social Media Job Description (1) Star and Flower Symbols (1) Tank (1) Template (1) Thailand National Day (1) Thailand Salary Guide 2012 (1) Thailand flag on Google Logo (1) Top Css Table (1) Twitter (1) Web Service Extension IIS7 (1) WordPress (1) Wordpress database (1) bunny (1) customer engagement (1) cute face (1) example of database (1) facebook fanpage (1) fanpage (1) free blogger template (1) free stuff (1) free template (1) free wordpress template (1) function Bahttext (1) funny photo (1) html (1) japanese to english (1) mySQL (1) open full window (1) open new window command (1) photoshop (1) rounded corner (1) short name google (1) social bookmarking (1) social media marketing (1) symbol แชททางเฟสบุค (1) vocaburaly (1) wordpress table (1) www.adecco.co.th (1) กำหนดรูปให้หมุนด้วย javascript (1) คีย์ข้อมูบเฉพาะตัวเลข (1) ฐานข้อมูลเงินเดือนประเทศไทย (1) ดาวน์โหลด Google Chrome (1) ดูเดิล (1) ตัวอย่างฐานข้อมูลธุรกิจ (1) ทำให้กรอบด้านข้างไอเฟรมเต็ม (1) รวมภาพตลก (1) สร้างกลุ่มในเฟสบุค (1) ออกแบบเว็บไซต์ (1) เพลง (1) เอาโปรแกรม Adobe ออกจากเครื่อง (1) แปลงตัวเลขให้เป็นคำอ่าน (1)