Recently, an error occured on a PC with both Visual Studio .NET 2003 and Visual Studio 2005 installed, where new forms could no longer be added to a web project and new projects could not longer be created in VS2003. Upon trying to perform either task, an error message would display stating: “VC Package not available or not registered”.
Microsoft’s web site offers a solution which involves using the Visual Studio 2003 installation CD-ROM and issuing a repair via the control panel. They state the error occurs because the Windows Installer is not registering the TLB and DLL files as they already exist. Issuing a repair re-registers the proper DLL files needed for Visual Studio 2003 to run properly. Microsoft states the steps to correct this are as follows:
- On the Start menu, click Settings, click Control Panel. Click Add/Remove Programs.
- On the list of installed programs, select Visual Studio .NET. Click Change.
- Click the second item in the 1 2 3 Visual Studio Setup window.
- Click the Repair or Re-install option and follow directions to repair.
On the particular PC in question, it is not certain what caused the error to start. Perhaps, installing too many applications or a rampant installer overwrote critical files used by Visual Studio. In either case, there is a much better solution than Microsoft’s recommendation.
The following solution comes from Martin Searle. Create a DOS batch file with the following lines in it. You can copy and paste them into a restorevs.bat file.
Run the batch file, all neccessary DLL files will be re-registered on your system for Visual Studio .NET 2003, and the error should now be corrected. Go ahead and run Visual Studio and try creating a new project.