Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX component can't create object 1

Status
Not open for further replies.

petecass

Programmer
Jul 30, 2004
19
GB
This is my third application (two other applications out) using same dll's.
This is a small crms system. The only difference between this application and the two previous is that it uses MAPImessages and MAPIsession controls.
On the development system works fine but after packaging and deploying I get the above error with:

Run-time error '429'

I have a bas main sub that automatically writes to the registry and outputs version numbers to a debug.txt file. This code is not even being run.

How can I find the probem?
 
Some dependancy is missing from your deployment package.

It might be those MAPI ones you mentioned.
 
The mapicontrol is in the setup.lst and has been copied over to the system directory->

File6=@MSMAPI32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),6/24/98 1:00:00 AM,137000,6.0.81.69

How do I find which activex is the problem. do I have to use messagebox before each dim

The startup main looks like this:

Public Sub Main()
'If user gets problem then email us scaevent.log
'**************************************************************************
' Set GLOBAL Variables used by DLL's
'**************************************************************************
APP_PATH = App.Path
APP_PRODUCT = "CRMS"
'==========================================================================
Dim KeyName As String
Dim Registry As New clsRegistry
Dim RegValue As New clsRegValue
Dim Register As New clsRegister
Dim frm As Form
Dim Login As New frmLogin
Dim rs As New ADODB.Recordset

KeyName = "Software\Sca Systems"
Registry.CreateRegistryKey HKEY_LOCAL_MACHINE, KeyName
Registry.SetRegistryValue HKEY_LOCAL_MACHINE, KeyName, "Debug", REG_SZ, IIf(InStr(UCase(Command), "/DEBUG"), "True", "False")
LogEvent "Sca Library DLL " & ScaLibrary.ScaLibrary_Version
LogEvent "Sca DataBase DLL " & ScaDatabase.ScaDatabase_Version
LogEvent "Sca System DLL " & ScaSystem.ScaSystem_Version
LogEvent "CRMS.exe " & App.Major & "." & App.Minor & "." & App.Revision
LogEvent "OS Platform " & CRMS_MIDI.SysInfoControl.OSPlatform
LogEvent "OS Version " & CRMS_MIDI.SysInfoControl.OSVersion
LogEvent "OS Build " & CRMS_MIDI.SysInfoControl.OSBuild
LogEvent String(79, "=")
'=============================================================================
'SETUP registry defaults if not done already
'=============================================================================
KeyName = KeyName & "\CRMS"
If Not Registry.KeyExists(HKEY_LOCAL_MACHINE, KeyName) Then
Registry.CreateRegistryKey HKEY_LOCAL_MACHINE, KeyName
Registry.SetRegistryValue HKEY_LOCAL_MACHINE, KeyName, "ScanEmailTimerInterval", REG_DWORD, 1
End If
Set RegValue = Registry.GetRegistryValue(HKEY_LOCAL_MACHINE, KeyName, "ScanEmailTimerInterval", REG_DWORD)
ScanEmailTimerInterval = RegValue.StringValue
'==============================================================================
CRMS_MIDI.Show

'Open Connection
Set ADO = New clsADO
ADO.OpenConnection App.Path & "\CRMS.MDB", , , adModeReadWrite
'Get Tables
ADO.OpenRecordSet rsCustomers, "Customers", adCmdTable
ADO.OpenRecordSet rsContacts, "Contacts", adCmdTable
ADO.OpenRecordSet rsCalls, "Call_View", adCmdStoredProc
ADO.OpenRecordSet rsLicences, "Licences", adCmdTable
ADO.OpenRecordSet rsUsers, "Users", adCmdTable
'Login
Login.Show vbModal, CRMS_MIDI
If Not Login.LoginSucceeded Then
For Each frm In Forms
Unload frm
Next
Else
frmMain.Show
End If
End Sub
 
Check your list of references and Components for the dll's and ocx's that you need.

zemp
 
The following is taken from the setup.lst and these are in the support directory and in the system directory.
As stated there is nothing here that I haven't used in previous appliactions (both work on the system(s) I am having problems with). Only the development system is working?

[Setup1 Files]
File1=@CRMS.ico,$(AppPath),,,10/5/00 5:24:46 PM,1102,0.0.0.0
File2=@CRMS.mdb,$(AppPath),,,4/7/05 2:33:28 PM,446464,0.0.0.0
File3=@RICHED32.DLL,$(WinSysPathSysFile),,,5/7/98 1:00:00 AM,174352,4.0.993.4
File4=@Richtx32.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,203976,6.0.88.4
File5=@TABCTL32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),12/6/00 1:00:00 AM,209608,6.0.90.43
File6=@MSMAPI32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),6/24/98 1:00:00 AM,137000,6.0.81.69
File7=@MSCOMCT2.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,647872,6.0.88.4
File8=@mscomctl.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 4:58:10 PM,1066176,6.0.88.62
File9=@SYSINFO.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),6/24/98 1:00:00 AM,67376,6.0.81.69
File10=@MSACC9.OLB,$(WinSysPath),,$(Shared),3/19/99 9:27:10 PM,368640,9.0.0.2719
File11=@MSSTDFMT.DLL,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/14/00 1:00:00 AM,118784,6.0.88.4
File12=@MSBIND.DLL,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/11/00 1:00:00 AM,77824,6.0.88.62
File13=@EXCEL9.OLB,$(WinSysPath),,$(Shared),3/19/99 10:00:32 PM,638976,9.0.0.2719
File14=@msado25.tlb,$(WinSysPath),,$(Shared),8/3/04 10:21:44 PM,81920,2.81.1117.0
File15=@ScaSystem.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),4/8/05 2:55:04 PM,303104,1.1.0.8
File16=@ScaDatabase.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),4/5/05 11:09:23 AM,40960,1.1.0.8
File17=@ScaLibrary.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),4/6/05 10:11:58 AM,94208,1.1.0.8
File18=@CRMS.exe,$(AppPath),,,4/11/05 11:18:19 AM,225280,1.1.0.8
 
