Odd behavior in 2005 with base page classes



I have converted two ASP.NET 1.1 applications to ASP.NET 2.0. Each one
had some odd results, most of which I've been able to address. I'm
looking for some confirmation/advice.

Both applications use a base page class inherited from
System.Web.UI.Page. In both cases my base page class is in a separate
folder of the web application (e.g. c:\mywebapp\baseclass).

When I converted the second application, the wizard was insistent on
creating an abstract stub for my base class, which messed everything up
royally (circular reference errors). I unwound that. The wizard seems a
little indiscrimanent about applying that particular coding pattern to
my applications, btw.

Anyway, upon first trying to compile my app I got errors that it
couldn't find my base page class. I resolved that by adding the
following to each page that complained about not finding the base
class.

<%@ Reference Page="~/BaseClasses/basepage.aspx" %>

Everything is now compiling without error, but I am getting a lot of
warnings like the following.

Warning 2 'Nwea.BlueWater.GenericError.Profile' hides inherited
member 'Nwea.BlueWater.BaseClasses.BasePage.Profile'. Use the new
keyword if hiding was intended.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\bluewateradmin\4c8ac349\b294ab7\App_Web_rga8akwb.0.cs 45
Warning 3 'Nwea.BlueWater.GenericError.ApplicationInstance' hides
inherited member
'Nwea.BlueWater.BaseClasses.BasePage.ApplicationInstance'. Use the new
keyword if hiding was intended.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\bluewateradmin\4c8ac349\b294ab7\App_Web_rga8akwb.0.cs 51

I only get these in one of my converted projects, not the other (and
they both use a base page class). The problem is that the warning is
showing up in files that are being generated for me.

Any thoughts/suggestions/pointers?

.



Relevant Pages

  • Re: Security Warning
    ... I closed/disabled TeaTimer in Spybot S&D, rebooted but the "Warning Sign" ... I understand that too many Real Time applications will slow down the system. ... > After signing in to my Hotmail account a Security Warning window pops up: ... > communications from other experts to this and other newsgroups the Windows ...
    (microsoft.public.security.virus)
  • [UPDATE] installing new locale problem
    ... I checked different x applications on the host. ... xclock, xterm, etc. only the warning messages give us some stress. ... to install it and set the appropriate Variables within /etc/.cshrc: ...
    (SunManagers)
  • Re: Windows CE.Net and evc++ 3.0
    ... >install the vb Runtimes, but neither, can it be that a SDK needs and compile ... If you build for Pocket PC, your applications probably use ... functions that are supported _only_ on Pocket ... Users _can_ ignore this warning. ...
    (microsoft.public.pocketpc.developer)
  • Sun - Too visionary?
    ... I recently tried more advanced AJAX-based web applications to see what ... the browser does not display any warning for AJAX ... Could the sandbox security that Java provides be one of the major ...
    (comp.lang.java.advocacy)
  • Re: compilation error
    ... Copyright Microsoft Corporation 2001-2005. ... warning CS0108: 'ASP.pages_login_aspx.Profile' hides inherited member ... Use the new keyword if hiding was intended. ...
    (microsoft.public.de.german.entwickler.dotnet.asp)