False errors in ASP.NET 2.0 code behind files?

With Resharper enabled, VS.NET shows all kinds of "Member with the same signature
is already declared" and red "Ambiguous invocation" errors in code behind
files. All references to a WebControl are highlighted with an "Ambiguous
reference" error. The "Analysis complete" message shows 21 errors and 2 warnings,
which makes me expect this should not compile, but it compiles without error.

Obviously, this is because of the funky ASP.NET 2.0 inheritance scheme, but
it makes editting a code behind file much more noisey than it needs to be.

1 comment
Comment actions Permalink

It would help us a lot if you send us a small sample solution, that
illustrates the problem.

Sergey V. Coox
JetBrains, Inc
"Develop with pleasure!"


Please sign in to leave a comment.