Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

How to fix .NET Framework install errors that ask for tmpXXXX.tmp

How to fix .NET Framework install errors that ask for tmpXXXX.tmp

Rate This
  • Comments 23

I have heard from several customers who have had problems trying to repair the .NET Framework or install a .NET Framework service pack and saw an error dialog asking for the source location for tmpXXXX.tmp.  I wanted to try to explain why this can happen and also describe a way that I normally recommend to fix this issue.

Why does this happen?

The .NET Framework hotfix setup wrapper creates patch files on the fly in the %temp% directory that are named tmpXXXX.tmp (where XXXX is a randomly generated ending), and then deletes the file after applying the patch.  When attempting to install any .NET Framework hotfix or repair the .NET Framework, Windows Installer will perform a component health check.  If any of the components installed as part of the patch have been damaged/deleted, Windows Installer will trigger a repair and search for the files in the original install location.  In this case, the original install location does not exist because it was deleted from %temp%.

How can I workaround this?

I posted a complete set of steps that you can use to clean up your system and reinstall the .NET Framework at http://blogs.msdn.com/b/astebner/archive/2008/03/07/8108332.aspx. 

<update date="5/6/2011"> Removing the old instructions in this post and pointing to updated steps. </update>


  • Hey are we related??? I am Kassandra Stebner. Is your family lineage Russian?
  • It is possible that we're related. I think part of my family history traces back to Russia though I'm not 100% sure. My family in the USA is all from Michigan.

  • I have a problem, which I hope can be solved through the use of this utility.

    Here's a little background. Several years ago, I modified the net.msi file in that I basically prevented User interaction via the interface by turning off the SetupCompleteSuccess dialog (0 condition).

    We initially did this for 1.0 then the 1.1 upgrade. Everything appeared fine, but we've recently run into a problem.

    Someone was installing some third party software, which attempts to install Dotnetfx.exe v 1.1 and we get a 1316 error. It can’t find a tmp or certain file. I believe it indicates a network error.

    I was hoping I could use this utility to clean this up, then reinstall 1.1.

    I believe I saw mention of having to reinstall other service packs if they were present. So, I should plan on installing 1.1 SP 1 as part of this process as well.

    I’m hoping I could fire this sequence off and have it run without too much user interaction with the utility itself. I won’t mess with the interface of 1.1 and the Service Pack again.

    Any information, tips would be GREATLY appreciated.

    Thanks Much

  • Hi Matt - I'm not sure why you would be seeing 1316 errors in that scenario, that means "A network error occurred while attempting to read from the file: [2]"

    If you are trying to clean up in order to reinstall .NET Framework 1.1, you should be able to uninstall just the main .NET Framework 1.1 package and that should remove any service packs you have installed on your machine automatically. For .NET 1.1 you can run msiexec /x {CB2F7EDD-9D1F-43C1-90FC-4F52EAE172A1} /qb! to run an unattended uninstall that doesn't require or allow any user interaction.

    Then you can run the following to reinstall the .NET Framework 1.1 in unattended mode:

    dotnetfx.exe /q:a /c:"install.exe /qb /l"

    Can you try that out and let me know if it works for you?
  • This is my first time doing such a thing, so I hope I did this correctly. I have the problem when trying to install the net framework sp1 after uninstalling net framework(MSFT told me to do so if unable to download the newest update). I do not have msizap.exe and cannot get it unless I download a skd (sp?) so I was unable to use the MSFT command line to zap as my PC did not recognize msizap. I have just stumbled on your clean up tool and almost cried with joy. I have win xp home with sp2. Can I use this tool safely on my PC? Shall I use the installer to remove the net framework first and then run the tool or just run the tool. I have installed'uninstalled/reinstalled so many times I can'st stand it. Can I just double click on the exe clean up or do I have to type in a cmd?
  • Hi Old Bob - you can definitely use this cleanup tool on your XP Home SP2 machine. This is the same tool our customer support team uses when they get calls about the .NET Framework not working correctly. The tool will attempt to use the normal uninstall method first and then do some manual removal steps, so you don't need to run the uninstall yourself beforehand.

    Hope this helps. Please contact me at http://blogs.msdn.com/astebner/contact.aspx if you run into any issues.

  • Thank you for your reply. In the explanation of the utility on 9-15-05, you mentioned that it does not automatically use the msizap and you have to download it--runt the msizap command and rerun your utility. Have you found out why and added this automatic feature? I do not have that utility either and do not really understand all about the re-direction that Microsoft sends you to in order to get this utility so I opted not to download the SDK (?) package. If I set a restore point, and something goes wrong running the utility, can I just restore to that point? I have never used system restore but I am sure I can figure it out unless your utility erases the restore points. I am unable to export my registry and I think maybe when I defragg it could not defrag c: doc and sett\name\application data\microsoft\clr config. I really do not know what that is but I left it alone. Every time I uninstall the net framework and reinstall it, I have to again reinstall my HP printer or it will not work. Forgive me for rambling, but I have been at this for 2 weeks and very hesitant as all works now, but I cannot install the sp1 or the new 903 update for the netframework. Is there any harm in just never updating netframework? I do need it for my print shop program and the re-install of the HP printer will installs it 1.1 version upon re-installing (think it looks and sees if I have it and leaves it alone if I do but installs if I do not. Your opinion is much appreciated.
  • Hi Old Bob - The cleanup tool does attempt to run msizap already, but in some cases, it will fail to run if this tmpXXXX.tmp error dialog appears first. You can use the 5 steps listed at the top of this blog post to workaround that failure. Those steps will remove .NET Framework 1.1 and walk you through reinstalling .NET Framework 1.1 and then installing .NET Framework 1.1 SP1. After doing that you'll be able to install KB886903 also.

    I would not recommend not updating the .NET Framework 1.1 because there have been some security fixes in 1.1 SP1 and in KB886903.

    If you cannot get the steps listed above to work, please contact me at http://blogs.msdn.com/astebner/contact.aspx and I can try to help further.

  • Thank You Aaron!! What a wonderful thing to have someone stick with you to resolve an issue. If you have NetFramework issues try this fix and you too I bet will be pleasantly surprised.
    Old Bob
  • Thank you so much for this tool.
  • Where'd the tool go?
  • Hi Frog - Currently, the server I use to host all of the tools that I have posted for download is down for maintenance, and it unfortunately has been down for a couple of days now.  Please contact me using http://blogs.msdn.com/astebner/contact.aspx and I will send you a copy of the tool via email as a workaround.
  • PingBack from http://jtango.wordpress.com/2008/10/29/installing-net-35-beta-2-%e2%80%93-fatal-error-1603-1714/

  • PingBack from http://jtango.wordpress.com/2007/08/28/installing-net-35-beta-2-%e2%80%93-fatal-error-1603-1714/

  • Hello Sir,

    I was trying to install .Net framework 3.0 but was getting errors. After wasting lots of time on various possible solutions, I came across your blog and then tried to uninstall all installed versions of .Net framework. But .NET Framework cleanup tool didn't uninstall any version. I'm using Windows Server 2003 SP2. What am I doing wrong?

Page 1 of 2 (23 items) 12
Leave a Comment
  • Please add 5 and 2 and type the answer here:
  • Post