Windows Server 2008 R2 SP1 problem: mmc has detected an error in a snap-in and will unload it.

I have 2 servers with Windows Server 2008 Standard R2 SP1 and, after installing Microsoft updates, I started to get the error described in the title of this message. Such a problem occurs when trying to run Event Viewer and Server Manager. I searched in Google and found this link (http://blogs.technet.com/b/askperf/archive/2012/08/10/mmc-has-detected-an-error-in-a-snap-in-and-will-unload-it.aspx ) but it did not fix my situation. I have not found any other real answer to this issue. I am attaching an image of the error of one of the servers for your review, I would like to work for a solution for one server first and consider the other one separately in case the solution does not solve the second one because it seems that the Microsoft updates that caused this problem are not the same in both servers.

Respectfully,
Jorge Maldonado
Screen.jpg
Jorge MaldonadoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

becraigCommented:
Can you try reinstalling the .net framework on the computer in question:

    Open Server Manager.
    Right click Features and select Add Features
    Expand .Net Framework 3.5.1 Features
    Select the check box next to the .NET Framework 3.5.1
    Click on Install.

Or simply download and remove - reinstall the .net framework:
Simply uninstall from Add Remove programs then either - add the feature or download and reinstall the version by downloading the package online.

http://www.microsoft.com/en-us/download/details.aspx?id=30653
0
Jorge MaldonadoAuthor Commented:
I cannot run Server Manager because I get the error that I mention in this thread. After closing the error window no options are available in Server Manager so the first of your choices does not apply.

Also, .NET Framework is not shown as part of the installed programs in the "Programs and Features" section of Windows Server 2008 so I cannot uninstall it. Is there any other way to uninstall it?

It seems that there are several versions of .NET Framework installed. I am attaching an image that shows the structure for the c:\Windows\Microsoft.NET folder.
NETFramework.jpg
0
becraigCommented:
Ok so 3.5 is your latest installed version:

http://www.microsoft.com/en-us/download/details.aspx?id=25150

The link above should give you the path to the full download for your OS.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Jorge MaldonadoAuthor Commented:
So, should I download .NET Framework 3.5 and install it?
What about removing it first as you suggest above?
0
Jorge MaldonadoAuthor Commented:
I tried to repair from command line following the instructions in the link you provided. After running the command "DISM /online /disable-feature /FeatureName:NetFx3" I was asked to reboot the machine which I did. Now, I guess things got worse because the server does not start Windows Server 2008. When the server runs it shows a "System Recovery Options" window where I select a keyboard input method which is US for default. Then, I click "Next" and another windows appears asking for the password of the local administrator. I type this information and click "OK" and one more window appears letting me select a recovery tool as follows:

1. System Image Recovery
2. Windows Memory Diagnostic
3. Command Prompt

For option 1 I need a system image created earlier which I do not have.
I already ran option 2 but this is not definitely the problem.
For option 3, I tried to run the command "DISM /online /enable-feature /FeatureName:NetFx3"and I get a message with "Error: 50    DISM does not support servicing Windows PE with the /Online option."

Actually, the server I am working on is not providing any service in our network, I have been only testing it because this is the third time I ran into the problem of "mmc has detected an error in a snap-in and will unload it" with other servers and I really want to know the reason of this issue.
0
becraigCommented:
Ok this sounds like something else was wrong with your OS install as disabling .net should not cause your computer to fail to boot.

Reboot and do not select repair windows and see if your OS allows you to boot.
0
Jorge MaldonadoAuthor Commented:
I keep getting the same "System Recovery Options" window.
0
becraigCommented:
This sounds like an OS issue, when you get your hands on the install media, follow the steps from Microsoft at the link below:
http://support.microsoft.com/kb/927392


This should fix whatever in your boot loader is screwed up, once the server is back up I suggest upgrading to the latest .net that should resolve your .net issues.
0
Jorge MaldonadoAuthor Commented:
The information in the link does not talk about Windows Server 2008, is this OK? Also, does these steps apply if the server is a domain controller?
0
becraigCommented:
Yes it will work steps:

   Boot up with the Server 2008 R2 installation disc
   Select a language, time, currency, and a keyboard or another input method. Then click Next.
  Click Repair your computer.
  Click the operating system that you want to repair, and then click Next.
  In the System Recovery Options dialog box, click Command Prompt.
 Type Bootrec /RebuildBcd, and then press ENTER
0
Jorge MaldonadoAuthor Commented:
I just did what you recommend. After typing "Bootrec /RebuildBcd" I get the following message:

Successfully scanned Windows installations.
Total identified Windows installations: 0
The operation completed successfully.

According to the above message, no Windows installation is detected (I guess). However, when I boot the server with the OS DVD, a window appears showing information about the OS name and partition size.
After running the "Bootrec" command I restart the server and the Windows Recovery Options windows appears again.

Do you think that the Windows installation has been damaged and I need to start from scratch with a fresh installation?
0
becraigCommented:
Here is a list of steps to walk through bcd repair

http://pcsupport.about.com/od/fixtheproblem/ht/rebuild-bcd-store-windows.htm
0
Jorge MaldonadoAuthor Commented:
I followed the steps but the result was not successful although the output of each issued command was as described. Now, when the server boots, a text screen is shown as follows:

--------------------------------------------------------------------------------------------------------------------------------------------
Windows Error Recovery
Windows failed to start. A recent hardware or software change might be the cause. To fix the problem:
1. Insert your Windows installation disk and restart your computer.
2. Choose your language settings, and then click "Next".
3. Click "Repair your computer".

Other options:
If power was interrupted during startup, choose to start Windows normally.

Safe Mode
Safe Mode with Networking
Safe Mode with Command Prompt
Start Windows Normally
--------------------------------------------------------------------------------------------------------------------------------------------

I tried "Safe Mode" and "Start Windows Normally" and I am taken to the same screen again and again.
0
becraigCommented:
It really sounds hosed, I am sure it is recoverable but is there anything you would lose to do a clean install ?

I am quite sure there would be no repro of this issues on a reinstall however.
0
Jorge MaldonadoAuthor Commented:
The server has nothing I can lose, I am using only it to solve the issue because I've had this same problem 4 times. What I mean is that I have installed Windows Server 2008 R2 SP1 4 times in 2 identical servers and, at some point after downloading and installing Microsoft updates, I get this issue. My goal is to avoid the error and be sure I can download and install updates without problem. One solution I thought is to avoid .NET Framework updates but this should not be the case. That being said, surely "Windows Updates" is the cause of the error. I will very much appreciate your comments.
0
becraigCommented:
I think you should simply look at moving to the latest .net framework once you install 4.5 might heal all that ails you  :~)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jorge MaldonadoAuthor Commented:
Windows Server 2008 R2 SP1 installation installs a version (or more than one) of .NET Framework because I have not done it myself. If this is so then Windows Update will try to download updates. Am I correct?
0
becraigCommented:
Yes MS also installs the .net rollups (up to 3.5)
It will also apply any patches that have been released.

