I'm using this code run in windows command prompt.. But I need this done programmatically using C# code
See Question&Answers more detail:osC:WindowsMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis.exe -pdf "connection Strings" "C:UsersXXXDesktopconnection stringDNN"