Solved

Package & Deployment Error

Posted on 2002-03-22
9
238 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
Comment Utility
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
Comment Utility
The directory for the PDW is

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

Author Comment

by:DSE
Comment Utility
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
Comment Utility
Glad I could help.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 8

Expert Comment

by:glass_cookie
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Pleasure !!
0

Featured Post

Highfive Gives IT Their Time Back

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!

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

763 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

7 Experts available now in Live!

Get 1:1 Help Now