I’ve been noticing recently that when I run Visual Studio 2005 and I’m working on ASPX pages in a stock Web project Intellisense is not working very well. It’s been really inconsistent but the behavior I see is:

 

I’m sitting in a CodeBeside .cs file and I can’t see control definitions for quite some time. Then, usually after viewing the page in WYSWYG editing mode and saving the page, Intellisense starts working but no sooner. After editing the page in HTML mode and adding controls it stops working again. Open a new page, and again I see no control properties on the Page class until I view the designer.

  

Actually it’s not that Intellisense isn’t working at all. In the CodeBeside page I get Intellisense just fine for all custom properties defined on the partial class EXCEPT for page controls that ASP.NET dynamically generates. It’s as if ASP.NET is not properly compiling the ASPX pages in the background like it should. Note though that the project compilation works fine if I manually compile...

 

I never noticed this until I started working on Vista, so I’m kinda thinking this might have to do with my Vista installation and possible timing issues. Just to make sure I turned of Aero for a while to see if that might be in some way interfering (Aero seems to be causing all sorts of weird behavior in various kinds of software)

 

Is anybody else seeing behavior like this?

 

I don’t see this problem in WAP projects, although I do see the .designer files not getting updated from time to time there as well – possibly for the same reasons. It’s a little harder to see a possible effect like this because once the .designer file exist at least what’s in that file will be and actual class definition and show up. So in WAP I would only see this if I add a control or remove it possible when the .designer file doesn’t get updated which is maybe a little more rare.

 

Again it seems this has arrived with Vista, but I’m not 100% sure whether that’s the whole story… Curious to see if anybody else is seeing similar effects…