Hi,
I am creating a solution with two projects. Basically, they share a
few common class files and forms. I finished one project, and it
compiles and runs fine. I just finished bringing in the second
project, and I get the following error on one of the forms when it is
invoked:
-----------------------------------------------------------------
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) in the given assembly.
Make sure "FormLogin.resources" was correctly embedded or linked into
assembly "WebTMS_Administration".
baseName: FormLogin locationInfo: WebTMS_Administration.FormLogin
resource file name: FormLogin.resources assembly:
WebTMS_Administration, Version=1.0.1389.16480, Culture=neutral,
PublicKeyToken=null
-----------------------------------------------------------------
The error is due to a PictureBox that contains an image. The funny
thing is that this SAME form is used in my first project and runs
fine.
I would think that sharing forms across two projects in one solution
would be a relatively common thing to do. I have tried removing and
re-adding the form (They are added to the project by using the "Link
File.." option when doing a "Add --> Add Existing Item..." on the
project.) I even added the image files to the project and also tried
setting the image file's "Build Action" to "Embedded Resource" without
any success. I also tried re-setting the image reference. I also
tried removing the re-adding the form. Nothing seems to help.
Has anyone else shared a form across two projects in one VS.NET 2003
solution and come across this problem? I'm sure it's due to the image
file being referenced, but this form was added to both projects in
exactly the same way - so I would think that it would work in BOTH
projects or NONE, but not just 1 of them..
Of course, I'm on a tight schedule.. I'll probably have to rip the
projects out and make new ones so I can get my programs to work.
Thanks for any help,
// CHRIS