[Mono-list] ASP.NET 2 Compilation Problems

Chris Toshok toshok at ximian.com
Thu Apr 20 14:13:00 EDT 2006


Which version of mono are you running?  There have been a couple of
patches committed to the repository (one today and one on 2006-04-11)
that fix partial class support.  Indeed, with the current svn version,
your example works fine.

Chris

On Wed, 2006-04-19 at 20:33 -0600, Patrick Earl wrote:
> 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.";
>      }
> }
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list