Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help - Runtime error 68

Status
Not open for further replies.

cassandra

Programmer
Oct 10, 2000
21
US
Hi guys,
I have a small labels project that executes fine on my PC, but when I try and install in on a different workstation I get an error that "can't register appwiz.ocx". If I ignore this error, when I try and run the app I get error 68 - Device unavailable. I am using a network printer and there is no problem with the logical connection between PC and the printer.

Any kind of advice is greatly appreciated.

Cassandra
 
it seems to me that the program your running uses special DLL's and OCX's. So you can't jsut move the EXE. You have to install it with an installation package. Craig, mailto:sander@cogeco.ca

"Procrastination is the art of keeping up with yesterday."

I hope my post was helpful!!!
 
I am sorry if I gave the impression that I am just moving the .exe because I am actually trying to install the app using the setup.exe which I created using the Package and deployment wizard. I also tried just running the application after ignoring the installation errors and I get another error 3706 - can't find the specified provider.

Thanks for your help.

Cassandra
 
There appears to be a know issue with appwiz.ocx, Microsoft suggests to register the OCX manually.

RESOLUTION
To resolve the issue the Add-Ins need to be registered for each user. There are two possible ways to update the registry with the necessary information:


Manually register each Add-In for each user using the Regsvr32.exe utility. For example, the following command line shows how to register the Package and Deployment Wizard Add-In:

<Path to regsvr32.exe>\regsvr32.exe <Path to Add-In>\pdaddin.dll

NOTE: The above line should be modified to reflect the correct path information.

This workaround would have to be done by each user and for each Add-In the user requires. For a list of available Add-Ins and where they are located please see the &quot;More Information&quot; section in this article.


Export the necessary registry entries and import them into the registry while logged in as the appropriate user. The steps below describe how to do this:


Step-By-Step
IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the &quot;Restoring the Registry&quot; Help topic in Regedit.exe or the &quot;Restoring a Registry Key&quot; Help topic in Regedt32.exe.

Log in to the machine using the installing users account.


Run the Registry Editor, RegEdit.Exe.


Locate the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Visual Basic\6.0\Addins


Choose Export Registry File from the Registry menu to create a .Reg file.


Follow steps 3 and 4 again for the following key:

HKEY_CURRENT_USER\Software\Microsoft\Visual Basic\6.0\AddInToolbar


Logoff the NT machine.


Log on as a different user.


Locate and double click the two .Reg files created above to update the registry with the proper information.


Once all the Add-Ins are available to you, you may run into the following error when you attempt to create a data form in the Application Wizard:

You do not have the proper license to load the Data Form Wizard. You must have the Professional or Enterprise edition of Visual Basic Installed!

To resolve this error, follow these steps:

Log into your computer as a user who is a member of the Administrators group.


Click the Start button, and then click Run. In the Open box, type &quot;regedt32&quot; (without the quotation marks), and then click OK.


In the HKEY_LOCAL_MACHINE window, double-click Software, then double-click Classes, and then double-click Licenses.


While Licenses is open, click Permissions on the Security menu.


In the Registry Key Permissions dialog box, click to select the &quot;Replace Permission on Existing Subkeys&quot; check box. In the Name list, click Everyone once so it is selected, and then click Full Control in the Type Of Access list. Click OK.

You can read more about it here:
Craig, mailto:sander@cogeco.ca

&quot;Procrastination is the art of keeping up with yesterday.&quot;

I hope my post was helpful!!!
 
Thanks Craig.
That worked fine but I still get error 3706 - &quot;can't find the specified provider&quot;. I am using a data environment for my connection and the provider is Microsoft Jet 4.0 OLE DB.

Cassandra
 
Do you have the latest MDAC. Also what is your exact connection string. I have a utility to test the connection and I could tell you what's wrong with it. Craig, mailto:sander@cogeco.ca

&quot;Procrastination is the art of keeping up with yesterday.&quot;

I hope my post was helpful!!!
 
My connection code for the connection is:

Set mcnAP = New Connection
mcnAP.Open &quot;Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=c:\LABELS.mdb&quot;

The program runs fine on PC's with VB installed but does not find the provider after I install it on workstations without VB. I have the latest MDAC, but am still puzzled.

Thanks for all your help Craig.

Cassandra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top