Solved

Run-time error 339

Posted on 2010-08-16
5
1,137 Views
Last Modified: 2012-05-10
I have an existing application on a terminal server that has been running with no problems until today.

I get a "MSCOMCT2.OCX or one of its dependencies not correctly registered: a file is missing or invalid" error.

1.  What can cause this error
2. How can i fix it

I am running on Windows XP, Visual Basic 6

Thanks
MorethanDouble.
0
Comment
Question by:MoreThanDoubled
  • 3
  • 2
5 Comments
 
LVL 17

Accepted Solution

by:
Zhaolai earned 500 total points
Comment Utility
MSCOMCT2.OCX may be corrupted on that machine.
Copy one from another machine and register it.

0
 

Author Comment

by:MoreThanDoubled
Comment Utility
I also noticed that one person can run the application and the error does not occur, but when other users try to run it,they get the .OCX error....any ideas on why that would happen?
0
 
LVL 17

Expert Comment

by:Zhaolai
Comment Utility
"I also noticed that one person can run the application and the error does not occur": That person has the control on the computer.

The file may not be in other user's computer at all. Do a search for the file. It normally resides in the c:\Windows\System32 folder, if it does exists. You can try to copy one from another machine and manually register it.

In general, the file MSCOMCT2.OCX needs to be included in your deployment package and be placed in the users' c:\Windows\System32 folder. It will be self-registered if included in the package.

0
 

Author Comment

by:MoreThanDoubled
Comment Utility
The file may not be in other user's computer at all. Do a search for the file. It normally resides in the c:\Windows\System32 folder, if it does exists. You can try to copy one from another machine and manually register it.
 ... The application is located (installed) on a terminal server (one location..accessable to all) ..
I have the necessary files on my computer ... and still get the error .. while others dont get the error at all.


0
 

Author Closing Comment

by:MoreThanDoubled
Comment Utility
Zhaola,
Some of these components were also compressed, so i decompressed them then reregistered and it wo rked.

Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now