Solved

Run-time error 339

Posted on 2010-08-16
5
1,141 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
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

830 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