Unexpected Exception occurs when setting aspcompat=true

David

Thanks for your help.

Here is my code for the page. If I remove aspcompat the page is fine. Also this has only happened since moving to beta 2 of Visual Web Developer.

aspx
<%@PageLanguage="VB"AutoEventWireup="false"CodeFile="test2.aspx.vb"Inherits="test2"AspCompat=true %>
<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<htmlxmlns="http://www.w3.org/1999/xhtml">
<
headrunat="server">
<title>Untitled Page</title>
</
head>

<body>
<formid="form1"runat="server">
<div></div>
</form>

</body>
</
html>

aspx.vb
PartialClass test2
Inherits System.Web.UI.Page

EndClass

The exception is
Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): An error was encountered while calling OnStartPage in ASP compatibility mode.] System.Web.Util.AspCompatApplicationStep.OnPageStartSessionObjects() +783658 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2505


Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
Tim

[4261 byte] By [TimHarris] at [2007-12-16]

.NET Development

Site Classified