asp.net waiting for localhost forever

前端 未结 8 2342
既然无缘
既然无缘 2020-12-17 09:27

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

相关标签:
8条回答
  • 2020-12-17 10:25

    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 (^_^).

    0 讨论(0)
  • 2020-12-17 10:30

    Restarting the IIS may work as it will end the current instance and run your web page in a new instance.

    0 讨论(0)
提交回复
热议问题