MSWINSCK.OCX dependency problem on Domain

Posted on 2005-04-20
Medium Priority
Last Modified: 2013-11-22

This is driving me nuts!  I've never had this problem and then all of a sudden poof!

I'm setting up a new windows 2000 pro computer.  I then add it to my work domain.  Then I re-login as Admin on the local account so I can install my VB6 program.  When I test it, it works fine.  I then select the folder from Program File and change the security settings  for Users->Full Control. Then I login as a domain account and start the program.  Now I get...

"Run-Time Error 339
Component 'MSWINSCK.OCX' or one of it's dependencies not correctly registered: a file is missing or invalid."

I checked the system.  The mswinsck.ocx is in C:\winnt\system32 and I even re-registered it myself with regsvr32.exe just to be sure.  The program opens fine when opened from Administrator (local), but when I try another users (doman) it won't work!!!

What really drives me crazy is that I got this program installed in about 20 locations and they all work fine with domain logins.

The only difference I can think of is that I remade the installer using the new Visual Studio Installer instead of the regular Package and Deployment Wizard.  I don't want to remake the installer with the old wizard because I've already made many untested changes to the sourcecode and I don't have time to fully complete the changes and debug!  This is turning into a disaster!  

I thought maybe the Visual Studio Installer somehow didn't install the OCX in a domain-friendly manner, so I uninstalled my program and re-installed an older version packaged with the old deployment wizard.  Even this won't run!!!!

So to repeat:
- I've done this fine about 20 times
- Now only the local accounts open the program.  Accounts from the domain give the above error. (This only applies to fresh installations of Windows 2000.  Old installations work no prob)
- MSWINSCK.OCX is properly installed and registered.

Anyone have any ideas???  I need to get this working today!


Question by:MasterWoodsman

Author Comment

ID: 13827880
I just thought of 2 more things to point out...

1)  I've had a few problems with the LDAP server.  I restarted it yesterday all they all seem to be fixed.  I don't know if something got screwed up in there.  But all the old workstations are working just fine.

2) Any new (LOCAL) account with admin priviledges will open the program no problem also!
LVL 29

Accepted Solution

nffvrxqgrcfqvvc earned 360 total points
ID: 13841908
When you install visual studio, it writes to the registry giving you rights to use dependencies files for the account you installed it on.

Have you tried copying mswinsck.ocx from the admin account and dropping it into the domain system32 directory.

obviously the issue might not be mswinsck.ocx itself, it could be one of its dependencies,

Run package and deployment wizard, read the setup.lst file it creates..

[Boot strap]
you want to ship all these files with

[Setup Files]
List of your dependecies.

Try to install it using package and deployment wizard see if it works using the setup.


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 Month15 days, 21 hours left to enroll

850 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