tgauslaa
asked on
VB Automation error 8007007e
Hi!
I have a problem with automation when trying to use a FileSystemObject. I run Windows XP with Office 2000 and the project is developed in Visual Basic 6.
When trying to execute the code below, I get this eror:
Run-time error '-2147024770 (8007007e)':
Automation error
The specified module could not be found.
-------------------------- --------
Private UserFileName As String
Private fso As New FileSystemObject
UserFileName = fso.GetSpecialFolder(Windo wsFolder) + "\users.mdb"
-------------------------- --------
When I look at the FileSystemObject (fso) the Watch displays this message:
<Object variable or With block variable not set>
I have recently upgraded from Windows 2000 to Windows XP operating system. From what I read on the internet there might be an error with OLE Automation, but I don't know how to solve this. Everything worked just fine before I switched operating systems, and I also recall that everything worked fine in the beginning after Windows XP was installed (but I might be wrong on this point).
Can anyone give me a clue to what it could be, and how I should solve it?
I have a problem with automation when trying to use a FileSystemObject. I run Windows XP with Office 2000 and the project is developed in Visual Basic 6.
When trying to execute the code below, I get this eror:
Run-time error '-2147024770 (8007007e)':
Automation error
The specified module could not be found.
--------------------------
Private UserFileName As String
Private fso As New FileSystemObject
UserFileName = fso.GetSpecialFolder(Windo
--------------------------
When I look at the FileSystemObject (fso) the Watch displays this message:
<Object variable or With block variable not set>
I have recently upgraded from Windows 2000 to Windows XP operating system. From what I read on the internet there might be an error with OLE Automation, but I don't know how to solve this. Everything worked just fine before I switched operating systems, and I also recall that everything worked fine in the beginning after Windows XP was installed (but I might be wrong on this point).
Can anyone give me a clue to what it could be, and how I should solve it?
Is any reason that you disable to allow run script from IE setting?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi
It works again! I simply reinstalled Microsoft Visual Studio, and everything is back to normal.
The bad news is that I still don't know what caused it, except that I'm pretty sure that it didn't have anything to do with the code. I have a theory about how it happened, though. I think that something has either gone wrong when installing some new software on the computer (changed/deleted settings) or an error occurred that messed up one or more of the Automation dll's on the system. It may well be that it is the Scrrun.dll that messed things up, but unfortunately I had already fixed the problem by reinstalling VS6 before I saw your comment, BlueDevilFan, so I haven't been able to verify if your solution is correct. I'm just happy that everything is back to normal again. But I'm pretty sure you're right that it is one of the dll's that is either not registered or has an error. Thanks for your help!
Regards, tgauslaa.
It works again! I simply reinstalled Microsoft Visual Studio, and everything is back to normal.
The bad news is that I still don't know what caused it, except that I'm pretty sure that it didn't have anything to do with the code. I have a theory about how it happened, though. I think that something has either gone wrong when installing some new software on the computer (changed/deleted settings) or an error occurred that messed up one or more of the Automation dll's on the system. It may well be that it is the Scrrun.dll that messed things up, but unfortunately I had already fixed the problem by reinstalling VS6 before I saw your comment, BlueDevilFan, so I haven't been able to verify if your solution is correct. I'm just happy that everything is back to normal again. But I'm pretty sure you're right that it is one of the dll's that is either not registered or has an error. Thanks for your help!
Regards, tgauslaa.
I suspect that Visual Studio contains a copy of Scrrun.dll and that resintalling it accomplished the same thing as what I had proposed. Either way it's fixed and that's the important thing.
Cheers.
Cheers.
THANK YOU!!
I had a ton of apps failing with "Automation Error" (3 to be exact...)
Running the regsvr on scrrun.dll FIXED THE PROBLEM!!
THANK YOU!!
I had a ton of apps failing with "Automation Error" (3 to be exact...)
Running the regsvr on scrrun.dll FIXED THE PROBLEM!!
THANK YOU!!
You're welcome, nneonneo.
ASKER
It's nice that this thread can help more people.
Regards, tgauslaa.
Regards, tgauslaa.
-2147418105 (80010007) The callee (server [not server application]) in vb6
set fso=createobject("scriptin
regards
anv