> 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. _______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list