Solved

Run-time error 339

Posted on 2010-08-16
5
1,144 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month5 days, 16 hours left to enroll

627 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