|
-
Aug 2nd, 2007, 12:32 PM
#1
Thread Starter
Lively Member
Unexpected error number 457 has occurred...
... This key is already associated with an element of this collection.
I am trying to create a package... and this cryptic message shows up. Any thoughts???
I am running VB6/SP6.
-
Aug 2nd, 2007, 12:35 PM
#2
Re: Unexpected error number 457 has occurred...
Any chance to see your code with pointers to where the error occur?
-
Aug 2nd, 2007, 12:37 PM
#3
Thread Starter
Lively Member
Re: Unexpected error number 457 has occurred...
that's the problem... no code to reference. This is happening in the Package & Deployment Wizard. It just pops this up and that is that.
Pretty useless, don't you think?
-
Aug 2nd, 2007, 12:37 PM
#4
Re: Unexpected error number 457 has occurred...
Somewhere, you've already added something into that collection the key you are trying to use, i.e.: if you've already used the key "thisismykey" when you added an object to that collection, and you try to add something else with the key of "thisismykey" then it will throw an error becuase that key is already in use.
*upon seeing the near-instantanious replies ahead of mine, and seeing that it doesn't involve the actual code, ignore this post.
-
Aug 2nd, 2007, 12:38 PM
#5
Thread Starter
Lively Member
Re: Unexpected error number 457 has occurred...
yea, but I haven't added anything to any collection!
I have checked my references and components in the application, and see nothing wacky. I will check again.
-
Aug 2nd, 2007, 12:41 PM
#6
Re: Unexpected error number 457 has occurred...
 Originally Posted by realbogus
that's the problem... no code to reference. This is happening in the Package & Deployment Wizard. It just pops this up and that is that.
Pretty useless, don't you think?
Do you remember which screen was showing when it happend?
-
Aug 2nd, 2007, 12:42 PM
#7
Thread Starter
Lively Member
Re: Unexpected error number 457 has occurred...
I found it!
I had a control referenced twice... once as an OCX and again as an OCA.
I removed the OCX reference, recompiled and it seems to be a-ok!
I will test more.
-
Aug 2nd, 2007, 12:43 PM
#8
Re: Unexpected error number 457 has occurred...
 Originally Posted by realbogus
... This key is already associated with an element of this collection.
I am trying to create a package... and this cryptic message shows up. Any thoughts???
I am running VB6/SP6.
That's very strange. I've created dozens of installation packages using the P&D Wizard without ever getting that error. I think you have two choices to resolve the problem: 1) Use Inno/Inno Script or some other 3rd party installer, or 2) edit the P&D Wizard (Setup1.VBP) and see if there is a collection inside and then use appropropriate debugging techniques.
-
Aug 2nd, 2007, 12:45 PM
#9
Thread Starter
Lively Member
Re: Unexpected error number 457 has occurred...
it is a strange error, indeed.
I am in the process of creating the package... how does one select a silent install??? hm... time to do more research.
-
Aug 2nd, 2007, 12:47 PM
#10
Re: Unexpected error number 457 has occurred...
 Originally Posted by realbogus
... how does one select a silent install??? hm... time to do more research.
Why do you need to do that?
-
Aug 2nd, 2007, 12:48 PM
#11
Thread Starter
Lively Member
Re: Unexpected error number 457 has occurred...
for network deployment...
-
Sep 2nd, 2010, 05:38 AM
#12
Member
Re: Unexpected error number 457 has occurred...
Hi,
This error is usually seen if you kept Error Trapping to "Break on All Errors" instead of "Break on Unhandled Errors".
IN VBE, goto Tools, Options, General Tab, Error Trapping > "Break on Unhandled Errors".
-
Sep 2nd, 2010, 09:43 AM
#13
Re: Unexpected error number 457 has occurred...
 Originally Posted by sifar786
Hi,
This error is usually seen if you kept Error Trapping to "Break on All Errors" instead of "Break on Unhandled Errors".
IN VBE, goto Tools, Options, General Tab, Error Trapping > "Break on Unhandled Errors".
Please do us a favor and check the date of a thread before you answer. This one was 3 years old.
-
Sep 2nd, 2010, 09:48 AM
#14
Member
Re: Unexpected error number 457 has occurred...
Hi Martin,
I left it because, no matter how old the thread may be, people like me do come across such issues and would like to share the possible solution, if found, with other people.
If its too old for you, you need to make sure to close the thread to avoid further replies. Why have you kept it open?
-
Sep 2nd, 2010, 09:56 AM
#15
Re: Unexpected error number 457 has occurred...
 Originally Posted by sifar786
Hi Martin,
I left it because, no matter how old the thread may be, people like me do come across such issues and would like to share the possible solution, if found, with other people.
If its too old for you, you need to make sure to close the thread to avoid further replies. Why have you kept it open?
We have tens of thousands of threads and threads are only closed in rare cases when there's a problem of some sort with the thread. If you want to discuss this further please PM me.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|