Suddenly this morning I turned on my computer and launched visual studio... And no matter what I tried and whether I run or debug, and whatever the browser is ( chrome / fir
I had received a project where the webconfig had port number mentioned along with the server like this.
sqlConnectionString="Data Source=<<SQLInstanceName>>\SQLEXPRESS,<<Port>>;Initial Catalog=<<DBName>>;Integrated Security=false;User Id=<<UserName>>;PWD=<<Password>>;"
After removing the port number from connection string, the error message disappeared and code began to work.
sqlConnectionString="Data Source=<<SQLInstanceName>>\SQLEXPRESS;Initial Catalog=<<DBName>>;Integrated Security=false;User Id=<<UserName>>;PWD=<<Password>>;"
I am relative new to ASP.net. Dont know if this is going to cause problem elsewhere (^_^).
Restarting the IIS may work as it will end the current instance and run your web page in a new instance.