SharePoint 2013 Troubleshooting: Unable to install "WindowsServerAppFabricSetup_x64" and "setup stopped working

When trying to install SharePoint 2013 for a project, all the prerequisites are installed except ”WindowsServerAppFabricSetup_x64” in Windows Server 2008 R2. When trying to install it many ways, it throws the error “setup stopped working” and the below events in Logs, Evntwr. After digging into this, a resolution was found. So it is being shared with the SharePoint Community.

Event in Event viewer:
· Log Name: Application
· Source: Windows Error Reporting
· Event ID: 1001
· Task Category: None
· Level: Information
· Keywords: Classic
· User: N/A
· Description:
· Fault bucket , type 0
· Event Name: CLR20r3
· Response: Not available
· Cab Id: 0
· Problem signature:
· P1: setup.exe
· P2: 1.0.0.0
· P3: 4ed52225
· P4: mscorlib
· P5: 2.0.0.0
· P6: 4d4f0b67
· P7: 3664
· P8: 10
· P9: System.ArgumentNullException
· P10:

Log in Path:
· C:\Users\anil.avula\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_setup.exe_5dce9e2312d9248021fabf2c5992e1e633fd422_079851b8
· version=1
· EventType=CLR20r3
· EventTime=130283531663814131
· ReportType=2
· Consent=1
· ReportIdentifier=c691d773-4821-11e3-97e7-005056010ccb
· Response.type=4
· Sig[0].Name=Problem Signature 01
· Sig[0].Value=setup.exe
· Sig[1].Name=Problem Signature 02
· Sig[1].Value=1.0.0.0
· Sig[2].Name=Problem Signature 03
· Sig[2].Value=4ed52225
· Sig[3].Name=Problem Signature 04
· Sig[3].Value=mscorlib
· Sig[4].Name=Problem Signature 05
· Sig[4].Value=2.0.0.0
· Sig[5].Name=Problem Signature 06
· Sig[5].Value=4d4f0b67
· Sig[6].Name=Problem Signature 07
· Sig[6].Value=34f3
· Sig[7].Name=Problem Signature 08
· Sig[7].Value=e
· Sig[8].Name=Problem Signature 09
· Sig[8].Value=System.ArgumentNullException

Work Around: Please follow the steps below to remediate the issue.

The workaround that made AppFabric setup succeed on my machine was to define the TEMP user environment variable. Follow the screens below to make it possible.

Right-click My Computer > Properties.

                               http://3.bp.blogspot.com/-0v3oIuEZNRE/UnyM4y5wyRI/AAAAAAAAAkA/ct6GyJtmDoI/s320/60.bmp

Click on Advanced System Settings > Environment Variables.

                            http://4.bp.blogspot.com/-IqHSXCeGTno/UnyM4l2cdOI/AAAAAAAAAj8/ogvVi73W2kI/s320/61.bmp

In Environment variables, click New under User variables.
                                            
                                        http://1.bp.blogspot.com/-eKpitQXIfTk/UnyRmfzrlUI/AAAAAAAAAkQ/uYrtrXLEF8E/s320/64.bmp

Enter the Variable name as TEMP and the Variable value as pointing to a valid directory on your file system (give the whole path of the TEMP Directory).
                   
                                          http://4.bp.blogspot.com/-moRBZ1e7QFo/UnyM5rQJz0I/AAAAAAAAAkI/BmNjRs_zVH0/s320/63.bmp

Click OK.

Run App Fabric again and this time it should work.

Note: The Path should not be too long and it should be a new Path.
Note: If you find a different solution, please report it as a comment to this post.This will be useful to the SharePoint Community. Be sure to double-verify it: undo your solution and verify that the problem comes back, then redo it and verify that the problem goes away.

See Also

  1. SharePoint Resources on the TechNet Wiki
  2. SharePoint 2013 Portal
  3. SharePoint 2013 - Service Applications
  4. SharePoint 2013 - Resources for Developers
  5. SharePoint 2013 - Resources for IT Pros