none
DirectX installation error with .Net Framework 4.0

    Question

  • I've been having trouble with installing DirectX, along with Microsoft Visual C++ 2008, and I believe it is because of the .NET Framework.  For the DirectX problem, it crashes the installation process with the error message which says that "To run this application, you first must install one of the following versions of the .NET Framework:  v4.0.30319", which I already have.  I've reinstalled the .NET Framework many times, and the problem is still there.

    As for the C++ install:  "Error 1935.An error occurred during the installation of assembly 'Microsoft.VC90.OpenMP,version="9.0.21022.8",publicKeyToken="1fc8b3b9a1e18e3b", processorArchitecture="x86",type="win32". Please refer to Help and Support for more information.  HRESULT: 0x80070002."

    Wednesday, December 29, 2010 6:56 PM

Answers

  • I suggest you try the following:

    1. Uninstall .NET 4.0 using normal methods

    2. Use this tool to ensure complete cleanup, given the multiple installs:

    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

    After full removal, try installing Visual Studio 2008 (although I don't think your issue with a C++ component has anything to do with .NET 4.0).

    Then reinstall .NET 4.0. making sure you are installing the correct version to support DirectX (full vs. client profile).

     

    • Edited by pvdg42MVP Wednesday, December 29, 2010 7:30 PM typo
    • Marked as answer by Andrew.WuModerator Tuesday, January 11, 2011 8:44 AM
    Wednesday, December 29, 2010 7:29 PM
  • Hi Apo Alph,

     

    According to your description, the issue you are experiencing is:

    1.       While you are installing DirectX, it prompt that you need to install .NET Framework 4.0. However, even you have .NET Framework installed, the installation still cannot successes.

    2.       The installation of Visual C++ 2008 failed with message:  Error 1935.An error occurred during the installation of assembly 'Microsoft.VC90.OpenMP,version="9.0.21022.8",publicKeyToken="1fc8b3b9a1e18e3b", processorArchitecture="x86",type="win32". Please refer to Help and Support for more information.  HRESULT: 0x80070002.

    If I have misunderstood anything, please feel free to let me know.

     

    For the first problem, pvdg42’s suggestion is very helpful, you could perform it and check if it works.

     

    For the second problem, the Error 1935 is a very common error code which could be caused by many reasons. And HRESULT: 0x80070002 means “the system cannot find the file specified” (See: Possible cause of 1935 error with HRESULT 0x80070002).

     

    You can try below steps to diagnose the cause of a 1935 error in the log file (See: Troubleshooting 1935 and 2908 errors during installation):

    ·         Find log files in %temp% folder:  The log files vsmsilog*.txt in %temp% will provide the necessary information, depending on which product’s setup failed.

    ·         Find error information: To pinpoint the cause of a 1935 error, search for the string return value 3 in the log file.  This will show the exact point in which setup failed and initiated a rollback.

    You can find the error information and post it back here for further support.

     

    In order to resolve your problem, I tidied pvdg42’s workaround and add some content like below:

     

    ·         Uninstall .NET 4.0 using normal methods (Start Menu -> Control Panel -> Uninstall a program)

    ·         Use this tool to ensure complete cleanup, given the multiple installs:

    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

    ·         Install Visual C++ 2008 again

    ·         Install .NET Framework 4.0 using below Standalone Installer:

    http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7

    the .NET Framework should be installed after installing Visual C++

     

    If the still installation fails, you can collect the setup log file:

    1.       Try to clean your "%temp%" folder (Start Menu >> Run >> Type "%temp%).

    2.       Install .NET Framework again.

    3.       Collect the logs from "%temp%" folder with the Collect tool.

    Collect tool: http://www.microsoft.com/downloads/details.aspx?FamilyID=e0da314f-6216-4a18-bc6b-7d29cf83af20&displaylang=en

    4.       Send the vslogs.cab file to me (E-mail: v-anwu@microsoft.com).

    Note: Please attach the link of this post in the mail.

     

    If there is any updates, please feel free to let me know.

     

    Best Regards,


    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, January 05, 2011 6:54 AM
    Moderator

All replies

  • I suggest you try the following:

    1. Uninstall .NET 4.0 using normal methods

    2. Use this tool to ensure complete cleanup, given the multiple installs:

    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

    After full removal, try installing Visual Studio 2008 (although I don't think your issue with a C++ component has anything to do with .NET 4.0).

    Then reinstall .NET 4.0. making sure you are installing the correct version to support DirectX (full vs. client profile).

     

    • Edited by pvdg42MVP Wednesday, December 29, 2010 7:30 PM typo
    • Marked as answer by Andrew.WuModerator Tuesday, January 11, 2011 8:44 AM
    Wednesday, December 29, 2010 7:29 PM
  • Which version of Visual Studio 2008 should I use?  The express one?

     

    As for the .Net 4.0, I would need to install the full one, correct?

    Wednesday, December 29, 2010 7:45 PM
  • Also, I have been unable to install the Visual Studio 2008, as the installation crashes when installing the "Runtime Pre-requisites"
    Wednesday, December 29, 2010 10:08 PM
  • Hi Apo Alph,

     

    According to your description, the issue you are experiencing is:

    1.       While you are installing DirectX, it prompt that you need to install .NET Framework 4.0. However, even you have .NET Framework installed, the installation still cannot successes.

    2.       The installation of Visual C++ 2008 failed with message:  Error 1935.An error occurred during the installation of assembly 'Microsoft.VC90.OpenMP,version="9.0.21022.8",publicKeyToken="1fc8b3b9a1e18e3b", processorArchitecture="x86",type="win32". Please refer to Help and Support for more information.  HRESULT: 0x80070002.

    If I have misunderstood anything, please feel free to let me know.

     

    For the first problem, pvdg42’s suggestion is very helpful, you could perform it and check if it works.

     

    For the second problem, the Error 1935 is a very common error code which could be caused by many reasons. And HRESULT: 0x80070002 means “the system cannot find the file specified” (See: Possible cause of 1935 error with HRESULT 0x80070002).

     

    You can try below steps to diagnose the cause of a 1935 error in the log file (See: Troubleshooting 1935 and 2908 errors during installation):

    ·         Find log files in %temp% folder:  The log files vsmsilog*.txt in %temp% will provide the necessary information, depending on which product’s setup failed.

    ·         Find error information: To pinpoint the cause of a 1935 error, search for the string return value 3 in the log file.  This will show the exact point in which setup failed and initiated a rollback.

    You can find the error information and post it back here for further support.

     

    In order to resolve your problem, I tidied pvdg42’s workaround and add some content like below:

     

    ·         Uninstall .NET 4.0 using normal methods (Start Menu -> Control Panel -> Uninstall a program)

    ·         Use this tool to ensure complete cleanup, given the multiple installs:

    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

    ·         Install Visual C++ 2008 again

    ·         Install .NET Framework 4.0 using below Standalone Installer:

    http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7

    the .NET Framework should be installed after installing Visual C++

     

    If the still installation fails, you can collect the setup log file:

    1.       Try to clean your "%temp%" folder (Start Menu >> Run >> Type "%temp%).

    2.       Install .NET Framework again.

    3.       Collect the logs from "%temp%" folder with the Collect tool.

    Collect tool: http://www.microsoft.com/downloads/details.aspx?FamilyID=e0da314f-6216-4a18-bc6b-7d29cf83af20&displaylang=en

    4.       Send the vslogs.cab file to me (E-mail: v-anwu@microsoft.com).

    Note: Please attach the link of this post in the mail.

     

    If there is any updates, please feel free to let me know.

     

    Best Regards,


    Andrew Wu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, January 05, 2011 6:54 AM
    Moderator