Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › Blue Screen

How to Fix MSRPC_STATE_VIOLATION (Bug Check 0x112) and Stop Restart Loops

By Freedom251 Team · · 11 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

MSRPC_STATE_VIOLATION is Windows bug check 0x00000112. It means the Msrpc.sys driver detected an invalid state during an RPC operation and stopped Windows to prevent further kernel damage. The practical fix is to identify the driver, hardware, update, or software change that triggered the violation—not to delete Msrpc.sys. Start with Safe Mode and recent-change checks, then repair Windows files, isolate background software, test memory, and use recovery tools if Windows will not boot.

The stop screen may show “What failed: Msrpc.sys,” but that usually identifies the component that detected the violation, not necessarily the original defective program. The steps below separate ordinary Windows troubleshooting from the deeper RPC-caller diagnosis used by developers.

As an Amazon Associate I earn from qualifying purchases.

What MSRPC_STATE_VIOLATION and 0x112 mean

MSRPC_STATE_VIOLATION is the name Microsoft gives to bug check 0x00000112. The kernel’s Microsoft RPC (remote procedure call) subsystem uses Msrpc.sys. RPC lets Windows components and applications request work from one another, often across process or service boundaries. During those requests, the subsystem maintains strict rules about sessions, binding handles, asynchronous calls, pipes, and cleanup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A 0x112 stop occurs when those state rules are violated. Microsoft’s description says the most common cause is that the caller of the Msrpc.sys driver violated the state semantics for a call. In plain language, a kernel component or other RPC caller performed an operation at the wrong time, on the wrong object, or in the wrong order.

This is a programming and kernel-state error, not a normal application warning. A blue screen can still be triggered indirectly by a third-party driver, recently installed software, faulty hardware, a Windows update conflict, or corruption in protected system files. The stop code alone cannot identify which of those is responsible.

Msrpc.sys is a Windows system component. Do not delete it, rename it, download a replacement from an unofficial site, or disable RPC services as a “fix.” Those actions can prevent Windows services from starting and do not correct the caller that violated RPC state.

There is no dependable published prevalence or repair-success percentage for this bug check. Treat the number on your own stop screen, the timing of the crash, and diagnostic evidence as more useful than claims that 0x112 is common or rare.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Before changing anything: preserve evidence and protect your files

If Windows still starts, back up documents and other irreplaceable files before experimenting with drivers, system restore, or reset options. If the machine is repeatedly restarting, use Safe Mode or Windows Recovery Environment to copy files to another drive before attempting a reset.

  1. Write down the exact stop code. Record 0x00000112, the displayed text, and any “What failed” module. Photograph the screen if the restart happens too quickly.
  2. Record the timeline. Note the last driver, Windows update, hardware device, security product, utility, or application installed before the first crash. Include whether the failure occurs during startup, shutdown, sleep/wake, gaming, printing, networking, or another repeatable activity.
  3. Do not repeatedly force-reset a running system. Forced shutdowns can add file-system corruption and erase useful crash evidence. If a loop leaves you no other choice, use the power button only long enough to reach the recovery screen.

Stop a restart loop and reach Safe Mode

Safe Mode loads Windows with a limited set of drivers and services. If the blue screens stop there, a normal-startup driver, service, or startup application becomes more likely than a basic Windows boot component.

When Windows reaches the sign-in screen

  1. Hold Shift while selecting Power > Restart.
  2. Choose Troubleshoot > Advanced options > Startup Settings > Restart.
  3. After the next restart, press 4 or F4 for Safe Mode. Choose 5 or F5 for Safe Mode with Networking only if you need network access for a specific diagnostic task.

When Windows never reaches sign-in

Interrupt startup by turning the computer off as soon as Windows begins loading. Repeat this failed-start sequence until Windows enters the automatic-repair environment, then select Advanced options > Troubleshoot > Advanced options > Startup Settings. If the recovery screen does not appear, use Windows installation or recovery media created for the same Windows edition and choose Repair your computer rather than installing Windows.

Once in Safe Mode, uninstall or roll back the item that was added immediately before the crashes, disconnect newly installed hardware, and restart normally. If Safe Mode also crashes, skip directly to hardware checks, offline repair, or recovery.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Follow this manual repair sequence

1. Remove recently added hardware

Power down and disconnect newly installed USB devices, expansion cards, docks, printers, storage devices, and other peripherals. For an internal component, use the manufacturer’s safe removal procedure and disconnect power first. Boot with only essential hardware attached. If the crash disappears, reconnect devices one at a time and test between changes.

A device can contribute through its driver even when the physical device works in another computer. Keep the device disconnected until its driver and firmware are known to be compatible with your Windows version.

