We want to encrypt all our web app configuration files that we deploy to a server. We\'d prefer to do this as a step in our build process and include the pre-encrypted files ins
You are encrypting/decripting using the default provider on your machine (this will be different for each machine).
You need to specify the provider:
aspnet_regiis -pef appSettings D:\testapp -prov "SampleProvider"
On your colleagues machine:
aspnet_regiis -pdf appSettings D:\testapp