Install sqllocalDb 2012 fail - CMD doesn't recognize the command sqllocaldb.exe

Question

Monday, January 22, 2018 1:34 PM

I build WinForms Entity FrameWork 6 CodeFirst application in c#. I added Setup project for Installation of my app. The requirement of my application is working off-line so I need to make MSI file includes all dependencies loaded from the same directory. For some reason, some packages as Framework 4.5 86_64 and SqlLocalDB2012, I had to find by myself. So I did and now it does make MSI file, but on some computers my app doesn't work. It gives Network error 50 or 51 or 52. My app cann't reach .mdf DB file (EF should create it- Code First). May be this issue related to user access that causes for Installation of SQL EXPRESS localDb to fail? I found that framework 4.7 installed good. But sqllocalDb.exe fall. Even when I run install sqllocaldb msi (x64) it does complete installation with success msg. But I can't run it from cmd- it doesn't recognize the command sqllocaldb.exe

Thanks

All replies (2)

Tuesday, January 23, 2018 7:13 AM

Hi Elisha.net,

Thank you posting in MSDN forum.

This forum is discussing Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

Based on your description, your problem is more related to SQL, I will move this thread to corresponding forum for a professional answer.

Thanks for your understanding.

Regards,

Judyzh

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


Tuesday, January 23, 2018 7:59 AM

Hi Elisha.net,

SqlLocalDB can be found in C:\Program Files\Microsoft SQL Server\120\Tools\Binn, please check if SqlLocalDB.exe exists in this folder.

If it exists, please try to use "cd" command in CMD and then use SqlLocalDB.exe in this dictionary.

If it works, this is a problem related to environment variable, did you use an Administrator account to install it? Please check the Windows Event Log.

Best Regards,

Teige

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.