[Mono-list] System.Web.Profile.DefaultProfile

Juan Cristóbal Olivares juancri at gmail.com
Mon Jul 10 01:09:40 EDT 2006


Breno:

"Profile" doesn't seem to be a member of your class. Profile is not either a
member of System.Web.UI.Page... is it a reference to a class or a member?

regards
Juan C. Olivares

On 7/6/06, Breno <brenopiva at yahoo.com.br> wrote:
>
> Hi,
>
> I'm trying to port an ASP.NET 2.0 site to mono and I get a compílation
> error when trying to run the following code, does anyone knows whats going
> on? I also tryied with a simpler example and got the same error.
>
> Thanks in advance,
>
> Breno
>
>
> ***************************************************************************************************
> using System;
> using System.Data;
> using System.Configuration;
> using System.Collections;
> using System.Web;
> using System.Web.Security;
> using System.Web.UI;
> using System.Web.UI.WebControls;
> using System.Web.UI.WebControls.WebParts;
> using System.Web.UI.HtmlControls;
> public partial class _Default : System.Web.UI.Page
> {
>
> protected void Page_Load(object sender, EventArgs e)
> {
> }
> protected void Button1_Click(object sender, EventArgs e)
> {
>
>   Profile.parametros.codigo = TextBox1.Text;
> Profile.parametros.url = "Default.aspx";
> log4net.LogManager.GetLogger(this.GetType()).Fatal("Teste 21er23tr4 " +
> Profile.parametros.codigo + " url: " + Profile.parametros.url);
> HiddenCodigoPessoa.Value = TextBox1.Text;
> Server.Transfer("EdicaoPessoa.aspx?conf=ConfEdicaoPessoa_Alterar");
>
> }
> protected void Button3_Click(object sender, EventArgs e)
> {
>
> HiddenCodigoPessoa.Value = TextBox1.Text;
>
> }
>
> }
>
>
> ****************************************************************************************************
>
> The error message is:
>
> *Error message: *C:/ARQUIV~1/MONO-1~1.15/lib/xsp/test\xpert-gui\Default.aspx.cs(21,9)
> : error CS0103: The name `Profile' does not exist in the context of
> `_Default'
> C:/ARQUIV~1/MONO-1~1.15/lib/xsp/test\xpert-gui\Default.aspx.cs(22,9) : error
> CS0103: The name `Profile' does not exist in the context of `_Default'
> C:/ARQUIV~1/MONO-1~1.15/lib/xsp/test\xpert-gui\Default.aspx.cs(24,81) :
> error CS0103: The name `Profile' does not exist in the context of `_Default'
>
>
> ------------------------------
> Você quer respostas para suas perguntas? Ou você sabe muito e quer
> compartilhar seu conhecimento? Experimente o Yahoo! Respostas<http://us.rd.yahoo.com/mail/br/tagline/answers/*http://br.answers.yahoo.com/>!
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>


-- 
Juan Cristóbal Olivares
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060710/9b1f497e/attachment.html 


More information about the Mono-list mailing list