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 ..
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..
I am running a windows 2016 server, we are running IIs 10 on it and i need to be able to assert if there is an AppPool setup before i deploy a website. If it doesn’t exist i need setup the AppPool with a specific user and password. All of this is done using a ..