This question is locked. New answers and comments are not allowed.
Hi,
I create a web site with use the ORM component of telerik.
To create the context, I use the recommandation describe in the document "Best practices in webdevelopement with OpenAcess".
==> It works.
And now, in my web site, I implement a Web serrvice that use the same component to acess to the database, that use the ORM componenent.
==> And it does not works !! Because the context is not create, because the system does not generate a "httpmodule" event...and the system does not passed in the code :
.....
I create a web site with use the ORM component of telerik.
To create the context, I use the recommandation describe in the document "Best practices in webdevelopement with OpenAcess".
==> It works.
And now, in my web site, I implement a Web serrvice that use the same component to acess to the database, that use the ORM componenent.
==> And it does not works !! Because the context is not create, because the system does not generate a "httpmodule" event...and the system does not passed in the code :
.....
/// <summary>
/// _Context_PreRequestHandlerExecute
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void _Context_PreRequestHandlerExecute(object sender, EventArgs e)
{
if (HttpContext.Current.Session != null)
{
HttpContext.Current.Session[SCOPE_KEY] = new ISYS_Qualification_BO.ISYS_QUALIFICATION_Diagram();
}
}
....
Techinical information :
- My project use the framework 4.0
- The web service is "svc". I think that use the WCF.
Have you got a solution ?
In advance, Thanks.
Richard.