[Mono-list] Newbie ASP .NET question
btimby at gmail.com
Fri Feb 9 09:48:11 EST 2007
The CodeFile="Default.aspx.cs" is referred to as codebehind. This allows
one to place the code outside the presentation (markup). This is an
optional feature which works with both MS.NET and mono. This is not your
Viewing your site, the error is below.
Cannot find type _Default
File name: /usr/local/www/data/kovesdan.org/asptest/Default.aspx Line: 1
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
The asp.net runtime loads the types from the assembly and binds them to
This error is because the asp.net runtime cannot load the type _Default.
This could be caused by a number of issues. The most likely is that you
don't have the compiled dll in the bin/ folder of the application.
Kövesdán Gábor wrote:
> I'm new at ASP .NET, so please forgive me if I'm asking something
> trivial. I've set up mono and mod_mono and uploaded a very simple web
> application. I'm just learning ASP .NET and trying to get things work.
> The apache config seems to be ok, I can run the xsp examples without any
> But for my own application, I get parser error, like this one:
> This application worked in Visual Studio Express, but does not work with
> mono. I looked at the examples, and noticed that the index.aspx file
> uses a different layout. While my Default.aspx file does not contain
> code, just specifies the location of the code via
> CodeFile="Default.aspx.cs", the xsp example has code in index.aspx.
> Should I convert my project somehow? Or what should I do to get it to work?
> Thanks in advance,
> Gabor Kovesdan
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list