2. Inspect, update, or roll back drivers

  1. Right-click Start and open Device Manager.
  2. Look for yellow warning icons, an unknown device, or a device added at the time the crashes began.
  3. Expand the relevant category, right-click the device, and choose Properties. Review the General status and the Driver tab.
  4. Use Update Driver to install a current driver from Windows Update or the device manufacturer. If the problem began immediately after an update, choose Roll Back Driver when available.
  5. If the device is not needed for testing, choose Uninstall device, restart, and install the correct package from the manufacturer afterward.

Prioritize chipset, storage, graphics, networking, audio, USB, virtualization, and security-filter drivers because they operate close to the kernel. Avoid random driver-download sites. If Device Manager shows no warning, that does not prove every driver is correct; a faulty driver can still load normally and fail only under a particular workload.

3. Install pending Windows updates and check disk space

Open Settings > Windows Update, select Check for updates, install available updates, and restart as requested. Also open Advanced options > Optional updates to review offered driver updates, but install optional drivers selectively when you are investigating a newly introduced problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep adequate free space on the Windows drive. Updates, virtual memory, crash dumps, and repair operations can fail when the system volume is nearly full. Use Settings > System > Storage to identify large files and remove only data you recognize.

4. Repair the Windows image and protected files

System File Checker can replace damaged protected files, while Deployment Image Servicing and Management repairs the component store that SFC relies on. Run both from an elevated Command Prompt, in this order:

  1. Open Start, type Command Prompt, right-click it, and choose Run as administrator.
  2. Enter DISM.exe /Online /Cleanup-image /Restorehealth and press Enter. Let the operation finish; interrupting it can leave the repair incomplete.
  3. When DISM reports completion, enter sfc /scannow and wait until verification reaches 100 percent.
  4. Restart Windows and test the workload that previously caused the blue screen.

These commands address corruption in Windows components and protected files. They cannot fix a third-party RPC caller whose code uses an RPC object in an invalid state. If DISM or SFC reports that it could not complete repairs, restart and run the command again from Safe Mode. Persistent failures point toward servicing corruption, disk problems, or a need for recovery-environment repair.

5. Isolate services and startup programs with a clean boot

A clean boot starts Windows with Microsoft services and essential drivers while suppressing non-Microsoft background software. It is useful when the crash occurs only during normal startup.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Press Windows key + R, type msconfig, and press Enter.
  2. On the Services tab, select Hide all Microsoft services. Do not disable Microsoft services before checking this box.
  3. Select Disable all, then open the Startup tab and choose Open Task Manager.
  4. In Task Manager’s Startup apps list, disable enabled non-Microsoft entries. Close Task Manager.
  5. In System Configuration, select OK and restart.

Use the computer long enough to reproduce the failure. If it remains stable, re-enable services and startup items in small groups, restarting between groups. When one group brings back the crash, enable its members individually to identify the conflict. Remove or update the offending software rather than leaving every service disabled.

After testing, open msconfig, select Normal startup on the General tab, apply the change, and restart. A clean boot is a diagnostic state, not a permanent performance setting.

6. Check Event Viewer for the lead-up to the stop

  1. Press Windows key + R, enter eventvwr.msc, and press Enter.
  2. Open Windows Logs > System.
  3. Look at Critical and Error events immediately before each 0x112 timestamp. Pay attention to storage, display, networking, device-installation, service, and unexpected-shutdown entries.
  4. Record the provider name, event ID, device or service name, and time. Correlate repeated entries across multiple crashes rather than treating one warning as proof.

Event Viewer rarely states “this caused MSRPC_STATE_VIOLATION.” Its value is correlation: a storage reset, driver failure, or service error that consistently precedes the stop narrows the investigation.

7. Test memory when symptoms suggest RAM trouble

Unexplained crashes in different applications, failures that move between workloads, corrupted archives, or boot instability can justify a memory test. Press Windows key + R, enter mdsched.exe, and choose Restart now and check for problems or schedule the test for the next reboot. Windows Memory Diagnostic reports results after startup; you can also review them in Event Viewer under the memory-diagnostic results.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If the test reports errors, power down and follow the computer or motherboard manufacturer’s procedure for reseating or testing memory modules individually. Do not assume a clean basic test proves that memory is healthy under every workload; recurring crashes with a clean result may require longer hardware testing by a qualified technician.

8. Collect and preserve a crash dump

Windows may save small dumps in C:/WindowsMinidump or a larger dump as C:/WindowsMEMORY.DMP, depending on system settings and available disk space. Do not delete these files before copying them. A dump can show the active stack, bug-check parameters, and drivers involved at the time of the stop.

Advanced users and IT professionals can analyze the dump with Microsoft debugging tools. Everyone else can provide the dump, the stop-screen photograph, Event Viewer entries, and the change timeline to qualified Windows support. A dump is more useful when paired with the exact Windows version, hardware model, installed drivers, and steps that reproduce the crash.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to decide which cause is most likely

