[Mono-list] Changes not detected in aspx page, only in code-behind page

David Man mono at nimid.com
Thu Mar 15 11:38:49 EDT 2007


I'm editing an aspx page but changes aren't detected until I restart
xsp.

The first access to the page takes about a second or two then the page
is pre-compiled and this speeds up any subsequent access. 

During development it's a nuisance to stop and restart the server
constantly. 

I remember reading somewhere a while ago that this behaviour can be
changed so that the page is always compiled but I haven't been able to
find out how to do this so far.

Does anyone know if I'm doing something wrong?

I'm guessing:

1) xsp/2 should be detecting changes but currently doesn't do so
2) I've configured something incorrectly
3) There is an option to make it compile each and every access


I only have 3 files:

test.aspx
global.asax
web.config


My setup is:

OS:    FreeBSD 6.1
Mono:  1.2.3.1_1
XSP/2: 1.2.3.0

The aspx file I'm editing is this:

<%@Page Language="C#" debug="true" %>
<%@ OutputCache Duration="1" Location="None" VaryByParam="None" %>
<html><body>
<h1>hello world, <% Response.Write(DateTime.Now.ToString()); %></h1>
Inserted but undetected change.
</body></html>


web.config is bare minimum with only this line

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation defaultLanguage="c#" debug="true" />
</system.web>
</configuration>


global.asax is bare minimum too

<script runat="server" language="c#">
void Application_Start (object o, EventArgs args)
{
Console.WriteLine ("Application_Start");
}

void Application_End (object o, EventArgs args)
{
Console.WriteLine ("Application_End");
}

void Application_BeginRequest (object o, EventArgs args)
{
}
</script>


Dave



More information about the Mono-list mailing list