LocalReport - Hangs when calling GetDataSourceNames()

G

Guest

Hi,

We are developing an application where we are using the LocalReport object
as our server-side report rendering solution. All has gone well so far, but
we have started hitting an issue with the LocalReport object.

After we instantiate the LocalReport control, the first thing we do is point
it to the RDLC file on the file system, then we call the GetDataSourceNames
method to retrieve an IList of string objects. For some reason, execution
almost always hangs on that call. I say "almost always" because it takes a
random number of executions to get to that point. Sometimes the first time
we render a report on the server it fails. Other times, I can get it to run
two times, and the third time it hangs.

This issue only occurs in Win2k3 machines. When run on XP SP2, it goes
through just fine. All our dev machines are XP, so we developed our engine
with no problem....then finally deployed out to Win2k3 server and started
getting this.

Our application is hosted in IIS and the objects are COM+ objects. We use
..net remoting to call IIS.

The code is as follows:

Imports ctrl = Microsoft.Reporting.WinForms

....

Private m_lclReport As ctrl.LocalReport

....

Public Function RenderReport(ByVal reportFormat As String, _
ByVal reportDefinition As
Biz.ReportDefinition) As Byte()

Dim _list As IList(Of String)

Try

m_lclReport = New ctrl.LocalReport

'set the Path
m_lclReport.ReportPath = reportDefinition.Path &
reportDefinition.Name

_list = m_lclReport.GetDataSourceNames()

....

Execution freezes when it runs that last line. I've let it go for 1 hour+
and it never frees up and never thrown an exception.

I've run it on multiple RDLC files, and the issue still occurs. I've tried
it with reports w/ sub reports, and those without....same result.

I've looked out there for known issues regarding LocalReport object freezing
up...but have not found any.

Anybody else out there have encountered this issue or anything similar?

Thanks,
Rob
 

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

Top