N
Nick Flandry
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my
development environment (Win2K server running IIS 5) and a test environment (also Win2K server
running IIS 5), but fails on IIS 6 running on a Win2003 server.
The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide
some common functionality. The Page_Load handler the failing webpage starts out like this:
public class index : SitePage {
/* snip */
protected override void Page_Load(object sender, System.EventArgs e) {
base.Page_Load(sender, e);
...
SitePage is the custom-built class that derives from the Page class.
In other words, all I'm doing is trying to call a method in the base class to the Page.
Does anyone have any idea what might be causing this? Am I not allowed to call base methods in an
ASP.NET application?
- Nick
development environment (Win2K server running IIS 5) and a test environment (also Win2K server
running IIS 5), but fails on IIS 6 running on a Win2003 server.
The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide
some common functionality. The Page_Load handler the failing webpage starts out like this:
public class index : SitePage {
/* snip */
protected override void Page_Load(object sender, System.EventArgs e) {
base.Page_Load(sender, e);
...
SitePage is the custom-built class that derives from the Page class.
In other words, all I'm doing is trying to call a method in the base class to the Page.
Does anyone have any idea what might be causing this? Am I not allowed to call base methods in an
ASP.NET application?
- Nick