473,387 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Precompiled ASP.NET 2.0 Satellite Assembly

Dear ASP newsgroup,

I have the following environment:

1) VS2005 ASP.NET 2.0 WebApplication called MyApp.

2) MyApp contains Strings.resx, Strings.en.resx and Strings.de.resx in
'App_GlobalResources' folder.

3) MyApp contains standard AssemblyVersion and AssemblyInformationalVersion
that control versioning.

4) MyApp is deployed to "c:\temp" using a web deployment project (MyAppDep)
with the following settings:
a) Allow this precompiled site to be updateable = false
b) Generate debug info = false
c) Merge all outputs to a single assembly = true, assembly name is MyApp.dll
d) Merge options = false
e) Signing = true, delay signing = false, APTCA = false

5) Compiling 'MyAppDep' deploys MyApp to c:\temp.

6) Create IIS application from C:\temp, everything works normally.

Problem:
At runtime all MyApp.resources.dll are ignored! always the neutral
Strings.resx values in MyApp.dll is used. The satellite assemblies always
have version 0.0.0.0 while my MyApp has normal version like 5.2.100.0.
I think the ResourceManager object is not able to load the resource dlls
because they have different versions! why do the satellite assemblies always
have version 0.0.0.0! shouldn't they be identical to MyApp.dll?

I tried two workarounds:
1) I used manually created de and en satellite assemblies that I created
using ResGen and al.exe where I manually set the version and fileversion to
that of MyApp.dll, this didn't not work either the deployed precompiled
MyApp.dll ignored all de and en satellite assemblies ( I even checked the
satellite assemblies version with ildasm and reflector!)

2) Only if I set the Merge option of the web deployment project to 0.0.0.0
then the correct satellite assembly is used and found ( I guess because
MyApp.dll has the same version as its satellite assemblies )

Workaround (2) is not a real solution for my product, I need to change the
version with each build!

Please suggest a solution(s) for me.

Best regards,
Faris Ahmed
Jun 22 '06 #1
0 1477

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

Similar topics

0
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...
6
by: James | last post by:
I have two question regarding the version resource that is generated for a satellite assembly. 1) I have a file in my C# console app project called StringResources.en-US.resx. When I build the...
2
by: Dan | last post by:
I am creating a c# class library project to be used by some exe clients. This library needs to be localized for its text messages using satellite resource-only assemblies; I have created the...
5
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...
1
by: Martin Platt | last post by:
Guys! I've been playing about with some code trying to get the satellite assembly resource files to work. From what I understand you must have a fallback for a particular language, as well as...
3
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!!!!
3
by: gjenglish | last post by:
I have recently migrated an ASP.NET 1.1 web application to ASP.NET 2.0. In this application I am storing all my resources in satellite assemblies and I am accessing them via the ResourceManager...
1
by: scpedicini | last post by:
Let's say that I've built an assembly, called myapi.dll whose default resource messages are english. Then let's say I create a german satellite assembly for the assembly called...
1
by: archana | last post by:
Hi all, I am developing satellite assembly. I have resource file string.resx When i create it in another version say string.de.resx its corresponding folder that is de is getting creating which...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...

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.