[Mono-list] Compilation errors

Robert Jordan robertj at gmx.net
Sat Aug 25 05:42:56 EDT 2007


Azher Amin wrote:
> Hi,
> 
> I am getting this error while compiling the below code. I would be
> grateful if someone suggest on how to resolve the problem.
> 
> Error:
> 
> Login.aspx.cs(17,9): error CS0117: `System.Web.UI.Page' does not contain
> a definition for `SetFocus'
> Login.aspx.cs(22,9): error CS0246: The type or namespace name
> `MembershipUser' could not be found. Are you missing a using directive
> or an assembly reference?
> Compilation failed: 2 error(s), 0 warnings
> 
> 
> mcs -r:System.Web.dll -r:System.Data Login.aspx.cs

You want to use "gmcs" for .NET 2.0 code.

Robert



More information about the Mono-list mailing list