This documentation is archived and is not being maintained.

Cannot find .NET Framework directory: <error>

The directory where the .NET Framework assemblies are stored could not be located.

Error ID: BC31508

To correct this error

  1. Compile the program again to see if the error recurs.

  2. If the error continues, save your work and restart Visual Studio.

  3. If the error recurs, reinstall Visual Basic.

  4. If the error persists after reinstallation, notify Microsoft Product Support Services.

Show: