Missing .NET framework installing a VSTO application

I have been getting the error “The required version of the .NET Framework is not installed on this computer.” (event id 4096 in Event log) when trying to install a VSTO application from both a ClickOnce deployment and a local copy. This is interesting as the .NET framework is installed (on my 64bit Windows 7 PC) and the VSTO application was developed on the self same machine (and works in Visual Studio 2008).

The fix, it turned out, was to uninstall Microsoft Visual Studio Tools for the Microsoft Office system (version 3.0 Runtime) (x86) and then reinstall it, once this was done the install worked fine.

Update 17th  Feb 09 A good list of what should be installed can be found at http://blogs.msdn.com/vsto/archive/2008/02/19/deploying-prerequisites-for-your-visual-studio-tools-for-office-solution.aspx. However here does seem to be an install issue over order and leaving incorrect development resource so a look at the diagnostic tools in http://www.microsoft.com/downloads/details.aspx?familyid=46b6bf86-e35d-4870-b214-4d7b72b02bf9&displaylang=en would not go amis. This should be an easy process when using VS2008SP1, but it does seem problematic.

 

4 Replies to “Missing .NET framework installing a VSTO application”

  1. Yes Martin is correct, it does not seem to be a complete solution. On a test VPC I have seen the same problem and a reinstall had no effect. If I find a full solution I will post about it

  2. From my experience it seems that the SP1 causes the problem – if I reinstall the VSTO 3.0 Runtime wtihout the SP1 and manually (by double clicking) run the .vsto file, it succeeds, if I install the SP1 on top of it, it fails.

  3. I can confirm that Marko’s method works. I’ve spent a while this mornings on my Windows 7 x64 laptop trying different things. Removing VSTO 3 (I had SP1 installed) then reinstalling VSTO 3 with no service pack allowed the VSTO install to run. I have not yet reapplied the service pack.

Comments are closed.