Category : appcmd

As I understand it, it is possible to add connection strings and other configuration objects to a site’s scope in the following files – machine.config applicationhost.config the site’s web.config I am running the following command – APPCMD set config "site1" /section:ConnectionStrings /+"[ConnectionString=’Data Source=localhost;Integrated Security=SSPI;’, Name=’Northwind’, providerName=’System.Data.SqlClient’]" This adds a element to the web.config file. I ..

Read more

I can see C:WindowsSystem32inetsrvappcmd.exe in the folder and dir C:WindowsSystem32inetsrvappcmd.exe also shows the file. But File.Exists(@"C:WindowsSystem32inetsrvappcmd.exe") returns false. I tried File.OpenRead as this article: Why does System.IO.File.Exists(string path) return false? suggested, but still failed (System.IO.FileNotFoundException) Why I can see C:WindowsSystem32inetsrvappcmd.exe in the folder but unable to access it programmatically? Source: Windows..

Read more