VisionLab .NET
System.Resources.MissingManifestResourceException
Thread Starter: Daryl Started: 6/3/2008 2:43 PM UTC
Replies: 1
System.Resources.MissingManifestResourceException

All,

I have been able to develop a small new project test application with DsCapture and DsDisplay. That works just fine. When I try to add the same two components to an existing application it compiles fine but breaks at runtime with the following message;

Error message

"An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll

Additional information: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "EPD.Form1.resources" was correctly embedded or linked into assembly "EPD B4" at compile time, or that all the satellite assemblies required are loadable and fully signed."

Code break point

The code that it breaks at is (-->);

     this->dsCapture1->Adjustment = dsAdjustment1;

     dsvlAudioCaptureDevice1->DeviceName = L"Default";

 -->dsvlAudioCaptureDevice1->InternalData = (cli::safe_cast<Vcl::VclBinaryData^ >(resources->GetObject(L"dsvlAudioCaptureDevice1.InternalData")));

     this->dsCapture1->AudioCaptureDevice = dsvlAudioCaptureDevice1;

     audioFormatBasic1->Bits = static_cast<System::UInt32>(16);

Environment

Windows XP, Visual Express C++, .net 2.0, x86

Things I've tried

The assemblies seem to load at runtime (observed on output window)

I've Checked resource paths and they seem good

I've compared the compiler and linker command lines to my test application that works and their identical

I've checked to be sure that Form1 was the first class so resource culture would work properly and that's ok

Anyone have any ideas? Thanks in advance Daryl daryl_ehrmantraut@yahoo.com



Re: System.Resources.MissingManifestResourceException
How are you adding these components? If you are using the toolbox, then you should be Ok if you make the same objects and give them the same properties. If you try to cut and paste the code and the objects, the resources may not be setup correctly in your .resx file, and you will have some problems.