Hi,
I build a project in visual basic 2008 with reference excel.
I copy the project to my notebook and now I get 15 error.

Warning 1 There are updated custom wrappers available for the following referenced components: Excel ,Microsoft.Office.Core.
Warning 2 Cannot load type library for reference "AxMSChart20Lib". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
Warning 3 Cannot load type library for reference "MSChart20Lib". Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
Warning 4 The referenced component 'AxMSChart20Lib' could not be found.
Warning 5 The referenced component 'MSChart20Lib' could not be found.
Error 6 Type 'Excel.Application' is not defined.
Error 7 Type 'Excel.Application' is not defined.
Error 8 Expression is a value and therefore cannot be the target of an assignment.
Error 9 Type 'MSChart20Lib.AxisClass' is not defined.
Error 10 Type 'MSChart20Lib.MSChart' is not defined.
Error 11 Type 'Excel.Application' is not defined.
Error 12 Type 'Excel.Application' is not defined.
Error 13 Type 'Excel.Application' is not defined.
Error 14 Type 'Excel.Application' is not defined.
Error 15 Type 'Excel.Application' is not defined.

can any one help me plz.

For me the problem was like this(I found it latter)
on the first PC 2 versions VB was installed (VB6 and VB2008)
the first copy of the program right down on this PC(with VB2008),
then I copy it to PC without VB6,
Although I write the code in VB2008 it used Librariesof VB6,
so in the secent PC I delect all the Librariesof of VB6 and IMPORT only Librariesof of VB2008

I'm sorry for my bad english

These errors are generated due to the fact that Excel in particular the .DLL's supporting the charting you are using, is not on the new computer that you transferred to.
There is a couple of ways to solve it:
1) Copy the .DLL's needed with the application
2) Make sure Office is installed on the computer, or at least Excel is installed on the computer.

JR

This article has been dead for over six months. Start a new discussion instead.