andy1 Posted September 19, 2004 Posted September 19, 2004 Hello, I have two projects in a solution that link to common files. One of the projects runs fine, but the other one gives an error when it tries to load a resource: 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 "Form1.resources" was correctly embedded or linked into assembly "link2". baseName: Form1 locationInfo: link2.Form1 resource file name: Form1.resources assembly: link2, Version=1.0.1722.33346, Culture=neutral, PublicKeyToken=null at the line: Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image) What it seems to be doing is creating a .resources file under the first project's namespace for both the first project and the second project. Can anyone help me with this problem? Quote
jedbartlet Posted September 19, 2004 Posted September 19, 2004 A slightly simplistic solution maybe but why don't you just create a second copy of the resource files you are trying to access with both applicatios and run an update everytime they gey altered? Quote
Administrators PlausiblyDamp Posted September 19, 2004 Administrators Posted September 19, 2004 Could you not compile the shared files into a DLL and then reference that DLL from both projects? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
andy1 Posted September 19, 2004 Author Posted September 19, 2004 Thank you for your replies. @jedbartlet: I've already tried that and it doesn't work because every time I run my program VS creates the resource files and packs them into the exe that it compiles. @PlausiblyDamp: That might be difficult for what I am doing. First I want to see if I can just link the files. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.