[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 652
  • Last Modified:

Expression Host Files being created

VB2005, using Report Viewer in local mode.
My program worked on all the PCs in the office. However, a new PC arrived last week, and reports won't generate on that pc.
 I get a message about
'C:\Documents and Settings\theusername\Local Settings\Temp\expression_host_abc12324334435435435 in use by another process'

In the temp folder, an expression host file seems to be generated just before the report is supposed to open. On all the other PCs, there are no expression_host files. Why are these files there?
I've tried other programs that use report viewer, and none will work on this pc.
Any ideas on how to fix it?

0
jdhackett
Asked:
jdhackett
  • 2
1 Solution
 
mankowitzCommented:
There was some discussion on this at microsoft forums, see http://forums.microsoft.com/msdn/showpost.aspx?postid=1131611&siteid=1

Anyway, someone had success by changing
Me.rvReport.LocalReport.ExecuteReportInCurrentAppDomain(AppDomain.CurrentDomain.Evidence)

To

Me.rvReport.LocalReport.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence)

0
 
jdhackettAuthor Commented:
I saw that actually, but I have nothing like that in my code. I just used the standard
Me.ReportViewer1.RefreshReport()
Out of curiosity, I did try adding
Me.ReportViewer1.LocalReport.ExecuteReportInCurrentAppDomain(System.Reflection.Assembly.GetExecutingAssembly().Evidence)
before the RefreshReport, but it made no difference.
0
 
jdhackettAuthor Commented:
I still haven't this figured out. Any other suggestions?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now