08. september 2003 - 15:28
Der er
12 kommentarer og
1 løsning
VBA - activeX component can't create object
Jeg har et script i VBA som skal connecte til en Lotus Notes database. Når jeg forsøger at initialisere mit objekt går det galt. Den kommer og siger:
Runtime Error '429': ActiveX component can't create object.
Jeg har koden:
Dim session As New NotesSession
session.Initialize <<<<< HER GÅR DET GALT!!!
....
..
Hvad gør jeg??
09. september 2003 - 08:52
#3
Jeps... jeg har tilføjet en Notes reference. Ved ikke om der er flere... den jeg har hedder "Lotus Domino Objects".
Har også prøvet at omskrukturere og skrive:
Set session = New NotesSession
...det virker heller ikke. Andre forslag?!??
10. september 2003 - 10:43
#8
Hvis jeg trykker på hjælpeknappen på den fejlbesked der popper op, så kommer jeg til følgende (ved ikke om det kan hjælpe til at finde en løsning):
ActiveX component can't create object or return reference to this object (Error 429)
Creating objects requires that the object's class be registered in the system registry and that any associated dynamic-link libraries (DLL) be available. This error has the following causes and solutions:
The class isn't registered. For example, the system registry has no mention of the class, or the class is mentioned, but specifies either a file of the wrong type or a file that can't be found.
If possible, try to start the object's application. If the registry information is out of date or wrong, the application should check the registry and correct the information. If starting the application doesn't fix the problem, rerun the application's setup program.
A DLL required by the object can't be used, either because it can't be found, or it was found but was corrupted.
Make sure all associated DLLs are available. For example, the Data Access Object (DAO) requires supporting DLLs that vary among platforms. You may have to rerun the setup program for such an object if that is what is causing this error.
The object is available on the machine, but it is a licensed Automation object, and can't verify the availability of the license necessary to instantiate it.
Some objects can be instantiated only after the component finds a license key, which verifies that the object is registered for instantiation on the current machine. When a reference is made to an object through a properly installed type library or object library, the correct key is supplied automatically.
If the attempt to instantiate is the result of a CreateObject or GetObject call, the object must find the key. In this case, it may search the system registry or look for a special file that it creates when it is installed, for example, one with the extension .lic. If the key can't be found, the object can't be instantiated. If an end user has improperly set up the object's application, inadvertently deleted a necessary file, or changed the system registry, the object may not be able to find its key. If the key can't be found, the object can't be instantiated. In this case, the instantiation may work on the developer's system, but not on the user's system. It may be necessary for the user to reinstall the licensed object.
You are trying to use the GetObject function to retrieve a reference to class created with Visual Basic.
GetObject can't be used to obtain a reference to a class created with Visual Basic.
Access to the object has explicitly been denied.
For example, you may be trying to access a data object that's currently being used and is locked to prevent deadlock situations. If that's the case, you may be able to access the object at another time.
For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).
Slettet bruger
11. september 2003 - 20:08
#10
Jeg har kun et forslag tilbage og det er at prøve at geninstallere notes og se om det kunne løse det. Eller må du ind i referencer og se om der er noget der minder om noget med notes og sætte dem.
Men hvad med denne her:
Kan du stå på NotesSession og trykke F1 for hjælp eller F2(tror jeg) for object browser?
Prøvede du det?
11. september 2003 - 20:45
#11
Ja, jeg prøvede F1 og F2 men nu er jeg ikke ny i VBA, så dem kan jeg godt lige huske.. ;o)
F1 er den hjælp der er kommet ud her over f.eks. object browseren er fin men fortæller intet jeg kan bruge i denne sammenhæng..
Konkret hjælp ville være fint... er der noget som har haft samme problem f.eks.??