Might also be a version issue. Perhaps the file is not being installed because there is already a newer version with the same name. For example does the target machine have the same version of Excel that your development machine does?

zemp
 
All the file listed above are already used in two other applications that are working fine on the computer I am trying to to install to.
The only diffrence between this application is the MAPI32 controls. i.e. here's a setup from another app that is working. (I have two applications sharing the same sca***.dlls worjing on the test system)

[Setup1 Files]
File1=@End Period.rtf,$(AppPath),,,2/25/05 11:57:30 AM,27341,0.0.0.0
File2=@End Week.rtf,$(AppPath),,,2/25/05 11:57:40 AM,27336,0.0.0.0
File3=@End Day.rtf,$(AppPath),,,2/25/05 11:57:18 AM,27321,0.0.0.0
File4=@Deleted Collections.rtf,$(AppPath),,,9/3/03 1:02:26 PM,15029,0.0.0.0
File5=@Collection Adjustments.rtf,$(AppPath),,,9/3/03 12:22:34 PM,15035,0.0.0.0
File6=@Model Mix Injection.rtf,$(AppPath),,,8/12/03 10:58:24 AM,15100,0.0.0.0
File7=@Late Collections.rtf,$(AppPath),,,7/24/03 1:03:12 PM,31459,0.0.0.0
File8=@Non Chargeables.rtf,$(AppPath),,,8/4/03 2:35:32 PM,28914,0.0.0.0
File9=@Bmos2000.rtf,$(AppPath),,,2/28/05 5:12:01 PM,66418,0.0.0.0
File10=@VFPODBC.msi,$(AppPath),,,6/9/03 4:50:02 PM,915968,0.0.0.0
File11=@Unoccupied Sites.rtf,$(AppPath),,,6/13/03 9:49:46 AM,14935,0.0.0.0
File12=@Summary by Customer.rtf,$(AppPath),,,6/12/03 5:17:56 PM,17464,0.0.0.0
File13=@SiteDisplay.rtf,$(AppPath),,,7/21/03 10:59:14 AM,88952,0.0.0.0
File14=@Site List.rtf,$(AppPath),,,6/13/03 9:50:44 AM,15415,0.0.0.0
File15=@Site Life.rtf,$(AppPath),,,6/13/03 10:34:10 AM,15316,0.0.0.0
File16=@Period Performance.rtf,$(AppPath),,,6/26/03 2:57:54 PM,15416,0.0.0.0
File17=@Model List.rtf,$(AppPath),,,6/13/03 10:15:16 AM,14896,0.0.0.0
File18=@Model League.rtf,$(AppPath),,,6/13/03 10:32:40 AM,15280,0.0.0.0
File19=@Machine Mix.rtf,$(AppPath),,,6/13/03 10:37:38 AM,15191,0.0.0.0
File20=@Exceptions.rtf,$(AppPath),,,6/26/03 2:26:18 PM,19682,0.0.0.0
File21=@Collection Review.rtf,$(AppPath),,,6/13/03 10:39:04 AM,15433,0.0.0.0
File22=@Asset Summary.rtf,$(AppPath),,,6/13/03 10:09:56 AM,14830,0.0.0.0
File23=@Asset List.rtf,$(AppPath),,,6/13/03 10:07:32 AM,15469,0.0.0.0
File24=@FINDFILE.AVI,$(AppPath),,,4/24/98 12:00:00 AM,49884,0.0.0.0
File25=@FINDCOMP.AVI,$(AppPath),,,4/24/98 12:00:00 AM,6546,0.0.0.0
File26=@FILEMOVE.AVI,$(AppPath),,,4/24/98 12:00:00 AM,19248,0.0.0.0
File27=@FILEDEL.AVI,$(AppPath),,,4/24/98 12:00:00 AM,12058,0.0.0.0
File28=@Task List.rtf,$(AppPath),,,5/13/03 5:22:54 PM,912016,0.0.0.0
File29=@Note1.bmp,$(AppPath),,,5/7/03 5:31:26 PM,3126,0.0.0.0
File30=@Note0.bmp,$(AppPath),,,5/8/03 2:28:00 PM,3126,0.0.0.0
File31=@BMOS_AAAAC.mdb,$(AppPath),,,5/12/03 5:44:48 PM,122880,0.0.0.0
File32=@Upgrade.bat,$(AppPath),,,4/7/03 10:07:32 AM,456,0.0.0.0
File33=@Readme.txt,$(AppPath),,,8/12/03 10:51:28 AM,1853,0.0.0.0
File34=@Login.rtf,$(AppPath),,,1/2/03 5:16:54 PM,13003,0.0.0.0
File35=@micross.TTF,$(Font),,$(Shared),12/7/99 12:00:00 PM,254588,0.0.0.0
File36=@Readme.rtf,$(AppPath),,,2/28/05 4:38:33 PM,42325,0.0.0.0
File37=@Bmos2000.ico,$(AppPath),,,10/5/00 5:24:46 PM,1102,0.0.0.0
File38=@BMOS_AAAA1.mdb,$(AppPath),,,3/17/05 6:07:36 PM,3346432,0.0.0.0
File39=@BMOS_AAAA.ptt,$(AppPath),,,4/19/01 4:14:04 PM,4608,0.0.0.0
File40=@BMOS_AAAA.mdb,$(AppPath),,,2/28/05 12:46:02 PM,741376,0.0.0.0
File41=@blankdbf.zip,$(AppPath),,,1/23/03 10:28:18 AM,2835,0.0.0.0
File42=@Admin.rtf,$(AppPath),,,1/2/03 5:14:00 PM,26050,0.0.0.0
File43=@AAAdmin.mdb,$(AppPath),,,1/23/03 10:37:20 AM,294912,0.0.0.0
File44=@800.gif,$(AppPath),,,2/7/02 5:11:14 PM,236119,0.0.0.0
File45=@1280.gif,$(AppPath),,,10/7/02 4:56:10 PM,442880,0.0.0.0
File46=@1024.gif,$(AppPath),,,2/7/02 5:15:16 PM,331467,0.0.0.0
File47=@000000.bmp,$(AppPath),,,9/23/02 4:51:46 PM,202554,0.0.0.0
File48=@MDAC_TYP.EXE,$(AppPath),,,1/20/00 1:00:00 AM,7856352,25.0.4403.12
File49=@SYSINFO.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),6/24/98 1:00:00 AM,67376,6.0.81.69
File50=@MSCHRT20.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,1009336,6.0.88.4
File51=@COMDLG32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,140488,6.0.84.18
File52=@MSSTDFMT.DLL,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/14/00 1:00:00 AM,118784,6.0.88.4
File53=@MSHFLXGD.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,438976,6.0.88.4
File54=@MSDATLST.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,232640,6.0.84.18
File55=@MSADODC.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,118976,6.0.88.4
File56=@RICHED32.DLL,$(WinSysPathSysFile),,,5/7/98 1:00:00 AM,174352,4.0.993.4
File57=@Richtx32.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,203976,6.0.88.4
File58=@MSCOMCT2.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 1:00:00 AM,647872,6.0.88.4
File59=@TABCTL32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),12/6/00 1:00:00 AM,209608,6.0.90.43
File60=@mscomctl.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/22/00 4:58:10 PM,1066176,6.0.88.62
File61=@MappointControl.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),4/21/01 2:37:33 AM,363104,9.0.16.2001
File62=@scrrun.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),8/4/04 12:56:46 AM,151552,5.6.0.8820
File63=@EXCEL9.OLB,$(WinSysPath),,$(Shared),3/19/99 10:00:32 PM,638976,9.0.0.2719
File64=@MSBIND.DLL,$(WinSysPath),$(DLLSelfRegister),$(Shared),5/11/00 1:00:00 AM,77824,6.0.88.62
File65=@MSDERUN.DLL,$(CommonFiles)\designer,$(DLLSelfRegister),$(Shared),3/14/00 1:00:00 AM,136192,6.0.88.4
File66=@MSACC9.OLB,$(WinSysPath),,$(Shared),3/19/99 9:27:10 PM,368640,9.0.0.2719
File67=@msado25.tlb,$(WinSysPath),,$(Shared),8/3/04 10:21:44 PM,81920,2.81.1117.0
File68=@ScaBmos.dll,$(AppPath),$(DLLSelfRegister),,4/6/05 1:04:07 PM,1269760,1.1.0.8
File69=@ScaSystem.dll,$(WinSysPath),$(DLLSelfRegister),,4/7/05 11:07:57 AM,303104,1.1.0.8
File70=@ScaDatabase.dll,$(WinSysPath),$(DLLSelfRegister),,4/5/05 11:09:23 AM,40960,1.1.0.8
File71=@ScaLibrary.dll,$(WinSysPath),$(DLLSelfRegister),,4/6/05 10:11:58 AM,94208,1.1.0.8
File72=@Bmos2000.exe,$(AppPath),,,4/8/05 11:41:45 AM,1368064,1.1.0.8
 
Ha got the bugger!!!!!!!!!!

File69=@ScaSystem.dll,$(WinSysPath),$(DLLSelfRegister),,4/7/05 11:07:57 AM,303104,1.1.0.8

File15=@ScaSystem.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),4/8/05 2:55:04 PM,303104,1.1.0.8
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top