Fix an unsuccessful web.config file encryption

Complete the following steps to Fix an unsuccessful web.config file encryption:

1.        Delete the web.config file that was unsuccessfully encrypted, and then replace it with the original web.config file that was backed up in Step 2 of the Encrypt the connectionStrings in web.config files tutorial.

2.        Enter the following command at the Command Prompt and press the Enter key on your keyboard to reset Internet Information Services (IIS):

iisreset

IIS resets and the Command Prompt updates to show that IIS services were stopped and restarted.

Administrator: Windows Command Processor screen (iisreset)

3.        Repeat either Step 5 or Step 6 in the Encrypt the connectionStrings in web.config files tutorial (depending on which web.config file was not successfully encrypted) to encrypt the file again.

See Also:

|