web.config get scrambled

  • Thread starter Thread starter sck10
  • Start date Start date
S

sck10

Hello,

Occasionally, my web.config file will get scrambled and I have no idea why.
Has anyone else experienced this problem? Thanks, sck10...

It goes from this:

<add
name="ConnOracleIPS2"
connectionString="DATA SOURCE=kms_snap.ih.lucent.com;
USER ID=ips;
PASSWORD=p30pl3"/>

to this:

<add name="ConnOracleIPS2" connectionString="DATA
SOURCE=kms_snap.ih.lucent.com;
USER ID=ips;

PASSWORD=p30pl3"/>
 
Hello Steve,

From your description, you found that your ASP.NET web application's
web.config will be changed randomly ,correct?

As for this issue, I'd like to confirm the following things:

1. Is this a common issue with all the web applications in your development
machine or specific to the particular web site project?

2. is the connectionstring section you posted the only fragement that will
be scrambled?

3. Can you definitely repro this problem behavior by performing some
certain actions in the VS 2005 ide?

So far based on my experience, the IDE will only change web.config when we
add some strong-name assembly reference, or there is any program that
change it externally (such as the web admin site)...

Please feel free to let me know if there is anything else you find.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Steven,

This only happens on the development machine and even though intermittent,
many times, it would happen after I ran "Start Debugging".

The sections that would be affected were contained to:
<connectionStrings>...</connectionStrings>
and
<appSettings>...</appSettings>

Thanks, sck10
 
Hi,
This only happens on the development machine and even though intermittent,
many times, it would happen after I ran "Start Debugging".

The sections that would be affected were contained to:
<connectionStrings>...</connectionStrings>
and
<appSettings>...</appSettings>

I experienced the same problem a while ago, but only regarding my
connection-strings.
That is, only if I included line breaks within the string-tags, which I
included for readability. After I removed them I never experienced that
issue again.

Cheers,
Olaf
 
Thanks for Olaf's informative input,

Hi Steve,

Please feel free to let post here if Olaf's suggestion helps you on this
issue or if you still need any furher help on this.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top