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

Wierd change in VS2008 SP1 breaks my app??

I've found a change in SP1 that doesn't seem to make sense to me, but seems
to be there nonetheless.

The situation is this... I have an application that stores it's
configuration in a file in the Application directory. If the application
is called "MyApp.exe", the configuration file is "MyApp.config". Note that
this is not the same as "MyApp.exe.config" which is where the .NET-based
XML-format configuration normally goes. This configuration file, the
MyApp.config, is encrypted binary data - not XML data as would go in the
MyApp.exe.config.

Well... I built my application in VS2008 SP1, now all of a sudden I start
getting error messages saying "Configuration system failed to initialize"
with the error essentially coming from the constructor of a TCPSocket.

After a bit of testing, I've come to the conclusion that when built in
VS2008 SP1, the application first attempts to look for MyApp.exe.config,
and if it doesn't find it, will then try to look for MyApp.config. In my
case, it finds the second file, and tries to load it as XML, which
obviously fails.

I determined this with several bits of evidence:

1. A previous version of the EXACT same code that was compiled pre-SP1 had
no problems executing

2. I used FileMon and DebugView from SysInternals to see the details of
what files were being accessed and when

3. The kicker came when I decided to create an essentially empty
MyApp.exe.config file (just an XML header and an empty 'configuration'
section). After creating this file, voila! Everything now works, no
complaints... No changes to the binary code necessary.

BUT... it doesn't make sense to me, because the code that is loading the
configuration file should be part of the Framework, which HASN'T changed on
my test box... it doesn't make sense to me that a change in the
development environment, and a recompile of the APPLICATION binaries would
cause this type of change... it should only be if the Framework changed
that I would expect to see this...

Can anyone confirm that this change has indeed occurred in VS2008 SP1, and
if so, why does it affect my unchanged test machine??

-mdb
Sep 10 '08 #1
0 1031

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

Similar topics

0
by: Michael | last post by:
Hi, I found a wierd problem in DataGrid. If I set DataGrid's DataSource to empDataSet1 at designtime, then I can never change its DataSource at runtime, e.g., in the Button1_Click event...
8
by: John Nagle | last post by:
Here's a wierd problem: I have a little test case for M2Crypto, which just opens up SSL connections to web servers and reads their certificates. This works fine. But if I execute ...
4
by: K Viltersten | last post by:
We have a project working well today and it's developed on VS2005. Since we're planing to switch to VS2008 in a soon future, i've been trying to move the project to VS2008 Express (Web...
5
by: K Viltersten | last post by:
We have a project working well today and it's developed on VS2005. Since we're planing to switch to VS2008 in a soon future, i've been trying to move the project to VS2008 Express (Web...
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:
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...
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.