By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,971 Members | 1,191 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,971 IT Pros & Developers. It's quick & easy.

Intellisense magically disappearing!

P: n/a
I've written a DLL assembly in C#. I've built the DLL, and reference it from other projects. The assembly contains a single file, containing a single abstract class. This class contains loads of static "helper" methods, as well as a load of nested abstract classes that also contain static "helper" methods. This set up allows me to write code like the following

FormMethods.BusinessObjectEvents.HandleIsEditChang ed([argument list.....])
FormMethods.ConstructorCall([argument list.....])

As you can see, the class is very "structured", but the code in the class isn't at fault. Now, straight after I add a reference to the built assembly, Intellisense works fine. When press the 'dot' key, the intellisense pops up, at all levels of the heirarchy. But then, a few minutes later, for apparently no reason at all, Intellisense on this item stops working properly (it is fine everywhere else). Then, I'll only be able to see methods at the main class level. None of the nested classes appear, so I'm not able to access their methods via Intellisense, although they are still there, since if I type them out unaided, the code compiles. I've tried all the usual stuff - this problem isn't triggered by build warnings or errors (as often happens). It's as though it's happening at random.

Historically, the referenced assembly has been a project referenced from within the same solution, an assembly referenced by picking up the compiled DLL, and an assembly registered in the GAC. In all cases, the Intellisense magically disappears at random.

The only solution I've found, is that if the reference to the assembly is removed, and then added again, I buy myself about another 2 minutes of full Intellisense before it goes again! Not an ideal situation, since the classes in the assembly are very complex, and have large argument lists. Coding them unaided is a nightmare

Any help would be greatly appreciated


Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hello Guy,

Thanks for your post. As I understand, the problem you are faing is that
Intellisense randomly does not work. I think more information is needed
before moving forward:

Does the problem occurs to a specific referenced assembly or to all the
assemblies? Is the Intellisense still working on other items?

Generally speaking, the classview and intellisense data is stored .projdata
files which reside in the directory below. When the problem comes up, I
suggest that you can delete the .projdata files and see if it will work
around the problem then.
project directory\obj\debug\*.projdata

Have you checked this issue on other systems? Is it possible to send me a
sample project and tell me the detailed steps to reproduce the problem? I
will be glad to test on my side in order to check what was going on.

I look forward to hearing from you.

Have a nice day!


Microsoft Online Partner Support

Get Secure! --
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.