RDLC Object datasource can't get System.Web through webform reportviewer

G

Greg

I am running an RDLC with a object datasource. In the object I try to
access System.Web.Httphandler to get the session, but it is nothing.

The reportviewer running my rdlc from a webform, and it seems as though
there is a setting or something to enable the object datasource access
to the session but I cannot figure it out.

Can someone help?
 
G

Greg

Currently I get this error when it tries to access
System.Web.Httphandler.Current

Microsoft.Reporting.WebForms.AspNetSessionExpiredException
 
G

Greg

lotta typos today, I am accessing:
System.Web.HttpContext.Current.Session("PhysicalWebPath")
and Current is Nothing
 
B

Bruce L-C [MVP]

This is not too surprising. The web control uses web services. I am not sure
it has a physical web path. What are you trying to determine?
 
G

Greg

Just trying to grab a session value, so if its a web service that the
web control uses, is there an EnableSession true setting I cause use in
my object datasource like I do in a standard webservice to share the
session?
 
G

Greg

On a side note, can I see these webservices? Like does it create a
asmx file or something I can connect to in IE for the object
datasources the reportviewer communicates with?
 
B

Bruce L-C [MVP]

The webservices are documented and you can use them yourself. Prior to 2005
people would (and still can) roll there own, not using the control. The
previous control (really a sample) used URL integration and so had some
difficulties.

In Books Online look for web services and you will see lots of
documentation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top