Run-Time Error 75 Issue in Windows 7 and Vista

Posted on 2011-10-03
Last Modified: 2012-08-13

I had a Windows application created "for-hire" several years ago (when XP was the dominant OS). The application was coded in VB6 and runs perfectly in XP. But in Vista and 7, however, it frequently hits a "Run-Time Error 75: Path/File Access Error" at startup.

When my users hit this error, I've been giving them a "band-aid" fix by telling them to right-click on the icon and "Run as Administrator." Now that nearly everyone is using Windows 7, I'm encountering that problem far too often and I want a permanent fix instead of a band-aid.

I think the problem is related to the 3 ActiveX files that the application accesses. As it stands now, these three OCX files are installed in C:\Windows\system32 by default (and registered as well). The three OCX files are:


All of the other auxiliary files are installed in the same folder as the executable, so I don't think they are the problem. Other than that, the application uses some true-type fonts that are included with the installation.

There's got to be an easy way to fix this so I don't have to keep telling my users to "Run as Administrator." Can anyone help me?

Question by:garyknight
    LVL 5

    Expert Comment

    Right click on the shortcut > Properties > Advanced > check the box "Always run as administrator > OK > Apply > OK
    LVL 29

    Expert Comment

    Do you have Windows 7 to use for debugging? The first thing you would want to do is debug on Windows 7. If you don't have access to Windows 7 then you can create a Standard(Limited) account on Windows XP this would be almost identical to the permissions enforced in Vista and later with UAC. Run your code on the limited account and check at which lines it's throwing exceptions .. Here is what you need to look for in your source code for the cause of the errors.

     Check all file operations.
     Check all operations that access the system registry.
     Check all hard-coded paths to locations you don't have write access (Program Files), C:\
     Check all operations that use the Dir() function for possible causes. You don't have permission to access a specific directory.
     The user profile locations have changed on Vista and later make sure you use SHGetSpecialFolderPath() for special locations such as the All User directory.
     When writing files use the All User AppData or All User directories.
     When accessing the registry for *WRITE access only HKEY_CURRENT_USER has read/write access rights. HKEY_LOCAL_MACHINE access rights has *READ permissions only unless running under administrative privileges.
    LVL 14

    Accepted Solution

    Error 75 would have nothing to do with where the OCX's are located, you'd get a different error number for that. I have 26 VB6 programs that put the OCX's you mentioned plus many more in C:\Windows\system32, and I also register them. My code hums along without a complaint on anything from XP up to Win7 64-bit.

    I think your path/file error is coming from somewhere else. Windows 7 is pretty picky about where you can place and change files now. It doesn't like you fooling around in "Program Files" as much as Windows used to. Plus many other folders. I get around this by doing what I've always done...make a folder directly off the root of C drive and place my program there. I can create, change, delete, etc all files with impunity.

    If I were you, I'd look at your code and see what are the first file operations you are doing, and where those files are located.

    Author Closing Comment

    Installing the program on the root of the C drive fixed it. Thanks!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
    This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now