473,395 Members | 1,437 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,395 software developers and data experts.

Me vs. VS2003 IDE Part 2: The config-settings that wouldn't die

Hello everybody,

I put this in a separate thread because altough it is connected to the localization-problem in my former thread this is a completely
different "joke" of the IDE.

While waiting for some hint on how to include my own ressources in IDE-generated satellite-assemblies (because there can only be on
assembly per each language) I decided to try to use the XML-editor for the IDE-generated .resx-files again.

I noticed that the IDE starts with the .resx-file for the language which is currently set as the form's property. As soon as you
change the language property of the form the IDE will inadvertedly rewrite the current .resx-file (removing all entries made by
myself) and open the one of the language you have switched to. Thus, for the moment, I provided all elements with neutral and
localized language texts in the designer and afterwards added my own strings with the XML-editor to the neutral .resx-file and to
the localized .resx-files. As long as I do not switch language properties of the form again these files will remain untouched.

I rebuilt the project and noticed, that the MyApp.exe in the obj\Debug-directory will correctly load MyApp.resources.dll, but not so
the MyApp.exe in the bin\Debug-directory (checked it with FusLogVW).

The difference lies in the MyApp.exe.config-files:

Earlier I had tried to add some dynamic properties to some elements in the form. Although I had removed these later on the
config-file in bin-directory still contained the entries in the <appsettings>-section.

The config-file in obj-directory only contained

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
</assemblyBinding>
</runtime>

which can not be found in the other config-file.
Some things are striking here:

- The <assemblyBinding> - element gives no information (redirection or the like), yet it is obviously necessary for the application
to load the satellite-assemblies.

- It is the only element in the obj-config-file but omitted in the bin-config-file. On the other hand the <appsettings>-section does
not appear in the obj-config-file.

- Adding the <runtime>-section to the bin-config-file will not work, still the assemblies are NOT loaded. Only completely removing
the <appsettings>-section and putting in the <runtime>-section (which essentially means copying the obj-config-file to the
bin-directory) will lead to success.

- Upon building the project the IDE recovers the bin-config-file (only <appsettings>-section again), although I already removed the
dynamic properties earlier. I wonder from where the IDE has got this information.
The IDE might be helpful, but this goes a little bit far. Can someone explain me if I am doing something wrong?

How can I prevent the IDE from overwriting my changes to the config-file in bin\Debug?

How can I include BOTH <assemblyBinding> and <appsettings> information so that assembly-loading still works?

Why is there a difference between config-files in bin- and obj-directories?
Best regards
Rolf


Nov 17 '05 #1
1 1542
O.k., I hope that I'm not only talking to myself all the time :-) ...

Some update on the MyApp.exe.config-file in bin\Debug-directory:

It is NOT about the <assemblyBinding>-section (which does not give information at all) that satellite-assemblies are not loaded. If
I delete the MyApp.exe.config-file in bin\Debug the satellites are loaded perfectly.

Thus my conclusion is:
Not the (empty) <assemblyBinding>-section does detain the application from loading the satellites but rather does the presence of
the <appsettings>-section (which contains formerly removed dynamic properties).

This returns a BIT of believe in Logic to me since an empty <assemblyBinding>-section really should not affect the way assemblies
are loaded.

But still:

Why can assembly-loading and presence of an <appsettings>-section in the MyApp.config.exe not cohabitate? What should I do if later
on I indeed want to make use of dynamic properties?

Why does the <appsettings>-section reappear upon building even if I removed the dynamic properties in designer and manually deleted
the section from MyApp.exe.config?

I appreciate if someone even asked what I'm talking about :-)

Regards
Rolf
Nov 17 '05 #2

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

Similar topics

3
by: Rolf Molini | last post by:
Hello board, I just started looking into C# - programming and find it quite applicable for very rapid development scenarios. But the handy support that the IDE provides has now run me into...
1
by: Neven Klofutar | last post by:
Hi, Can anyone tell me what exactly happens when VS2003 creates new web project, what kond of permission it creates and where ... I can see that by default, it tries to make new virtual...
0
by: Richard | last post by:
Hi All, I'm having some difficulties with vs2003 and w2k3. The w2k3 Web Edition install is totally new in a VMWare box. I have added ASP.NET v1.1.4322 to the config and allowed it in Web Service...
7
by: tonelab | last post by:
I currently have VS2003 .net 1.1 installed with a number of 1.1 projects built in it. All of these projects create the /bin dll for deployment and have been running on remote servers that have the...
1
by: Troy Tarrant | last post by:
Hi, I've installed vs2005 and then tried to run an 2003 web application under VS2003 and get an IIS 500 error with two event log messages: aspnet_wp.exe could not be started. The error code...
0
by: zacks | last post by:
Like an idiot, I recently uninstalled VS2003. It wasn't long before I realized my mistake. I uninstalled VS2005 thinking I would need to before I re-installed VS2003. The uninstall of VS2005 went...
2
by: hazz | last post by:
If I built a console app to also run as a service using VS2003 and deploy the service on a box that has only .NET 2.0 on it, will it work? Why or why not? thx. -greg
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
4
by: Tony Girgenti | last post by:
Hello. I developed a VS.NET2003(VB), ASP.NET web application client program with ..NET Framework 1.1, ASP.NET 1.1, IIS 5.1 and WSE 2.0. I tried to migrate it to VS 2005 Pro(VB), Web...
2
by: piercy | last post by:
Hi, ive developed an application which writes and xml file for the binding redirects. i need this app to be able to receive command line parameters. so when form is executed normally it will ask...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
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
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...

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.