Web.Config, Visual Studio and Intellisense Issues
I’m not sure how many people this applies to but a while ago I found I was loosing VS2005 IntelliSense when I was working in my web.config. More specifically I lost IntelliSense after editing any of the site’s settings using the Web Site Administration Tool in ASP.Net 2.0.
I quickly realised that the issue was being caused because the Web Site Administration Tool updates the root element (<configuration>) of your Web.Config file to include an attribute of “xmlns”. If you’re loosing IntelliSense, just delete the attribute and you’ll have it back in a tick :)
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Should be:
<configuration>
p.s. Yes Doug, I can already hear you crying out “Not for me –I don’t use VS” *yawn*