Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1149
  • Last Modified:

Run-time error 339

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
MoreThanDoubled
Asked:
MoreThanDoubled
  • 3
  • 2
1 Solution
 
ZhaolaiCommented:
MSCOMCT2.OCX may be corrupted on that machine.
Copy one from another machine and register it.

0
 
MoreThanDoubledAuthor Commented:
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
 
ZhaolaiCommented:
"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
 
MoreThanDoubledAuthor Commented:
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
 
MoreThanDoubledAuthor Commented:
Zhaola,
Some of these components were also compressed, so i decompressed them then reregistered and it wo rked.

Thanks
0
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.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now