Using Images of Satellite Assemblies

  • Thread starter Bilal Farooq via .NET 247
  • Start date
B

Bilal Farooq via .NET 247

(Type your message here)

--------------------------------
From: Bilal Farooq

Hi,

I have following requirements to achieve: I have some images andI am adding them as a resource to a dll. This dll is then to beused for getting those images by the other clients.
Now to do so first I generated a .resx file which includes allthese images in the xml form. Then I convernted .resx to.resource file using resgen.exe. After this I used al.exe togenerate .resource.dll from .resource file using neutralculture. Once done, I implemented a .cs file which has all thosepublic getter methods for interface for the clients. I thencompiled it and attached the .resource.dll file I earlier made.
Now when I am using this dll in some client, I get a runtimeerror "An unhandled exception of type'System.IO.FileNotFoundException' occurred in Unknown Module."
I couldn't figure out whats wrong with it. Can some one help meout?

Thanks
Bilal
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

Ensure you follow all naming and location conventions for satellite
assemblies. These should be outlined in MSDN. Start with the following
articles (mind the line wraps):

http://msdn.microsoft.com/library/d...ide/html/cpconcreatingsatelliteassemblies.asp

http://msdn.microsoft.com/library/d...-us/cpguide/html/cpconlocalizingresources.asp

Also bear in mind that culture-neutral resources should remain in the main
assembly as they are expected to be there by the resource fallback process.
You can also use the Fusion Log Viewer (fuslogvw.exe) tool to determine
which assembly cannot be located and which locations have been actually
probed.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

(Type your message here)

--------------------------------
From: Bilal Farooq

Hi,

I have following requirements to achieve: I have some images and I am
adding them as a resource to a dll. This dll is then to be used for getting
those images by the other clients.
Now to do so first I generated a .resx file which includes all these images
in the xml form. Then I convernted .resx to .resource file using resgen.exe.
After this I used al.exe to generate .resource.dll from .resource file using
neutral culture. Once done, I implemented a .cs file which has all those
public getter methods for interface for the clients. I then compiled it and
attached the .resource.dll file I earlier made.
Now when I am using this dll in some client, I get a runtime error "An
unhandled exception of type 'System.IO.FileNotFoundException' occurred in
Unknown Module."
I couldn't figure out whats wrong with it. Can some one help me out?

Thanks
Bilal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top