473,508 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using Images of Satellite Assemblies

(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

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>HJO3tP5TLEC/ySkEAHZk9A==</Id>
Nov 16 '05 #1
1 2310
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/de...assemblies.asp

http://msdn.microsoft.com/library/de...gresources.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

"Bilal Farooq via .NET 247" <an*******@dotnet247.com> wrote in message
news:uC**************@TK2MSFTNGP09.phx.gbl...
(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

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>HJO3tP5TLEC/ySkEAHZk9A==</Id>

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1912
by: Vaishali Patel | last post by:
Hi, I am developing a windows based application that implements the concept of Internationalization. I intend to achieve the same using Satellite Assemblies. Can anyone lead me to useful sample...
0
1195
by: Mário Sobral | last post by:
Hi, I created an assembly (let's call it assembly (B)) that returns a localized resource for a given key (similar to System.Globalization.ResourceManager). I checks if the caller assembly (let's...
0
1145
by: John | last post by:
Hi, i have two Projects A, B. Both have satellite assemblies (for internationalization). B depend on A. After compilation, the satellite assemblies from B (B\bin\Debug\en) are in A\bin\Debug\en....
8
4890
by: nbaiju | last post by:
Hi, I am building a asp.net application which has satellite assemblies. When building the satellite assemblies dll's from Visual Studio 2003 GUI the application works fine . i.e. the resource...
1
6915
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
5
10048
by: Rudolf Ball | last post by:
Dear NG, i want to load a plugin (WinForm) in my Applikation. That works fine. Now I want to globalize that plugin. So I have to load the Satellite Assembly, as well. But how can I load this...
3
2130
by: BBC1009 | last post by:
Don't know why when rebuild VB.Net project (vb.net 2002 framework 1.0), this error comes out suddenly. Anyone can help. Thanks!!!!
1
1476
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Hi What determines if the Satellite assemblies should be in a dir "de-DE" or "de" I built some satellite assembles with resource files resourcefile.de-DE.resx and my app finds these in /de-DE...
0
1032
by: Nader | last post by:
I'm trying to use satellite assemblies in my web application. I got a problem with loading resource files. I have the falowing code: protected ResourceManager GetStrings = new...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7382
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3181
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.