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.
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.
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?
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'm having some issues getting crystal reports working nicely with our applications. And i cannot seem to find any resources that answer my question.
Basically, we have a crystal report, designed in the crystal reports application with it's own datasource.
Now when i add this to VS and display it, i need to setup a connection on the PC using MYSQL ODBC Datasource configuration tool, however even with this datasource setup, the crystalreports viewer askes for a password, and even suppling the correct password will show a "login failed. please try again" error message.
Ideally what i would like to know, is
A) is it possible and if so how, can i setup the connection in VS2010 so that i wont need to go around using MYSQL ODBC Datasource configuration tool on every PC i deploy my application too.
B) why does this connection always fail, the credentials are correct (we've tested multiple times, and the report & connection function perfectly from within crystal reports)
Hopefully you guys can help me out, my google fu has failed me.
If the Crystal Report allows for the username and password to the mySQL stored procedure to be passed to the report through the ReportViewer object, you have to use .NET code-behind to set the credentials via the:
ReportViewer.ServerReport.ReportServerCredentials
property of the ReportViewer instance.
Here's an example:
System.Net.NetworkCredential networkCredentials =
new System.Net.NetworkCredential("username", "password", "domain");
reportViewer.ServerReport.ReportServerCredentials = networkCredentials;