hi there,
i'm not sure if i'm doing it the right way or not.. but i have the following profile in web.config:
<profile enabled="true">
<properties>
<add name="ServiceSessionId" allowAnonymous="true"/>
</properties>
</profile>
and i try to assign a value in one of the button click event as follow:
protected void Button2_Click(object sender, EventArgs e)
{
HttpContext.Current.Profile["ServiceSessionId"] = "Hello World";
}
but i'm getting an error : "Cannot connect to SQL database" at line "HttpContext.Current.Profile["ServiceSessionId"] = "Hello World";"
can anyone help?