Use four observations together instead of blaming Msrpc.sys automatically:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Observation What it suggests Next check
Crash began immediately after a driver, hardware, update, or utility change Compatibility or state interaction with the new component Roll back or remove that change, then test in Safe Mode
Crash occurs only during one workload, such as networking, printing, graphics, sleep/wake, or shutdown A specific driver, service, or RPC caller exercised a faulty path Use a clean boot, inspect related Device Manager entries, and compare Event Viewer timestamps
Crash occurs during ordinary startup and also in several applications System corruption, hardware instability, or a low-level driver Run DISM and SFC, test memory, inspect storage and chipset drivers, and preserve a dump
Safe Mode is stable but normal boot is not A nonessential driver, service, or startup program Perform the clean-boot group test
Safe Mode also crashes Essential driver, hardware, file-system corruption, or severe Windows damage Disconnect hardware, run offline recovery diagnostics, and use WinRE if necessary
One device or service error repeats immediately before every stop A stronger correlation than the generic stop-screen module name Update, roll back, or remove that device or service and retest

The 0x112 parameter values can provide a further distinction for developers, but they are not a consumer repair code. Save all four bug-check parameters from the stop screen or dump rather than interpreting only the first value.

When Windows will not boot: use Windows Recovery Environment

Windows Recovery Environment (WinRE) becomes available after repeated failed starts or from compatible installation media. Select Troubleshoot > Advanced options and choose the least destructive option that addresses the evidence:

  • Startup Repair can address boot configuration and startup problems.
  • System Restore can return system files and settings to an earlier restore point when one exists.
  • Uninstall Updates can remove a recently installed quality or feature update when timing strongly implicates it.
  • Command Prompt allows offline repair work for advanced users; drive letters can differ from normal Windows, so verify the Windows volume before running commands.
  • Reset this PC is a last-resort recovery choice. Choose whether to keep personal files only after backing up, because applications and settings are removed and some recovery paths can cause data loss.

If BitLocker is enabled, WinRE may request the recovery key. Keep the key available before changing recovery settings. If the disk is failing, prioritize file recovery over repeated repair attempts.

What the 0x112 parameters mean to developers and IT teams

Microsoft’s bug-check reference is primarily written for programmers. Parameter 1 identifies the category of violated RPC state, and parameter 2 identifies the relevant object or internal value. Categories described by Microsoft include ALPC results, RPC sessions, binding handles, asynchronous calls, pipes, and internal RPC ordering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Examples of programmer mistakes include unloading the RPC subsystem while open binding handles remain, binding a handle twice, operating on an unbound handle, changing security or options after binding, cancelling an asynchronous call in an invalid state, and using pipes in the wrong sequence. The exact interpretation depends on the parameter combination and the dump context.

A practical developer investigation

  1. Capture the complete bug-check parameters and a kernel or complete memory dump.
  2. Identify the RPC caller on the failing stack, not merely the Msrpc.sys frame.
  3. Audit binding-handle lifetime: creation, configuration, use, cancellation, and release.
  4. Check that asynchronous calls and pipe reads or writes follow the documented order and that cancellation cannot race cleanup.
  5. Verify that service shutdown and module unload wait for outstanding RPC activity before releasing objects.
  6. Reproduce under the workload named by the dump and add instrumentation around state transitions.

Consumers should not modify registry settings or unload Windows RPC components based on these programming details. Give the dump and parameter values to the software or driver vendor, or to a qualified crash-analysis professional.

Common mistakes to avoid

  • Deleting or replacing Msrpc.sys: the file is the detector of the invalid state, not a disposable cache file.
  • Installing several driver packages at once: this destroys the timeline that helps identify the triggering change.
  • Disabling every Windows service permanently: that can create new failures and hides the original conflict.
  • Running repair commands without elevation or without waiting: incomplete DISM or SFC runs provide no reliable conclusion.
  • Assuming antivirus removal is the answer: security and filter drivers can be involved, but remove or change one product only when timing and clean-boot evidence support it.
  • Resetting before backing up: recovery options vary in their effect on applications, settings, and files.
  • Calling the stop-screen module the culprit: Msrpc.sys may be where Windows detected a violation caused by another component.

As an optional shortcut after trying the manual steps, Outbyte PC Repair can address more than 100 common Windows issues where possible, including broken system elements and shared DLL problems, and can adjust settings, clean temporary and cache files, check selected Windows vulnerabilities, and record app crashes. It runs on Windows 11, 10, 8, and 7; its free trial lasts at least two days before a paid subscription. It complements antivirus software rather than replacing it, results vary, and no tool repairs every crash.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Blue Screenbug check 0x112DISMMSRPC_STATE_VIOLATIONMsrpc.sysSafe ModeSFCWindowsWindows Recovery Environment

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.