473,666 Members | 2,354 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. FileNotFoundExc eption' 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>HJO3tP5TL EC/ySkEAHZk9A==</Id>
Nov 16 '05 #1
1 2319
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*******@dotn et247.com> wrote in message
news:uC******** ******@TK2MSFTN GP09.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.File NotFoundExcepti on' 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>HJO3tP5TL EC/ySkEAHZk9A==</Id>

Nov 16 '05 #2

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

Similar topics

1
1930
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 applications by which the same can be achieved dynamically. What I intend to do, is provide the client application with a set of Satellite Assemblies. On initialization of application, based on the culture setting for a particular
0
1208
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 call it assembly (A)) has a satellite assembly (let's call it assembly (sA)) with localized resources. If it exists, it gets the resource with the given key and returns it, otherwise it reads information from a support database and dinamically...
0
1155
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. But if i run the debuger, the satellite assemblies from B was not copy to emulator. thanks, John
8
4938
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 dll's of different cultures are loaded correctly. But When I build the satellite assemblies dll's using al.exe the application defaults to the culture neutral strings. I am using the command line below to build my resource dll's. al /t:lib...
1
6929
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 compiling the Max.UI.Win project with the following error Satellite assemblies could not be built because the main project output is missing.
5
10053
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 (and when?). Thank you very much Rudi
3
2145
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
1479
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 but I also have a third party app satellite assemblies and they must be in /de Is it the extension that matters resourcefile.de-DE.resx - has to be in /de-DE
0
1042
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 ResourceManager("StringsFallback", typeof(Satellite).Assembly); This should load the resources stored in the StringsFallback assembly file. Actually I don't realy know what exactly I should put at the second argument... And I get this error message:
0
8440
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8866
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7381
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6191
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4365
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2769
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.