I changed my connectionStrings
section in web.config
to Integrated Security="True"
to hide username and password, but met the error:
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
Before change:
<connectionStrings>
<add connectionString="Server=v-s1;Database=DB1;User ID=Admin;Password=AdminPW;Persist Security Info=True;Max Pool Size=200;Connection Timeout=60" name="MROConstr" />
</connectionStrings>
After change:
<connectionStrings>
<add connectionString="Server=v-s1;Database=DB1;Integrated Security="True";Max Pool Size=200;Connection Timeout=60" name="V1Constr" />
</connectionStrings>