I have more than one Connection String in Web.Config file one of them related to DNNDB and The Other One Related to My ApplicationDB.
Ex.
<connectionStrings>
<add name="SiteSqlServer" connectionString="Data Source=AHMED-PC\MSSQLSERVERR2;Initial Catalog=DNNDB;User ID=sa;Password=123" providerName="System.Data.SqlClient"/>
<add name="SiteSqlServer2" connectionString="Data Source=AHMED-PC\MSSQLSERVER2012;Initial Catalog=ApplicationDB;User ID=sa;Password=123" providerName="System.Data.SqlClient"/>
</connectionStrings>
<appSettings>
<add key="SiteSqlServer" value="Data Source=AHMED-PC\MSSQLSERVERR2;Initial Catalog=DNNDB;User ID=sa;Password=123"/>
<add key="SiteSqlServer2" value="Data Source=AHMED-PC\MSSQLSERVER2012;Initial Catalog=ApplicationDB;User ID=sa;Password=123"/>
</appSettings>
I would like to show Custom Error Message when ApplicationDB Connection Failed.
The Issue Appears When There is An Error in ApplicationDB Connection .. There is no any clear error message .. It is only show the default browser error message "The page isn't redirecting properly"
Note : There is no any problem related the default connection string that related to DNNDB