Click here to Skip to main content
16,013,440 members
Home / Discussions / C#
   

C#

 
AnswerRe: Force my WinForm application to show… Pin
Eduard Keilholz7-Dec-06 4:18
Eduard Keilholz7-Dec-06 4:18 
AnswerRe: Force my WinForm application to show… Pin
Martin#7-Dec-06 4:32
Martin#7-Dec-06 4:32 
QuestionAutomation, cross thread problem Pin
anderslundsgard7-Dec-06 3:59
anderslundsgard7-Dec-06 3:59 
AnswerRe: Automation, cross thread problem Pin
Robert Rohde7-Dec-06 4:27
Robert Rohde7-Dec-06 4:27 
GeneralRe: Automation, cross thread problem Pin
anderslundsgard7-Dec-06 20:28
anderslundsgard7-Dec-06 20:28 
QuestionCustom Control Development & Default Properties Pin
Ian Roberts7-Dec-06 3:46
Ian Roberts7-Dec-06 3:46 
AnswerRe: Custom Control Development & Default Properties Pin
Pete O'Hanlon7-Dec-06 4:36
mvePete O'Hanlon7-Dec-06 4:36 
QuestionReport Viewer LocalReport GetParameters Function Evaluation Failure Pin
Christopher Stratmann7-Dec-06 2:39
Christopher Stratmann7-Dec-06 2:39 

Background of my Project....


My project is an asp.net web page that is to run on local machines processing local reports. As of yesterday my web page is using a report viewer to load rdl's not rdlc's. It can handle subreports, drillthroughs, export to csv, expression evaluation, parameter input on the webpage, validation of parameter inputs, etc


Code change that leads to this issue....


I was given the task to find "Special Keys" in expressions for parameter default values and dataset parameter values and replace them with other data. I thought this wouldn't be a big deal until I get this error. I really dont understand why it is getting thrown.

Below is an sample of my code and everything runs fast except when it gets to the highlighted code. When it gets there I do a quick watch on rv.LocalReport.GetParameters() and the Value says Function evaluation is timed out.


The error that is getting thrown is a LocalProcessingException with a message of Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.  I think this is getting thrown because .Count on rv.LocalReport.GetParameters() is not able to be processed because of the function GetParameters() being timed out.

public RParameter[] GetRdlReport(ref ReportViewer rv)<BR>{<BR>   // Always enable hyperlinks even if they do not exist.<BR>   rv.LocalReport.EnableHyperlinks = true;<BR>   rv.LocalReport.ReportPath = msReportFullName;<BR><BR>   List<RParameter> rps = GetParameterAll();<BR>   if (rv.LocalReport.GetParameters().Count > 0)<BR>   {<BR>      for (int i=0; i<rps.Count; i++)<BR>      {<BR>          RParameter rp = rps[ i ];<BR>          foreach (ReportParameterInfo rpi in rv.LocalReport.GetParameters())<BR>          {<BR>          }<BR>      }<BR>   }<BR>}



Chris
NewsRe: Report Viewer LocalReport GetParameters Function Evaluation Failure Pin
Christopher Stratmann7-Dec-06 3:34
Christopher Stratmann7-Dec-06 3:34 
GeneralRe: Report Viewer LocalReport GetParameters Function Evaluation Failure Pin
Christopher Stratmann7-Dec-06 5:42
Christopher Stratmann7-Dec-06 5:42 
QuestionClosing the form Pin
Niiiissssshhhhhuuuuu7-Dec-06 1:52
Niiiissssshhhhhuuuuu7-Dec-06 1:52 
AnswerRe: Closing the form Pin
quiteSmart7-Dec-06 1:55
quiteSmart7-Dec-06 1:55 
GeneralRe: Closing the form Pin
Niiiissssshhhhhuuuuu7-Dec-06 2:03
Niiiissssshhhhhuuuuu7-Dec-06 2:03 
GeneralRe: Closing the form Pin
quiteSmart7-Dec-06 2:12
quiteSmart7-Dec-06 2:12 
AnswerRe: Closing the form Pin
Robert Rohde7-Dec-06 2:24
Robert Rohde7-Dec-06 2:24 
GeneralRe: Closing the form Pin
quiteSmart7-Dec-06 2:54
quiteSmart7-Dec-06 2:54 
AnswerRe: Closing the form Pin
Stefan Troschuetz7-Dec-06 3:49
Stefan Troschuetz7-Dec-06 3:49 
GeneralRe: Closing the form Pin
Niiiissssshhhhhuuuuu7-Dec-06 16:20
Niiiissssshhhhhuuuuu7-Dec-06 16:20 
QuestionInherit TabControl? Pin
george ivanov7-Dec-06 0:33
george ivanov7-Dec-06 0:33 
AnswerRe: Inherit TabControl? Pin
Martin#7-Dec-06 0:39
Martin#7-Dec-06 0:39 
QuestionRaise control events Pin
Tanuja1237-Dec-06 0:10
Tanuja1237-Dec-06 0:10 
AnswerRe: Raise control events Pin
Martin#7-Dec-06 1:00
Martin#7-Dec-06 1:00 
GeneralRe: Raise control events Pin
Tanuja1237-Dec-06 1:49
Tanuja1237-Dec-06 1:49 
GeneralRe: Raise control events Pin
Martin#7-Dec-06 2:00
Martin#7-Dec-06 2:00 
GeneralRe: Raise control events Pin
Tanuja1237-Dec-06 3:00
Tanuja1237-Dec-06 3:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.