VCRUNTIME140.dll Error

Been doing a little digging and the VCRUNTIME140.DLL error seems to be an exception error rather than the classic bad/missing DLL problem that has been around forever.
I have not encountered the error so can’t test the solutions I have been playing with. So if your system is crashing with a VCRUNTIME error try the following. Please report back if you try it.

Solution 1

Controlled Folder Access is a security function in the Virus & Threat Protection tool of Windows Security. It blocks untrusted applications from modifying certain files and documents. This feature may be blocking MSFS from accessing some folders. This could be the reason you’re seeing the Exception Violation error. Follow the steps below to turn off the feature.

Disable Controlled Folder Access
  1. Launch the Settings application. You can do this via the Start menu or by pressing Windows + I.
  2. After the home screen of the app shows up, go to the bottom and click on the Update & Security icon.
  3. Once the Update & Security interface opens, switch to the left pane and click on Windows Security.
  4. Under the Windows Security tab, you’ll see different options under Protection Areas; locate Virus & Threat Protection and click on it.
  5. The Virus & Threat Protection page of the Windows Security app will now appear.
  6. Now, scroll down to the Ransomware Protection section and click on the “Manage ransomware protection” link.
  7. Toggle off the switch under “Controlled folder access.”
  8. You can now run the game and check if the error appears.

Solution 2

If you have onboard video as well as your GPU card, make sure windows isn’t trying to communicate with the onboard video. Most MB BIOS will allow you to disable the onboard but if you are uncomfortable playing with the BIOS or yours does not have that option, try the following.

If you got MSFS from Steam then getting to the FlightSimulator.EXE folder is a fairly simple thing. If you got yours through the Microsoft Store it is a bit tricky as it is in the WindowsApps folder which is hidden and access is restricted using ownership rules.
I caution users not 100% comfortable with deep diving into the system. Get someone that knows what they are doing to help you.
For those with the savvy, you know what to do. If not, don’t do it.

Using the NVIDIA Control Panel
  1. Navigate to the far right of your taskbar (where your time display is located), click on the “Show hidden icons” arrow to expand the System Tray, then click on the NVIDIA icon and choose NVIDIA Control Panel. You can also right-click on the empty surface of your Desktop and click on NVIDIA Control Panel in the context menu.
  2. After the application shows up, switch to the left pane, click on the plus (+) sign beside the 3D Settings drop-down, and then click on Manage 3D Settings.
  3. Move over to the right pane of the window.
  4. Stay under the Global Settings tab and click on the “High performance NVIDIA processor” option under Preferred Graphics Processor.
  5. Head over to the Program Settings tab.
  6. Click on the Add button beside the Select a Program to Customize drop-down.
  7. Find your way to the game’s folder in the dialog that comes up, then double-click the EXE file.
  8. Next, navigate to the “Select the preferred graphics processor for this program” drop-down menu and click on “High-performance NVIDIA processor.”
  9. Click on the Apply button and relaunch MSFS to check if the issue persists.
Using AMD Radeon Settings
  1. Go to the Start menu, search for AMD Radeon Settings and launch the program. You can also right-click on your Desktop and select AMD Radeon Settings from the context menu.
  2. After the application shows up, go to the top-right corner of the window and click on System.
  3. Navigate to the top-left corner of the next screen and click on the Switchable Graphics option.
  4. The Running Applications view will now appear. Locate MSFS here and change its Switchable Graphics mode to High Performance.
  5. If MSFS doesn’t show up in the Running Applications view, head to the top-left corner of the window and click on Running Applications, then click on Browse.
  6. Navigate to the installation folder of MSFS and select the game’s EXE file.
  7. Now, change Switchable Graphics mode for the game to High Performance once it shows up in the window.
Using the Settings App

You can also make the necessary changes in the Settings application. The following steps will show you what to do:

  1. Launch the Settings application. You can do this via the Start menu or by pressing Windows + I.
  2. Click on the System label after the home screen of Settings shows up.
  3. After the System interface opens, scroll down to the bottom of the Display tab and click on the Graphics Settings option.
  4. Once the Graphics Settings screen appears, click on the Browse button under the “Choose an app to set preference” drop-down menu.
  5. In the Open dialog that shows, navigate to the installation folder of MSFS, go to the game’s EXE file and select it, and then click on the Add button.
  6. Now, back at the Graphics Settings screen, select MSFS, then click on the Options button.
  7. Once the Graphics Specifications dialog shows up, click the radio button for High Performance, and then click Save.
  8. The game will now be forced to run on your dedicated display card whenever you launch it.
3 Likes