[Mono-list] ASP.NET 2 Compilation Problems

Patrick Earl pat at dril.com
Wed Apr 19 22:33:41 EDT 2006


Greetings.  We are migrating our applications to ASP.NET 2 and we're 
toying around with Visual Web Developer 2005 Express.  As a test, we 
created a simple page and attempted to load it in Mono.  Unfortunately 
it claims it can't find the type.  Any clues?

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 SomeClass

File name: /home/asp.net-devel/FSWebServices/TestService/Default.aspx 
  Line: 1

Source Error:

<%@ Page Language="C#" AutoEventWireup="true" 
CodeFile="Default.aspx.cs" Inherits="SomeClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Here is the Default.aspx file:

<%@ Page Language="C#" AutoEventWireup="true" 
CodeFile="Default.aspx.cs" Inherits="SomeClass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
     <title>Untitled Page</title>
</head>
<body>
     <form id="form1" runat="server">
     <div>
         <asp:Button ID="Button1" runat="server" Height="61px" 
OnClick="Button1_Click" Text="Button"
             Width="162px" /></div>
     </form>
</body>
</html>

Here is the Default.aspx.cs file:

[using clauses snipped]

public partial class SomeClass : System.Web.UI.Page
{
     protected void Page_Load(object sender, EventArgs e)
     {

     }
     protected void Button1_Click(object sender, EventArgs e)
     {
         Button1.Text = "Button was clicked.";
     }
}




More information about the Mono-list mailing list