Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 97
Product
FileUp
Version
2.x, 3.x
Title
ASP Error 0177: Library not registered
Problem
This error may occur if either,
  • safileup.dll is not registered, OR
  • Permissions are not correctly set on FileUp registry folders
Solution
  1. Delete the FileUp package in Microsoft Transaction Server (Windows NT), OR in Component Services (Windows 2000).

    Note: The MTS package is only needed if you are planning to use FileUp transactionally. If you will need FileUp's transactional capability, you can reinstall the package in MTS/COM+ after this registry issue has been resolved. The package can be reinstalled by double-clicking on the file "SAFileUpTXInstall.vbs" which is located in the FileUp program folder.

    Deleting from MTS
    Manual
    Open the Transaction Server Explorer within MTS. Navigate to the FileUp Package:

    Console Root
    /Microsoft Transaction Server
    /Computers
    /Computer
    /Packages Installed
    /FileUp

    Right-click FileUp. Select Delete.

    Deleting from COM+
    Open the "Component Services" located via the Control Panel/Administrative Tools. Navigate to the FileUp Package:

    /Component Services
    /Computers
    /My Computer
    /COM+ Applications
    /FileUp

    Right-click FileUp. Select Delete.


  2. Register the following DLLs using REGSVR32 in an MS-DOS window:

    • %program files\softartisans\FileUp\safileup.dll
    • %program files\softartisans\FileUp\safilmgr.dll
    • %program files\softartisans\FileUp\safupps.dll
    • %program files\softartisans\FileUp\saprgres.dll
    • %systemroot%\system32\safupmon.dll

    To register the dlls, open an MS-DOS window, and enter, regsvr32 path\filename.dll. Repeat for each of the five DLLs listed above.

  3. Run the simple upload sample. If you still get "Library not registered," proceed to step 4.

  4. From the Start menu, open Run, and enter REGEDT32 to open the Registry Editor.
    Note: It is recommended that you back up the registry before making any changes.

  5. Check the permissions on the HKEY_CLASSES_ROOT\TypeLib key:

    1. Maximize the HKEY_CLASSES_ROOT window. 
    2. Scroll down to the TypeLib key and select it by clicking once. 
    3. From the menu, select security\permissions and look at the list of accounts in the dialog box..
    4. If the System account and the Administrators account (with full control) are present, continue with step 6.
    5. If the System and Administrators accounts are not listed, add them and give them full control. 

      Windows NT4

      Click Add. Double-click on the user you would like to add.  Grant the user Full Control.  Check "Replace permissions on existing subkeys." Click OK.

      Windows 2000

      Click Add.  In the select users dialog, look in the list for the local machine.  Select the user and double click or click Add.  Click OK.  Grant the user Full Control. 

      Click on "Advanced". Check "Reset permissions on all child objects..." and click OK. Click OK on the main permissions dialog box.
    6. Leave the registry editor open and run the simple upload sample again.  If you still get a Library not registered error, proceed to step 6.

  6. Check the permissions on the specific FileUp registry keys:

    Remain in the HKEY_CLASSES_ROOT window,  and expand the TypeLib key by double-clicking it. You should now be able to see all the sub-keys.

    Scroll down to the following key: {719BOFDA-...7E89}

    Windows NT4

    1. Open the Security menu, and select Permissions.
    2. Make sure that both the Everyone group and IUSR_MACHINENAME have Read access to this folder. Double-click Everyone and verify that following are checked: Query Value, Enumerate subkeys, Notify, and Read Control. Repeat for IUSR_MACHINENAME.
    3. To add a user, and grant the necessary permissions, click Add. Double-click the user you would like to add. Grant the user Read access. Important: Check "Replace permissions on existing subkeys." Click OK.


    Windows 2000
    1. Open the Security menu, and select Permissions.
    2. Click Advanced.
    3. Select the entry "Allow    Everyone     Read    This Key and Subkeys" and click View/Edit. If the entry does not exist, add it, as follows.

      1. Click Add.
      2. Select Everyone from the list of users, and click ok.
      3. Check Query Value, Enumerate Subkeys, Notify, and Read Control. Do not check any Deny boxes.
      4. Check "Apply these permissions to objects and/or containers within this container only."
    4. Make sure the following are checked: Query Value, Enumerate Subkeys, Notify, Read Control, and "Apply these permissions to objects and/or containers within this container only." Do not check any Deny boxes. Click Ok.
    5. Check "Reset permission on all child objects and enable propagation of inheritable permissions." Click Ok.
    6. A security dialog will open ("This will remove explicitly defined permissions..."). Click Yes.
    7. Repeat steps C through F for IUSR_MACHINENAME.


  7. Select the following registry key, and repeat step 6.

          HKEY_CLASSES_ROOT (HKCR)
            \TypeLib
              \E7B62F41-...7E89

  8. Run the simple upload sample. If you still get "Library not registered," proceed to step 9.

  9. Turn on Failure Auditing in the Audit Policy:

    Windows NT4

    1. Open the Control Panel.
    2. Open the User Manager.
    3. Select Policies ->> Audit.
    4. Check "Audit these events," and "File and object access failure."
    5. Click Ok, and close the User Manager.
    6. Reboot.


    Windows 2000

    1. Open the Control Panel.
    2. Open Administrative Tools.
    3. Open Local Security Policy.
    4. Open Local Policies\Audit Policy.
    5. Right-click "Audit object access," and select Security.
    6. Check Failure, and click Ok.
    7. Right-Click Security Settings (left frame), and select Reload.
    8. Close Local Security Settings.
    9. Reboot.


  10. Turn on Failure Auditing in the Registry:

    Windows NT4

    1. From the Start menu, open Run, and enter REGEDT32 to open the Registry Editor.
    2. Select the folder HKEY_CLASSES_ROOT (the highest folder in the HKEY_CLASSES_ROOT window).
    3. Open the Security menu and select Auditing.
    4. Click Add.
    5. Click Show Users.
    6. Double-click IUSR_MACHINENAME.
    7. Click Ok.
    8. Select "Audit permissions on Existing Subkeys..." and check all the failure checkboxes.
    9. Click Ok to close the Registry Key Auditing Dialog. It will take a few minutes for the dialog to close, while the registry is being modified.


    Windows 2000

    Note: On some Windows 2000 systems, these registry auditing options may be greyed out.  If this is true in your case,  just skip the following step.


    1. From the Start menu, open Run, and enter REGEDT32 to open the Registry Editor.
    2. Select the folder HKEY_CLASSES_ROOT (the highest folder in the HKEY_CLASSES_ROOT window).
    3. Open the Security menu and select Permissions.
    4. Click Advanced.
    5. Select the Auditing tab.
    6. Turn on Failure Auditing for all event categories for IUSR_MACHINENAME.


  11. Another useful tool to diagnose registry problems is a free utility from SysInternals called RegMon. It will monitor, real-time, exactly which registry keys any application is attempting to access, the success or failure, and any permissions errors.  You will find Regmon.exe in the ntregmon.zip file attached to this article. The accompanying help file contains the installation instructions.  Please install Regmon and activate it prior to running the simple upload sample.  Then, after a failed upload, capture the output and look for any "access denied" errors.

     

Attachments
Attachments/KB97_ntregmon.zip
Created : 1/15/2003 12:00:00 AM (last modified : 3/26/2008 5:02:29 PM)
Rate this article!
Comments