Hello!
I use the End-User ReportDesigner and, for the preview, I load data from a complete list filtered by a specified type.
For my usage, this type is store in a cookie. This cookie is set on the start of the application and is used a lot of time. But when I want to display the preview of my report, I receive a NullReferenceException because HttpContext.Current is null. It looks like the HttpContext is lost for the preview of the report.
Could you tell me why? I join to this ticket a sample project which demonstrates the problem.
Thanks for your help!
Best regards!
Alex
To be complete, I don't want to pass the type as parameter. The sample I send is a simple implementation of my problem, but it's more complexe in the reality. So, I need a way to recover this type from the HttpContext.