Author: ronald_yoh | Posted on: 7/3/2009 11:14:19 PM | Views : 228

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";"< ...

Go to the complete details ...