Solved

Package & Deployment Error

Posted on 2002-03-22
9
240 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
  • 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
 
LVL 10

Expert Comment

by:smegghead
ID: 6890101
Glad I could help.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

932 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

14 Experts available now in Live!

Get 1:1 Help Now