简体   繁体   中英

pageBaseType in Web.config on IIS6

I am currently defining a base class for my views which itself inherits System.Web.UI.Page. This new class exposes new properties to be defined through the @Page directives.

On IIS 7 (.NET 4), registering this new base class in web.config as

<page pageBaseType="newPageClass">

works very well, though on IIS 5.1 (XP, .NET 3.5) it fails, forcing me to revert to also specifying

CodeFileBaseClass="newPageClass"

directly in each view.

The target server will eventually be IIS 6, which I cannot test right now. So I have a couple of questions:

1) Is this related to the IIS version, and if so will it work on IIS 6?

2) Is this related to the .NET version, and if so, at what version does this web.config override become available?

3) Is it something completely unrelated to these two possibilities.

Much Appreciated!

This is an addition to .NET 2.0 so nothing to do with IIS itself. I would verify that the target framework on IIS 5.1 is indeed set to 2.0 and not 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM