Last post Apr 21, 2010 03:26 AM by Shruthi_Guptha
Mar 18, 2009 09:04 PM|JK883|LINK
I have several ASP.NET 3.5 applications, and suddenly the web.config only displays in black and white (and no intellisense), as if it's not being recognized as a proper file.
Even new applications I create have the formatting issue in the file. What would cause this and how do I get it back.
Mar 19, 2009 02:35 AM|m.k|LINK
This happens if web.config is modified using external editor or tool. Close your visual studio & open it again.
Mar 19, 2009 02:51 AM|omalbose|LINK
It happens when make mistakes in web.config file ie, don't close the xml tags properly etc. The best way to tackle it is to just back up your web.config file and then remove it from your project. Then add a new configuration file
to the project and make the changes you want perform.
You can refer your back up copy for changes you made in the past
Mar 19, 2009 03:22 AM|avicool08|LINK
in your web.config there will be a tag as follows:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"> or 3.5
remove the xmlns and try
Mar 19, 2009 03:24 AM|avicool08|LINK
take bakup before doing any changes!!!
Mar 25, 2009 04:27 PM|JK883|LINK
So on further investigation, it's not the xmlns issue, but seems to be all XML files. Going into VS 2008 =>> Options =>>Text Editor =>> XML =>> Formatting, it says "An error occurred loading this property page".
I found a post with some similar symptoms, and resloved my issue by running "devenv /setup" from a VS 2008 command prompt.
Thanks for everyones advice!
XML Formatting lost
Apr 21, 2010 03:26 AM|Shruthi_Guptha|LINK
Really a good one .....It sloved my problem .... thanx .....
but is the cause for this .... any idea