[Mono-list] ASP.NET sample page

Chris Aitken chris at ion-dreams.com
Tue Nov 29 13:34:17 EST 2005


> Hi!
> 
> I'm trying to run an example asp.net page, but I get an error:
> 
> Server Error in '/~koxta' Application
> Parser Error
> Description: Error parsing a resource required to service 
> this request. Review your source file and modify it to fix this error.
> 
> Error message: Cannot find type SimpleWebApp.SimplePage
> 
> File name: /home/koxta/public_html/aspnet/example1/index.aspx 
>    Line: 1
> 
> Source Error:
> 
> <%@ Page language="c#" Codebehind="index.aspx.cs" 
> Inherits="SimpleWebApp.SimplePage" AutoEventWireup="false"%> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML>
>    <HEAD>
> 
> The index.aspx and index.aspx.cs files are located in 
> ~koxta/public_html/aspnet/example1
> 
> Am I missing something? Isn't mod-mono-server compiling the 
> .cs file by itself?

Codebehind is a Visual Studio thing. Either precompile the .aspx.cs page,
and stick the .bin into the ~/bin/ folder, or change the 'Codebehind=' into
a 'Src='

By Changing the Codebehind to a Src mono knows to compile the .aspx.cs page
Just In Time.

HTH

Chris


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Mono-list mailing list