Solved

Run-time error 339

Posted on 2010-08-16
5
1,143 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 17

Accepted Solution

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

0
 

Author Comment

by:MoreThanDoubled
ID: 33446503
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
ID: 33446620
"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
ID: 33447447
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
ID: 33447613
Zhaola,
Some of these components were also compressed, so i decompressed them then reregistered and it wo rked.

Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…

710 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