User Instance of SqlLocalDb

后端 未结 2 1912
挽巷
挽巷 2020-12-30 23:09

I am getting this Exception When I am trying to access database from C#.

My Connection String is

Data Source=(localdb)\\v11.0;integrated security=tr         


        
2条回答
  •  长情又很酷
    2020-12-30 23:38

    Just to add some more information. If some how this doesn't work for you and it still complains that its not able to locate server. You will be required to set following two attributes on your application pool identity in applicationHost file

    
                
            
    

    where these two attributes are required to make sure your account can start LocalDB server.

提交回复
热议问题