error occurred while establishing a connection to SQL Server

前端 未结 8 1297
谎友^
谎友^ 2020-12-18 21:35

If I have my connection string in the web.config like this (added line feeds for better readability):



        
8条回答
  •  臣服心动
    2020-12-18 22:08

    Instead of using (localdb), have you tried using '.\SQLExpress;' per this page on MSDN? It uses the default instance, which may not be what you need.

    it would read like so:

    
    

提交回复
热议问题