Error 0xc000007b when launching mongod.exe / mongo.exe

2

Installed mongodb on Windows.

Mongodb: 3.4.3 - Windows Server 2008 R2 64-bit, with SSL support x64

OS: Windows 7 64-bit

When I run mongod.exe or mongo.exe this error occurs

The application was unable to start correctly (0xc000007b). Click OK to close the application

What can I do to get rid of this error? Thanks to everyone who helped.

windows
mongodb
asked on Stack Overflow Apr 18, 2017 by Emil

5 Answers

2

I got rid of this error by updating Visual C++ Redistributable. But note that before this i also updated my Net Framework, DirectX and drivers for video-card.

answered on Stack Overflow Jul 5, 2017 by Emil
0
  1. Go to my Computer
  2. Properties (Under windows edition check if service pack 1 is listed)
  3. If not, make sure you have following windows updates installed on your system:

KB958488 (dot NET Framework) (<=10mb) (msu file)

KB2533552 (a prerequisite for service pack 1) (<=10mb) (msu file)

KB976932 (service pack 1) (around 900 mb) (exe file)

KB2999226 (Visual C++) (<=2mb) (msu file)

  1. Add your mongo db bin directory to Path (Environment variable):

Example >>> C:\Program Files\MongoDB\Server\3.4\bin

Go to control panel → system and security → system → advanced system settings → advanced → environment variable → system variables → Path

  1. Restart your system
  2. Create a file C:\data\db
  3. then run cmd
  4. change directory to mongodb bin
  5. run mongod

Enjoy....

answered on Stack Overflow Jun 28, 2017 by Anurag Tiwari • edited Jun 29, 2017 by tinamou
0

I was facing the same issue with mongodb 3.6.5 version on my windows 7. I tried updating .net and vc++, nothing worked. Then I downloaded and installed an older version of mongodb, version 3.2 and it worked!

answered on Stack Overflow May 27, 2018 by Aftab Quraishi
0

I have the issue while running mongod (Error 0xc000007b when launching mongod.exe / mongo.exe).

I solve the problem by using these following steps

1 step:uninstall the latest version of mongodb currently (4.2).

2 step: install mongodb version(3.0.15) don't worry its running all the feature that given by 4.2.

3 step:install the mongodb 3.0.15 in installing it gives the option (complete ,custom and other) you select the complete option and install.

4 step: Go to the program file check the mongodb folder inside the mongodb folder go to bin and run the mongod application .On this time the error will gone..

answered on Stack Overflow Sep 19, 2019 by Narendra Maurya • edited Sep 19, 2019 by Narendra Maurya
0

I solved this error by installing all the Microsoft Visual C++ re distribute files . i.e. all the versions . You need correct version to run mongo 2013 and 15 didnt work but 2019 did .

answered on Stack Overflow Oct 16, 2019 by PiyushD

User contributions licensed under CC BY-SA 3.0