Solved

Package & Deployment Error

Posted on 2002-03-22
9
243 Views
Last Modified: 2013-11-22
Hi,

I'm trying to package my VB program but every time I try to do so I receive an error message:

Error 457 - This key is already associated with an item of this collection.

I can make an executable of this program easily enough but I require that it is packaged with all of its dependant files.

Can anyone help with this error?

Thanks,

David.
0
Comment
Question by:DSE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
  • 2
9 Comments
 
LVL 10

Accepted Solution

by:
smegghead earned 75 total points
ID: 6888259
Have you got the latest VB service pack ??? I know this fixes some errors with PDW.

Or possibly, you've got more than one reference with clashing library / class names.

I'm pretty sure, also, that the source code for the PDW comes with the Visual Studio release, so you can actually load it and run it as a VB project, then if it falls over, you can see what it's trying to do.

Smg.
0
 
LVL 10

Expert Comment

by:smegghead
ID: 6888330
The directory for the PDW is

Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1
0
 

Author Comment

by:DSE
ID: 6888337
Thanks Smg,

I did have a reference to a library in both the components and references.

Can't believe I didn't see that!!!...and why couldn't the error message have said what it was! :-)

Thanks,

David.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 10

Expert Comment

by:smegghead
ID: 6890101
Glad I could help.
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6890332
Hi!

My comment would only be applicable if you did not use any 3rd party ocx files and that you didn't call and dll calls from dll files that fd o not come with the particular version of windows you're sending your proggy over to.

Actually, your program does not need all those dll fils that are packaged together with it.

What you need to do to export your file is this:

Zip up all the ocx files that you've used, + your VB app exe file and the VB runtime file (Msvbvm60.dll).  These dll and ocx files can be found in the C:\Windows\System folder or your system folder.

Make a self-extracting exe file that will unzip everything INTO A FOLDER, not seperate folders.  Your app, upon extraction should run fine from there :)

Oh yes, include any database, text or help files in the self-extracting exe file if need be.

That's it!

glass cookie : )
0
 
LVL 10

Expert Comment

by:smegghead
ID: 6890598
hmmm,

If every software release did this, we'd have a rediculous number of ocx/dll's on our machines...

Also, things like service packs / upgrades to shared dll's wouldn't be applied to every copy of msvbvm60.dll, just the one in the system folder.

0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6892005
Well, he could shift the runtime files to C:\Windows\System folder if you want all VB apps to run using 1 system file in the PC, but someone once told me not to do it.

: )

glass cookie : )
0
 

Author Comment

by:DSE
ID: 6892184
sorry for the delay...i was sure I accepted your comment already...was surprised to see comments being added still :-)

anyway, thanks for your help,

David.
0
 
LVL 10

Expert Comment

by:smegghead
ID: 6892187
Pleasure !!
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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