Strange things happening in the IDE
-
I'm working on a C# WinForms app in VS 2003. I have a user control, VUPeakMeter, which does nothing (it did do stuff, but because of this problem I've stripped it down, it now does nothing at all). I can include this user control on a form, the IDE doesn't seem to mind that. However, I have another user control, AudioPlayer, which uses VUPeakMeter. This control seems to be fine. In code, I can create an AudioPlayer in a form, and it runs and does what I'm after. If I view the form in the IDE the AudioPlayer disappears from the form and the IDE removes all the code related to it from my CS file, with the following message placed in the task list:
An exception occurred while trying to create an instance of AudioPlayer.AudioPlayer. The exception was "File or assembly name VUPeakMeter, or one of its dependencies, was not found.".
I get exactly the same message, except in a message box, when I try to drag an AudioPlayer from the toolbox to the form. FYI: I have checked the references are all okay. So I can use the control in code, but not in the form designer (which I could kinda do with!). Has anyone seen this problem, or can anyone give me a clue as to how to find out which dependencies it could be going on about? Maybe related: sometimes I can't compile the VUPeakMeter as the VUPeakMeter.dll and VUPeakMeter.pdb files are not accessable. I can't delete them either until a restart the IDE (it's using them I guess). What I do to get round that is rename the files and then the IDE can produce them.
- Dy