I have designed a report in report builder 3.0 using dataset which is using store procedure from sql server 2008 r2. It works fine if i pull less information from database but if i try to pull large information then i get 'The Operation has Timed Out' message in report builder.
I am showing this report in VS2012 using report viewer but i am getting following error message on pulling large information from database.
Message: Sys.WebForms.PageRequestManagerTimeoutException: The server request timed out.
I have google this issue and came across following article;
http://blogs.msdn.com/b/selvar/archive/2012/06/18/reportviewer-2010-control-fails-with-sys-webforms-pagerequestmanagertimeoutexception-the-server-request-timed-out.aspx
After setting script manager property AsyncPostBackTimeout to "0", report works fine.
In my project Script Manager control is in master page, i am just wondering if setting AsyncPostBackTimeout to 0 in master page would cause any issues?
Related
I've developed few reports. More of them are working fine in develop environment. after successfull testing they were published on web. But one of them if I press "View Report" following error occurs.
An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'xxx'. (rsErrorExecutingCommand)
For more information about this error navigate to the report server on the local server machine, or enable remote errors
My dataset result doesnt get. I changed my sp result and it solved it. Maybe this help someone.
Thank you
I have a CrystalReportViewer control on an ASPX page. On my development machine the Crystal Report generates properly. However, when I publish it and run it on a web server I get the following pop-up screen. Entering in the password does nothing. The same screen just pops up again:
The datasource is configured in the .rpt file. So my code on the CrystalReportViewer is simply the following:
if (Request.QueryString["report"].ToString() != "")
{
ReportDocument doc = new ReportDocument();
doc.Load(Request.QueryString["report"].ToString());
CrystalReportViewer1.ReportSource = doc;
}
If it helps, some of the (more important looking) datasource properties in the .rpt file are as follows:
Database Type: ODBC (RDO)
DSN: plmprod
Server Type: ODBC - plmprod
Use DSN Default Properties: True
Also, I have the same ODBC/System DSN (named plmprod) setup on my development machine and on the web server. Using the "Test Connection" option they both test successfully.
I am not sure how to troubleshoot this issue. Nor do I know much about Crystal Reports.
What could be the problem that is causing the report to not generate on the web server?
I created a 64 bit ODBC/DSN on the web server and it now works!
All of my Crystal Reports Windows apps work fine around the company with 32 bit DSNs so I made a false assumption that is what the web server would want as well...not so as I found out.
experts,
I'm inheriting a C# script to render a SSRS report. The script throws the following exception when it tries to set the report parameters ( serverReport.SetParameters(parameters): )
Microsoft.Reporting.WinForms.ReportServerException: The permissions granted to user 'domainName\userName' are insufficient for performing this operation.
However, I am able to execute the report on the report manager without any problems. For Datasource setup, I selected "Credentials stored securely in the report server", filled in the above username (domainName\userName) and the password fields, and checked the box "Use as Windows credentials when connecting to the data source". The report runs successfully on the report server.
Additonal info: The processing mode for the report viewer is set to remote in the C# script (reportViewer.ProcessingMode = ProcessingMode.Remote).
I don't understand why the credential works when executing the report on the report server, but not when accessing it through the C# script. I'm very new to C# and any help and info will be greatly appreciated.
Thanks in advance.
Problem solved.
It turned out that additional permission is needed for the report on the report server. After the DBA granted the account access to the report folder, the problem is solved.
App built with VS (WPF and C#). Added RDLC report. Users here have no problem displaying report. Elsewhere error is: 'Set connectionID threw an exception', 'Line number '7' and line position '14'.
The users that are not local have no problems running the app, just the report. The same user with the same login can come here and run the report, but go there and they get the error.
I have full admin rights/superuser. I go there, use a computer and get the error. I took a laptop from here to there and it displayed the report. I then disconnected the laptop from the wireless and used the same ether cord that the computer that would not display the report used and the report ran fine. Changed the timeout to 60 secs. No difference.
Believe it may be where the temp file is writing, but can't find the temp file.
Any thoughts?
Thanks very much
I have a feature in my site that is sending emails. I want to save the email details including the message that users typed in the database for historical purposes. Page uses validation for the fields and as such it throws an error:
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500".
Goggling this I've learned that this is to prevent potential hack of my site as well a database, which I can appreciate.
What do I need to do safely save the text in the database? Currently the datafiels is a varchar(max) and I use this to insert data:
emailHistoryUpdated = _emailHistUpdate.InsertEmailHistory(_today, _name, txtSubject.Text, txtMessage.Text, txtFileUp.FileName, Session["iAm"].ToString()); which is my middle tear. I use the dataset created with VS2010 and stored procedure to communicate with the SQL server.
One place to start would be encoding/sanitizing the html that is in the email body like so:
var emailBody = HttpServerUtility.HtmlEncode(input);
A great library for this kind of stuff is the AntiXSS library:
http://wpl.codeplex.com/releases/view/52700