build wants to modify web.config

G

Guest

I have an asp.net solution with a web deployment project.

When we try to build/debug, we get the message:


An editor or project is attempting to check out a file that is modified in
memory, which will result in saving it. Saving files during the build process
is dangerous and can result in incorrect build outputs in future. Do you want
to continue with the check out?

If you check the web.config file out of VSS you don't get the message.
If you do a compare on the web.config, the only differences after the build
are that it reformatted some sections. For examples removing empty lines in
the connection strings section.

Why does this happen?
 
S

Steven Cheng[MSFT]

Hi Chuck,

From your description, you have an ASP.NET 2.0 web project which use "Web
Deployment Projecct" to build, however, when you build the WDP, it will
always report the following message, correct?

=================
An editor or project is attempting to check out a file that is modified in
memory, which will result in saving it. Saving files during the build
process is dangerous and can result in incorrect build outputs in future.
Do you want to continue with the check out?
==================

As for this behavior, I think it should be specific to the VSS source
control environment. When you build the web deployment project, it may try
ensure all the files that has been at a stable version or is checked out
from source control. Is the file mentioned in the message the only that has
not been checked out? Also, as you said that the only difference from the
web.config file is the empty string has been removed, have you also checked
the version in VSS to see whether it is actually make the one in VSS
replace your current project's web.config file? To further verify this,
you can try creating a simple web project which contains some files that
are not checked out in VSS and try the web deployment project to see
whether building task will report such message. If so, we can determine the
behavior here.

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top