VBA Automation Error -2147024770 "The specified module could not be found"

Microsoft Excel 2003

This error cropped up on all my Excel applications??

I've done plenty of research, but there seems to be so many causes.

I have a reference for Microsoft XML, v4.0 in all my applications since the existing code all uses DOMDocument40 xml docs.

Function newJBXMLRequest(sessionID As String) As DOMDocument40
I declare this variable:
Dim result As New DOMDocument40

Error happens on this line:
Set session = result.createAttribute("Session")

JMO9966Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JMO9966Author Commented:
I've done some further testing on my machine and now my VB.Net apps get the same error....ouch.

Dim jb As New JBRequestProcessor()
Dim response As String

Error "The specified module could not be found"  happens on this line:
response = jb.ProcessRequest(strXmlRequestDoc)

I've already uninstalled the product that owns this com object reference and went to an older version that used to be fine on my machine.  Not sure if a microsoft service pack or update has now deadlocked my vb apps or what.
0
Robberbaron (robr)Commented:
I have had this problem when I develop on a 64bit machine and deploy to a 32bit one.

To fix, I have to edit the app on 32bit, save and republish.  The 64bit machines seem to cope with the different locations for the DLL/COM objects but 32bit doesnt.
0
trungk43Commented:
I guess a component is missing from your system.

Make sure all DLLs (c:\Windows\System32\msxml4.dll) that your system uses are installed on the target system.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.