iis - ASP.NET connection string encryption -


the answers found issue didn't seem work. difficult item find information on msdn , in general.

i using windows server 2003, iis 6, dot.net 3.5 , visual studio 2008.

i need know how encrypt connection string asp.net web application.

below solution windows server 2003 , iis 6 , .net 3.5 , visual studio 2008. since encryption machine-specific, has run on web server.

encryption command (change project_name web app folder name):

c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis -pef "connectionstrings" "c:\inetpub\wwwroot\project_name"

the second command gives aspnet account access netframeworkconfigurationkey in machine.config.

c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis -pa "netframeworkconfigurationkey" "aspnet"

the third command gives nt authority\network service account access netframeworkconfigurationkey.

c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis -pa "netframeworkconfigurationkey" "nt authority\network service"

i hope helps someone.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -