Could not find standard library: '<filename>'

Visual Basic is unable to find or open one of the standard DLL libraries needed for compilation and linking.

The unusable library is most likely to be either mscorlib.dll or microsoft.visualbasic.dll.

By default, this message is a warning. For information on hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.

Error ID: BC40049

To correct this error

  1. Verify that the file cited in the error message is present on the hard disk from which you are running Visual Basic. Normally the standard libraries should reside in a subdirectory under \WINNT\Microsoft.NET\Framework or \WINDOWS\Microsoft.NET\Framework.

  2. Verify that neither the file nor the directory has a setting or attribute that prevents read access by Visual Basic.

  3. Verify that the file name and extension are spelled correctly. Capitalization is not a concern.

  4. If the file appears to be properly placed and accessible, it might be corrupted on the disk. Reinstall Visual Basic if possible.

  5. Note the exact file name and extension and contact Microsoft Product Support Services.

See Also

Tasks

How to: Invoke the Command-Line Compiler

Concepts

Technical Support Options for Visual Studio

Other Resources

Building from the Command Line (Visual Basic)