That is why I suggest the .net 4.5 to move past any potential issues with earlier versions.
0
Jorge MaldonadoAuthor Commented:
So I should install .NET 4.5 manually but what about the updates to earlier versions? Those are the cause of the problem. If such updates are installed I will find myself with the same problem again even if I install .NET 4.5. Or at least this is what I think that is going to happen.
0
becraigCommented:
If you have the latest version of .net - most applications will leverage the latest version (also some updates will not be required as installing 4.5 will plug the holes those updates usually patch)
0
Jorge MaldonadoAuthor Commented:
Understood, I will perform a new Windows Server installation and also consider .NET Framework 4.5.
0
Ratnesh MishraCommented:
Let me first ask have you tried this : http://sangnak.com/crashing-server-manager-and-event-viewer-on-launch/

Next , as you mentioned after windows update you started facing issue of mmc crash.
Most impotently , if it was an issue of .NET framework , you will also face issue with "power shell" crash as well and it would crash all mmc not just server manager or event viewer.  Confusing , I know but please check what happen if you simply run "mmc" in run . And whats the output of loading any other snap-in other than event viewer . This will lead to another step of troubleshooting.
0
Jorge MaldonadoAuthor Commented:
I performed a new Windows Server installation. After that, I downloaded and installed .NET Framework 4.5. Now I am testing installing updates to see if the issue happens again. I will close this question as soon as I confirm that everything is working correctly.
0
becraigCommented:
Sounds good, hope that resolves the issue.
0
Jorge MaldonadoAuthor Commented:
It seems this solution has fixed my problem. However, I will continue downloading and testing Microsoft updates because (sometimes) this issue has appeared 2 or 3 months after a new Windows Server 2008 installation.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.