User61956409 posted
Hi aspfun,
After published apps, I found that web.config which stored connection string including SQL server password not compile.
If you host your web application on IIS server, you need not worry browser clients access web.config file and get the SQL server password, because by default
IIS help block several of the ASP.NET-related paths for us; Web.config, bin, App_Code, etc.
Besides, if you want to prevent someone who could connect to your web server from getting plain-text password, as A2H mentioned, you can encrypt Connection Strings in Web.Config.
With Regards,
Fei Han