thanks in advance to every one
I am trying to run a command in command prompt under ASPNET account. But it prompts me for a password. What should i do. Help.
well i am trying to encrypt the connection string in the webconfig using Using RSA with a User-level Key Container.
Because the application must access the data using the same identity that you used to encrypt the data, you often need to run the encryption command using your application's service account identity. To do so, you can start a command Window by using the runas command as shown below specifying an appropriate domain and user name.
Runas /profile /user:domain\user cmd
When you run Aspnet_regiis from the resulting command window, it uses the specified identity to perform the encryption. This allows the application that uses the same identity to decrypt the data at run time.
Sorry, that was actually quite misleading. What I meant was that there is a built in method to retrieve encrypted connection strings if you have encrypted the string first e.g.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.