Last post May 17, 2007 05:23 AM by vivek_iit
May 07, 2007 03:01 PM|manasbbsr|LINK
I have a special requirment in my project where i want to create and deploy culture based satellite assembly through anathor web site. How to do that? Is there any way present in .net?
I have two web applications. From one user can chnage the resources to be used in 2 nd application. I am writing the 2nd one where these resource are going to use.
If i will go for satellite assembly concept for the 2nd application. Then without restarting the application how can i generate these resources from my first application.
Is it possible? ( Without going for any DB approach, may be some xml approach ?)
May 08, 2007 09:15 AM|vivek_iit|LINK
Unfortunately the moment you change/update the contents of the /bin folder, the application restarts, which is neccessary to refresh the cached data. So the only way to avoid having an application restart is to have a DB based approach.
Hope this helps,
May 09, 2007 02:12 AM|manasbbsr|LINK
Thanks for the suggestion. But my Question is something else?
Can i programitically create and update satellite assembly? ( May be through Assembly Builder Class ) Any Idea?
I am sure there should be some way present in .NET to do this.
If you put any .NET assembly in BIN the Application refresh occures but it never restarts. So if i can create satellite assembly through my first application then i can apply the new resources to be used for second application?
May 09, 2007 02:27 AM|vivek_iit|LINK
You can create satellite assemblies programmatically but you will not be able to stop the application restart. Check out this article for details:
May 14, 2007 12:55 AM|manasbbsr|LINK
The article u have provided is only one avilable in NET to create Assembly on the fly ( i had seen it before ). But it never describes how to create satellite assembly, Link the resource file to that assembly( AL programitically ) and all the steps required
to do programitically to achive the goal.
I can see your strength on L18N and I18N. I know you can provide all the steps in this thread.
Thanks for your help in advance.
May 15, 2007 01:56 AM|vivek_iit|LINK
You can call resgen.exe and al.exe programmatically too, see this article on the same topic (read the second page):
May 16, 2007 01:43 AM|manasbbsr|LINK
I have gone through that article. But all the AL and ResGen utility are mentioned either in command prompt or in batch file. No direct way to use the AL Class or ResGen class.
My question is still we can not achive this to move these code in a c# class since it is a batch file???
Auther is more keen to implement everything in command prompt.
Any one has Idea how to generate Satellite assembly using namespace of
Microsoft.Build.Task namespace there you will get AL and other Utility??
Thanks in advance
May 17, 2007 05:23 AM|vivek_iit|LINK
You can call these exes through code using the Process class under System.Diagnostics namespace.