troubleshooting Question

migrate web.config to another server

Avatar of softbless
softbless asked on
ASPASP.NETMicrosoft IIS Web Server
6 Comments1 Solution423 ViewsLast Modified:
I encrypt the web.config file for my asp.net application using this command :


aspnet_regiis.exe -pef "connectionStrings" "C:\Inetpub\wwwroot\application1" -prov "DataProtectionConfigurationProvider"

aspnet_regiis.exe -pef "appSettings" "C:\Inetpub\wwwroot\application1" -prov "DataProtectionConfigurationProvider"

And we got the web.config ecnrypted perfectly.


Regarding the encrypted web.config, what should I do if we want to migrate to other server, what is the correct step :
- simply copy the encrypted web.config into new server

or

- copy the plain web.config then rerun those 2 commands on the new server?

the issue the we are facing : In our client, we are not allowed to execute those 2 command on the new server.

Kindly advise. thanks
ASKER CERTIFIED SOLUTION
Brad Howe
Senior Enterprise Architect
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros