User Instance of SqlLocalDb

烂漫一生 提交于 2019-11-30 08:11:08

LocalDB instances are all "User Instances", and there's no need to specify User Instance=true in your connection string, in fact it is not even supported (as you can see). Just remove this part and it's going to work fine.

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

<add name="DefaultAppPool">
            <processModel identityType="NetworkService" loadUserProfile="true" setProfileEnvironment="true" />
        </add>

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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!