VS 2008 ReportViewer
Visual Studio 2008 with VS Reports Basic.
I wrote a reportviewer Web Application that uses the crystalreportviewer object. I got the reportviewer to work on my development machine(XP IIS). I even got it to work on another development server(Server 2000 IIS).
When I attempt to place this same project on SBS 2003 SERVER (IIS). I run the same code and get nothing. The progress bar at the bottom of the screen slowly moves more bars on then after a while the page goes back to the previous page. I don't get any errors or exceptions.
There is nothing in the event log. I would really like to use this application internally.
How can I debug this issue? I will post my code if it will help. I think it is an issue on the server somehow. I have to have it on this server due that is where the reports live.
Thanks in Advance.
Dan
I don't believe so. I got it working on my workstation with local IIS. I also have it working on windows 2000 server IIS. Just fine. I konw where in the code it hangs but I am not getting any errors or anything of the like.
How can it be an application problem if it works on 2 out of 3 servers.
The hang up is on Windows 2003 SBS IIS.
It could be a coding issue. I have this posted on the other forum as well. (Posted in the wrong one the first time).
I had the report come up once but it took a long time and then when I attempted to enter the parameters it locked up and never worked since.
I believe the problem is with the application pools and security somewhere what should my security settings be for VS 2008 CR Basic. I installed the runtimes and all I get is the window hanging. No errors anywhere.
Thanks
Dan
Similar Messages
-
SSRS 2008 - HTTP Status 401: Unauthorized
I have a WPF application which is hosting a SSRS 2008 ReportView via a WindowsFormsHost control. I am trying to connect to a remote server to run a report, but I receive the following error:
{"The request failed with HTTP status 401: Unauthorized."}
[System.Net.WebException]: {"The request failed with HTTP status 401: Unauthorized."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: null
InnerException: null
Message: "The request failed with HTTP status 401: Unauthorized."
Source: "Microsoft.ReportViewer.Common"
StackTrace: " at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods()
at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname)
at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname)
at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.ProxyMethodInvocation.Execute[TReturn](RSExecutionConnection connection, ProxyMethod`1 initialMethod, ProxyMethod`1 retryMethod)
at Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID)
at Microsoft.Reporting.WinForms.ServerReport.EnsureExecutionSession()
at Microsoft.Reporting.WinForms.ServerReport.GetDataSources(Boolean& allCredentialsSet)
at Microsoft.Reporting.WinForms.RSParams.GetDataSources(Boolean& allSatisfied)
at Microsoft.Reporting.WinForms.RSParams.EnsureParamsLoaded(Boolean forceCredentialsShown, ReportParameterInfoCollection parameterInfos)
at Microsoft.Reporting.WinForms.RSParams.EnsureParamsLoaded()
at Microsoft.Reporting.WinForms.ReportViewer.RenderReportWithNewParameters(Int32 pageNumber)"
TargetSite: {System.String[] GetSecureMethods()}
Here's my environment:
I have a Windows 2008 Server running SQL Server 2008. This server is a virtual machine running on Hyper-V in a Virtual Private LAN and I'm using RAAS to route traffic to this virtual via a static IP.
I'm passing NetworkCredentials to the report for a user that can access and run reports. I can prove this by logging in to the report server via a browser with these same credentials.
var report = reportViewer.ServerReport;
report.ReportServerCredentials.NetworkCredentials =
new NetworkCredential("MACHINE-NAME\\USER","Password");
Anyway, I've tried everything, short of disabling authentication altogether. Has anyone experienced authentication issues with ssrs in a hosted / virtual environment?
Any help would be greatly appreciated.
ThanksI need help pls, I have the same problem error 401 etc...
I implement all solution in this page and nothing..
Help me pls.
stringurlReportServer =
ReportViewer1.ProcessingMode =
ProcessingMode.Remote;
// ProcessingMode will be Either Remote or Local
ReportViewer1.ShowExportControls =
true;
ReportViewer1.ShowPrintButton =
true;
ReportViewer1.ServerReport.ReportServerUrl =
newUri(urlReportServer);
//Set the ReportServer Url
ReportViewer1.ServerReport.ReportPath =
"/Reportes/"+ ReportName;
//Passing the Report Path
IReportServerCredentialsirsc =
newCredencialesReporting("******",
ReportViewer1.ServerReport.ReportServerCredentials = irsc;
ReportViewer1.ServerReport.Refresh();
ReportViewer1.Visible =
true;
///<summary>
///</summary>
string_usuario, _password, _dominio;
publicCredencialesReporting(stringuserName,
stringpassword,
stringdomain)
_usuario = userName;
_password = password;
_dominio = domain;
publicSystem.Security.Principal.WindowsIdentityImpersonationUser
get
returnnull;
publicSystem.Net.ICredentialsNetworkCredentials
get
returnnewNetworkCredential(_usuario,
_password, _dominio);
///<summary>
///</summary>
///<param
name="authCoki"></param>
///<param
name="userName"></param>
///<param
name="password"></param>
///<param
name="authority"></param>
///<returns></returns>
//public bool GetFormsCredentials(out System.Net.Cookie authCoki, out string userName, out string password, out string
authority)
// userName = _usuario;
// password = _password;
// authority = _dominio;
// authCoki = new System.Net.Cookie(".ASPXAUTH", ".ASPXAUTH", "/", "Domain");
// return true;
publicboolGetFormsCredentials(outSystem.Net.CookieauthCookie,
outstringuser,
outstringpassword,
outstringauthority)
// Do not use forms credentials to authenticate.
authCookie =
null;
user = password = authority =
null;
returnfalse; -
Merge modules for report viewer only - can you help today?
Hi all,
We are using Crystal 2008, VS 2008, and have an C# application that is using the Crystal reportviewer control to render a report generated server side.
We need the Crystal 2008 reportviewer control, not the 10.5 version that is currently referenced in the studio. For development purposes, we can install the Crystal 2008 msm.
But here's my question.......
For our client side install, is there a merge module/msi that will give me just the controls I need instead of using the (larger) merge module/msi from the site?
We need to get our build done within the next day. Any help in answering this question would be greatly appreciated. If you can just let us know whether there is any other way than the full msm, that would be very helpful.
Thanks so much......Hi,
We need the Crystal 2008 reportviewer control, not the 10.5 version that is currently referenced in the studio. For development purposes, we can install the Crystal 2008 msm.
For development purpose the CR 2008 must get integrated with VS 2008, also all the correct references should be referenced.
- How to integrate
First Install IIS
then VS 2008
then CR 2008
How to check that CR get integrated with VS or not -
Open VS environment go to help about - there you will see the version of CR integrated.
Note:- VS 2008 is compatible with CR 2008 SP0/SP1
For our client side install, is there a merge module/msi that will give me just the controls I need instead of using the (larger) merge module/msi from the site?.
You must have installed the runtimes to run CR on the machine where CR complete product is not installed, Hence the system must have merge modules or server install.
Hope this helps!!
Regards,
Amit
Edited by: Amit Singh on May 6, 2009 5:48 PM -
Dear All,
I have issues in Url Parameters in SharePoint Integrated Mode (Reporting in SQL Server 2012).
Test Server - Working fine
with URL Parameter
1. SharePoint 2010 + SQL Server 2008 R2 Reporting - SharePoint Integration Mode
2. I have 1 PageView Web Part to call a Reports. Eg:-
http://myserver_Test/ReportServer/Pages/ReportViewer.aspx?http://myserver_Test/SSRS%20Reports/Report_1.rdl
Production Server - Failed
with URL Parameter
1. SharePoint 2010 + SQL Server 2012 Reporting - SharePoint Integration Mode
2. Same a Test Server, I have a PageView Web Part to call a Reports but failed with page not found. Eg:-
http://myserver_Production/ReportServer/Pages/ReportViewer.aspx?http://myserver_Production/SSRS%20Reports/Report_1.rdl
I have check the Reporting folder (C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\WebServices\Reporting) and can't found any web page as
ReportViewer.aspx.
ThanksDear All,
Did anyone know, how can I Use the HTML Viewer in SharePoint Integrated Mode for SQL Server 2012 Reporting.
I'm able to user the HTML Viewer in SharePoint Integrated Mode with the Reporting is SQL Server 2008 R2.
http://techpunch.wordpress.com/2008/09/17/sql-server-reporting-services-url-parameters-in-sharepoint-integrated-mode/
I know there is possible to call a report with RSViewerPage, but my users are
not happen with the UI of default SharePoint reports display (RSViewerPage).
http://msdn.microsoft.com/en-us/library/a58b4ca6-129d-45e9-95c7-e9169fe5bba4(v=sql.110)
Appreaciate you help.
Thanks -
Windows 8 and IE 10 crashed after printing from Report Manager SQL server 2008 / 2008 R2
We have a problem with Windows 8 in combination with IE 10 and printing reports.
When we print a report from the Report Manager 'http://<servername>/reports' the browser crashed after a print.
Sometimes before printing and somthimes after printing or when you close the browser.
Al other operating systems like XP, Vista, Windows 7 with different IE versions have no problem.
I tried the report manager from SQL Server 2008 and SQL Server 2008 R2.
The same error occured when printing from our Internet application and the reportviewer.
(ASP application written in Visual Studio 2010 and reportviewer version 10.)
The event log shows two different messages.
Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16453, time stamp: 0x509b0dfb
Faulting module name: ntdll.dll, version: 6.2.9200.16420, time stamp: 0x505aaa82
Exception code: 0xc0000005
Fault offset: 0x00061252
Faulting process id: 0x780
Faulting application start time: 0x01ce03a294f7d1d5
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: d4a72486-6f96-11e2-be6e-10604b6a74ed
Faulting package full name:
Faulting package-relative application ID:
Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16384, time stamp: 0x50107ee0
Faulting module name: rsclientprint.dll, version: 2009.100.1600.1, time stamp: 0x4bb67a74
Exception code: 0xc0000005
Fault offset: 0x00017e7a
Faulting process id: 0x9c8
Faulting application start time: 0x01ce02f35c70ab85
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Windows\Downloaded Program Files\rsclientprint.dll
Report Id: a13fccc6-6ee6-11e2-be67-10604b6a74ed
Faulting package full name:
Faulting package-relative application ID:
Is there a fix for this problem?Dear Mike Yin,
Thank you for your response. Your answer was the
reason for finding the real problem.
In december 2010 a SQL Server 2008 fix was the cause. I don't remember exactly the problem, but we changed the RSCLIENTPrint-x86.cab file. But instead to use the version of SQL Server 2008 we used the version of SQL Server 2008
R2 (10.50.1600.1). This worked until
Windows 8 (Internet Explorer crashed when printing).
We fixed this problem by using the RSClientPrint-x86.cab file from SQL server 2008 (10.0.5500.0).
But we now get the known problem that the
activeX always must be installed again.
The reason for this is that the version of
the SQL Server (10.0.5512.0)
and the rsclientprint.dll (10.0.5500.0) is different. SQL Server is newer (caused
by a security patch (KB2716436)).
Do you know when this problem will be resolved
by Microsoft?
Work arrounds
I've also tried to install the RSClientprint.dll
every time automatically (without user interaction).
But this will be delayed the printing for more
than 4 seconds. This
is very annoying.
Another workaround is to generate a PDF and print the PDF. But this is also
a lot slower.
Uninstall the security patch. but I don't know the security risk. -
Problem reinstalling WSUS on Server 2008 R2
I tried following these steps in these two articles but I am still having problems re-installing wsus.
http://social.technet.microsoft.com/Forums/en/winserverwsus/thread/799c2276-96de-4373-bebe-acb1b7b3c8c8
http://blogs.technet.com/b/sus/archive/2008/11/05/how-to-manually-remove-all-of-wsus.aspx
Please Help
Here is WSUSSetup.log
2012-11-01 10:18:55 Error MWUSSetup ParseCommandLine: Failed to open SOFTWARE\Microsoft\Update Services\Server\Setup registry key (Error 0x80070002: The system cannot find the file specified.)
2012-11-01 10:19:41 Error MWUSSetup DoInstall: ParseCommandLine failed (Error 0x80041453)
2012-11-29 12:19:30 Success MWUSSetup Detected that setup was launched through Server Manager
2012-11-29 12:19:31 Success MWUSSetup Validating pre-requisites...
2012-11-29 12:19:31 Error MWUSSetup Failed to determine if an higher version of WSUS is installed. Assuming it is not... (Error 0x80070002: The system cannot find the file specified.)
2012-11-29 12:19:31 Error MWUSSetup WSUS is outdated. But this will not block setup (Error 0x00000000: The operation completed successfully.)
2012-11-29 12:19:34 Success MWUSSetup ReportViewer is not installed on this machine
2012-11-29 12:19:34 Success MWUSSetup ReportViewer is not installed on this machine
2012-11-29 12:20:24 Success MWUSSetup Initializing installation details
2012-11-29 12:20:24 Success MWUSSetup Skipping Asp.Net install since not running on win2k3...
2012-11-29 12:20:24 Success MWUSSetup Installing wYukon using ocsetup
2012-11-29 12:20:24 Success MWUSSetup Installing Windows Internal database using ocsetup with command line as "ocsetup "WSSEE" /quiet /norestart"
2012-11-29 12:20:56 Error MWUSSetup The process ocsetup "WSSEE" /quiet /norestart returned error: 0x643 (Error 0x80070643: Fatal error during installation.)
2012-11-29 12:20:56 Error MWUSSetup ExecCmd failed (Error 0x80070643: Fatal error during installation.)
2012-11-29 12:20:56 Error MWUSSetup Install Windows Internal database: Failed to execute "ocsetup "WSSEE" /quiet /norestart" (Error 0x80070643: Fatal error during installation.)
2012-11-29 12:20:56 Error MWUSSetup CInstallDriver::PerformSetup: Installation of wYukon failed (Error 0x80070643: Fatal error during installation.)
2012-11-29 12:20:56 Error MWUSSetup CSetupDriver::LaunchSetup: Setup failed (Error 0x80070643: Fatal error during installation.)
2012-11-29 12:21:02 Error MWUSSetup DoInstall: Wsus setup failed (Error 0x80070643: Fatal error during installation.)
2013-01-31 14:43:33 Success MWUSSetup Detected that setup was launched through Server Manager
2013-01-31 14:43:34 Success MWUSSetup Validating pre-requisites...
2013-01-31 14:43:34 Error MWUSSetup Failed to determine if an higher version of WSUS is installed. Assuming it is not... (Error 0x80070002: The system cannot find the file specified.)
2013-01-31 14:43:34 Error MWUSSetup WSUS is outdated. But this will not block setup (Error 0x00000000: The operation completed successfully.)
2013-01-31 14:43:36 Success MWUSSetup ReportViewer is not installed on this machine
2013-01-31 14:43:36 Success MWUSSetup ReportViewer is not installed on this machine
2013-01-31 14:44:32 Success MWUSSetup Initializing installation details
2013-01-31 14:44:32 Success MWUSSetup Skipping Asp.Net install since not running on win2k3...
2013-01-31 14:44:32 Success MWUSSetup Installing wYukon using ocsetup
2013-01-31 14:44:32 Success MWUSSetup Installing Windows Internal database using ocsetup with command line as "ocsetup "WSSEE" /quiet /norestart"
2013-01-31 14:45:01 Error MWUSSetup The process ocsetup "WSSEE" /quiet /norestart returned error: 0x643 (Error 0x80070643: Fatal error during installation.)
2013-01-31 14:45:01 Error MWUSSetup ExecCmd failed (Error 0x80070643: Fatal error during installation.)
2013-01-31 14:45:01 Error MWUSSetup Install Windows Internal database: Failed to execute "ocsetup "WSSEE" /quiet /norestart" (Error 0x80070643: Fatal error during installation.)
2013-01-31 14:45:01 Error MWUSSetup CInstallDriver::PerformSetup: Installation of wYukon failed (Error 0x80070643: Fatal error during installation.)
2013-01-31 14:45:01 Error MWUSSetup CSetupDriver::LaunchSetup: Setup failed (Error 0x80070643: Fatal error during installation.)
2013-01-31 14:46:06 Error MWUSSetup DoInstall: Wsus setup failed (Error 0x80070643: Fatal error during installation.)
2013-04-04 11:43:48 Success MWUSSetup Detected that setup was launched through Server Manager
2013-04-04 11:43:50 Success MWUSSetup Validating pre-requisites...
2013-04-04 11:43:50 Error MWUSSetup Failed to determine if an higher version of WSUS is installed. Assuming it is not... (Error 0x80070002: The system cannot find the file specified.)
2013-04-04 11:43:50 Error MWUSSetup WSUS is outdated. But this will not block setup (Error 0x00000000: The operation completed successfully.)
2013-04-04 11:43:52 Success MWUSSetup ReportViewer is not installed on this machine
2013-04-04 11:43:52 Success MWUSSetup ReportViewer is not installed on this machine
2013-04-04 11:44:40 Success MWUSSetup Initializing installation details
2013-04-04 11:44:40 Success MWUSSetup Skipping Asp.Net install since not running on win2k3...
2013-04-04 11:44:40 Success MWUSSetup Installing wYukon using ocsetup
2013-04-04 11:44:40 Success MWUSSetup Installing Windows Internal database using ocsetup with command line as "ocsetup "WSSEE" /quiet /norestart"
2013-04-04 11:45:05 Error MWUSSetup The process ocsetup "WSSEE" /quiet /norestart returned error: 0x643 (Error 0x80070643: Fatal error during installation.)
2013-04-04 11:45:05 Error MWUSSetup ExecCmd failed (Error 0x80070643: Fatal error during installation.)
2013-04-04 11:45:05 Error MWUSSetup Install Windows Internal database: Failed to execute "ocsetup "WSSEE" /quiet /norestart" (Error 0x80070643: Fatal error during installation.)
2013-04-04 11:45:05 Error MWUSSetup CInstallDriver::PerformSetup: Installation of wYukon failed (Error 0x80070643: Fatal error during installation.)
2013-04-04 11:45:05 Error MWUSSetup CSetupDriver::LaunchSetup: Setup failed (Error 0x80070643: Fatal error during installation.)
2013-04-04 11:46:11 Error MWUSSetup DoInstall: Wsus setup failed (Error 0x80070643: Fatal error during installation.)Hi Jignesh,
Can you please try to install pre-requisites for the WSUS, seems the following things need to be taken care.
rtViewer is not installed on this machine
2012-11-29 12:19:34 Success MWUSSetup ReportViewer is not installed on this machine (Please install report viewer, before you install WSUS).
Seems you're trying to use internal DB for database, thought is is failing, can you try to use SQL on point to remote SQL.
Is this evaluation ver of 2008R2 ?
Installed user is local admin on that server ? is UAC set to low ?
Regards/Papi Reddy
Papi Reddy ----------------------------------------------------- -
Reporting Services 2008 - Anonymous Access
Hello,
In SSRS 2005 I was able to grant anonymous access to my reports by changing the authentication mode for the Reporting Services virtual directory in IIS to Anonymous and then adding the 'account used for anonymous access' to the permissions on the appropriate Reporting Services directories (in report manager).
Now with SSRS 2008 there are no virtual directories in IIS.
I tried to follow the instructions given:
http://technet.microsoft.com/en-us/library/cc281310.aspx (Authentication Types in Reporting Services)
Which instructed me to use the custom AuthenticationType, and following the instructions here:
http://technet.microsoft.com/en-us/library/cc281383.aspx (How to: Configure Custom or Forms Authentication in Reporting Services)
which just got me an error:
The Authentication Extension threw an unexpected exception or returned a value that is not valid: . (rsAuthenticationExtensionError) Get Online Help
For more information about this error navigate to the report server on the local server machine, or enable remote errors
Any ideas on how to set up anonymous access to SSRS2008?
Thanks for any time and help!
-TimJC,
I check the solution on net and get following:
First create a class called ReportServerCredentials that implements the IReportServerCredentials interface. You will need to import System.Net and Microsoft.Reporting.WebForms to this class. Overload the New and GetFormsCredentials methods and the NetworkCredentials and ImpersonationUser properties. Here's a class that I use:
Imports Microsoft.VisualBasic
Imports Microsoft.Reporting.WebForms
Imports System.Net
Public Class ReportServerCredentials
Implements IReportServerCredentials
Private _userName As String
Private _password As String
Private _domain As String
Public Sub New(ByVal userName As String, ByVal password As String, ByVal domain As String)
_userName = userName
_password = password
_domain = domain
End Sub
Public ReadOnly Property ImpersonationUser() As System.Security.Principal.WindowsIdentity Implements Microsoft.Reporting.WebForms.IReportServerCredentials.ImpersonationUser
Get
Return Nothing
End Get
End Property
Public ReadOnly Property NetworkCredentials() As ICredentials Implements Microsoft.Reporting.WebForms.IReportServerCredentials.NetworkCredentials
Get
Return New NetworkCredential(_userName, _password, _domain)
End Get
End Property
Public Function GetFormsCredentials(ByRef authCookie As System.Net.Cookie, ByRef userName As String, ByRef password As String, ByRef authority As String) As Boolean Implements Microsoft.Reporting.WebForms.IReportServerCredentials.GetFormsCredentials
userName = _userName
password = _password
authority = _domain
Return Nothing
End Function
End Class
Next, in the OnLoad of your page with the ReportViewer control, create a new instance of your ReportServerCredentials (I use values stored in AppSettings). Then assign your object to the ReportViewer control's ServerReport.ReportServerCredentials property.
Dim cred As New ReportServerCredentials(ConfigurationManager.AppSettings("MyStoredUser"),_
ConfigurationManager.AppSettings("MyStoredPassword"), _
ConfigurationManager.AppSettings("MyStoredDomain"))
MyReportViewerControl.ServerReport.ReportServerCredentials = cred
I try it but get following error
Compiler Error Message: BC30002: Type 'IReportServerCredentials' is not defined.
Do you think it is a possible way for Reporting Service 2008? if yes, what lead to the error? thanks in advance. -
Java Plugin Viewer with Crystal Reports 2008
Hello,
I am trying to use the Java Plugin Viewer with Crystal Reports, but I have some problems. The ActiveX Viewer works well, but as I want to use the reports in other browsers, I need the Java viewer.
I have a Visual Basic 6 application, and, instead of including SmartViewerActiveX.asp, I have included JavaPluginViewer.asp. I have taken this file from an older version of Crystal, and I am changing the values on it (I have done the same with the ActiveX Viewer, without problems). This is the main code of the file:
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="100%"
height="100%"
codebase="/crystalreportviewers11/JavaPlugin/Win32/j2re-1_4_2_04-windows-i586-p.exe#Version=1,4,0,0">
<param name=type value="application/x-java-applet;version=1.4">
<param name=code value="com.crystaldecisions.ReportViewer.ReportViewer">
<param name=codebase value="/crystalreportviewers11/JavaViewer/">
<param name=archive value="ReportViewer.jar">
<param name=Language value="en_US">
<param name=ReportName value="RDCrptserver11.asp">
<param name=CanDrillDown value="true">
<param name=HasExportButton value="true">
<param name=HasGroupTree value="true">
<param name=ShowGroupTree value="true">
<param name=HasPrintButton value="true">
<param name=HasRefreshButton value="true">
<param name=HasTextSearchControls value="true">
<param name=HasZoomControl value="true">
<param name=HasSearchExpert value="false">
<param name=HasSelectExpert value="false">
<param name=ShowLogo value="false">
</OBJECT>
I know how to change all the values of this object so it works with Crystal2008 except one: the codebase.
I have gone to IIS, and under the virtual folder "crystalreportviewers12" I don't see any JavaPlugin folder, there's only the JavaViewer folder, and there isn't any .exe inside...
So, where can I find the .exe for the codebase?
I have tried searching the web for a tutorial or something, but I haven't seen anything for Crystal 2008.
Can anyone help me?
Thank you very much!This is so wrong, I don't even know which forum this would belong to ( I think I'll move it to the SAP Crystal Reports, version for Eclipse topic Space...
Let's start with this:
I have taken this file from an older version of Crystal,
Don't mix versions. It will not work. Period
Next re:
I don't see any JavaPlugin folder,
If you want a Java solution, I'd recommend using CR for Eclipse which you can download from here:
SAP BusinessObjects - SAP Crystal Reports, Version For Eclipse Download
I would then recommend having a peek here:
CRJ SDK
Developer Help File is here:
https://help.sap.com/javadocs/cr/xi/jrc/en/overview-summary.html
Finally, I'm not sure what references you are making in your VB 6 app, but there is no SDK in CR 2008 that supports VB 6.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
https://twitter.com/SAPCRNetSup -
Method not found when displaying report in viewer CR Basic for VS 2008
I searched and couldn't find anything regarding this. When I try to display a report in the CrystalReportViewer, I get the following error message:
method not found: 'Void CrystalDecisions.Shared.PageRender.set_ExceptionWindowTitle(System.String)'
If I call PrintToPrinter for the report, it prints exactly as expected with no errors. The report viewer control is on a separate generic form (since I have many different reports) and the report is passed to that form after it has been generated.
I can't find any information regarding this error either on these support forums, or anywhere else on the internet. I've tried installing the latest service pack and also removing and re-adding teh crystal reports references to my project without any change.
Thanks for any help you can provide.Ok, I tried a completely fresh install of Visual Studio 2008 on a brand new Windows XP machine, same result. I tried to do this on another developer's machine (who also has Visual Studio 2008 Professional), which resulted in this error when trying to load the ReportViewer (sorry for the long text). It mentions something about redirecting to version 12 of crystal reports in the error message, which is strange because my project references 10.5, and I don't have crystal reports 12, which as I understand is the full retail version of Crystal reports 2008. Any ideas?
A first chance exception of type 'System.IO.FileNotFoundException' occurred in ICE.exe
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>ICE.exe</AppDomain><Exception><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81</StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
=== Pre-bind state information ===
LOG: User = SAGENET\aingraham
LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
</ExceptionString><InnerException><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at ICE.My.MyApplication.Main(String[] Args)
</StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
=== Pre-bind state information ===
LOG: User = SAGENET\aingraham
LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
</ExceptionString></InnerException></Exception></TraceRecord> -
In 2008 R2, I get Object doesn't support property or method PollResizeImages
This is when I run a report from a reportviewer control to reporting services.
Another symptom is that images get cropped but if I refresh page cropping doesn't occur
I have this version of SQL server 2008 R2
Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
I am using the ReportViewer control to display this report
I get this error Line: 1 Error: Object doesn't support property or method 'PollResizeImages'
It appears to be from this method
function anonymous()
this.PollResizeImages(oReportDiv,oReportDiv)
Another environment with same sql server version doesn't get this error for same reportHi DenisLang,
As far as I know, it is a known issue in SSRS. Please try to install the latest version of the Report Viewer Runtime to fix the issue.
If the issue is persist, I recommend you that submit this suggestion at
https://connect.microsoft.com/SQLServer/ . If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the
level of service provided.
Regards,
Alisa Tang
If you have any feedback on our support, please click
here.
Alisa Tang
TechNet Community Support -
How to hide pdf in export option in ssrs ReportViewer
Hi,
This is the code which is used for ReportViewer 2008 and i need code for ReportViewer 2010.
so please help me out asap.
private void CustomizeReportViewer(System.Web.UI.Control reportControl)
foreach (System.Web.UI.Control childControl in reportControl.Controls)
if (childControl.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)childControl;
if (ddList.ToolTip.Contains("Export"))
ddList.PreRender += new EventHandler(ddList_PreRender);
if (childControl.GetType() == typeof(System.Web.UI.WebControls.Button))
System.Web.UI.WebControls.Button ddList = (System.Web.UI.WebControls.Button)childControl;
if (ddList.UniqueID.Contains("ctl00_ContentPlaceHolder1_rptviewerByBrandBySentimentAttribute_ctl06_ctl04_ctl00_Button"))
ddList.PreRender += new EventHandler(ddList_PreRender);
if (childControl.Controls.Count > 0)
CustomizeReportViewer(childControl);
// This is the event handler added from CustomizeRV
// We just check the object type to get what we needed.
// Once the dropdownlist is found, we check if it is for the ExportGroup.
// Meaning, the "Excel" text should exists.
// Then, just traverse the list and disable the "Excel".
// When the report is shown, "Excel" will no longer be on the list.
// You can also do this to "PDF" or if you want to change the text.
void ddList_PreRender(object sender, EventArgs e)
if (sender.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)sender;
System.Web.UI.WebControls.ListItemCollection listItems = ddList.Items;
if ((listItems != null) && (listItems.Count > 0) && (listItems.FindByText("Excel") != null))
foreach (System.Web.UI.WebControls.ListItem list in listItems)
if (list.Text.Equals("XML file with report data") || list.Text.Equals("CSV (comma delimited)") || list.Text.Equals("TIFF file") || list.Text.Equals("Word") || list.Text.Contains("PPS"))
list.Enabled = false;
susana wHi God’s Favorite,
Thanks for your post.
According to your description, you would like to disable the SSRS rendering format PDF in VS 2010 ReportViewer control, please
refer to the steps below I demonstrate for you:
1. Add the method below to your .aspx.cs file as back-end code.
/// <summary>
/// Hidden the special SSRS rendering format in ReportViewer control
/// </summary>
/// <param name="ReportViewerID">The ID of the relevant ReportViewer control</param>
/// <param name="strFormatName">Format Name</param>
public void DisableUnwantedExportFormat(ReportViewer ReportViewerID,
string strFormatName)
FieldInfo info;
foreach (RenderingExtension extension
in ReportViewerID.ServerReport.ListRenderingExtensions())
if (extension.Name == strFormatName)
info = extension.GetType().GetField("m_isVisible",
BindingFlags.Instance |
BindingFlags.NonPublic);
info.SetValue(extension, false);
2. Choose the relevant Reportviewer control and press F4.
3. In the Properties window, click the Events icon, then double click the PreRender item to generate the
ReportViewer1_PreRender method, I assume your reportViewer control ID is ReportViewer1,
edit your method like below:
protected void ReportViewer1_PreRender(object sender,
EventArgs e)
DisableUnwantedExportFormat((ReportViewer)sender,"PDF");
After you complete the steps above, run your project and it works just as you expected.
Thanks,
Bill Lu
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
How to setup default print to landscape in Reportviewer (printmode activex)
We have an ASP.NET (2008) application and use the ReportViewer Web Control to show a Crystal Report on the client browser.
- We set the "PrintMode" property to ActiveX in order to print to the client's local printer.
- We set up the Landscape in Crystal Report Page setup.
- We also put repdoc.PrintOptions.PaperOrientation = PaperOrientation.Landscape in the program.
The problem is when the user clicks the print icon, the report prints in portrait, not landscape.
Is there a solution for this or is this a software limitation?
Thanks.How to setup default print to landscape in Reportviewer (printmode activex)
Hi David,
Yes, I tried that 1196969 solution first, but it didn't work. I saw all the discussion in the below thread and it seems a product issue mention by you on Aug 6, 2008 3:19 PM
CrystalReportViewer default PageOrientation ASP.NET VS 2008
I don't know if the fix works for CrystalReportWebFormViewer4 which is what we have on the web server. I put debug alert in the Javascript of the following file
WindowsMicrosoft.NETv2.0.50727ASP.NETClientFilesCrystalReportWebFormViewer4crystalprinthost.html
I can see the call goes to the file, but won't get to the window.dialogArguments.paperorientation condition.
When I write out: window.dialogArguments.paperorientation; it pops up "undefined".
Is there any updated solution for CrystalReportWebFormViewer4?
Thank you!! -
SSRS 2008 - ServerReport.SetParameters() suddenly extremely slow
Hi,
We have been using SSRS 2008 R2 for quite a while now but 3 weeks ago we started to notice some performance problems when generating SSRS reports. We have a .NET client which gets the list of reports from the server and then the end user can select a report,
enter the parameter and then view the report in our client.
So 3 weeks ago users started to notice that when they clicked on a report (and in the background we load the parameter prompts etc.) it took almost a full minute. When normally this would only take a few seconds. I have narrowed it down to the method mentioned
in the title. When we call the method ServerReport.SetParameters(parameters) our client has to wait for that one minute.. This also does not go away when you run the report a second time. This is becoming a real problem as our users produce a lot of reports
during the day and every time that method is called the client has to wait 60 seconds. This was not the case 3 weeks ago, I have already checked if something was changed on the server etc. but everything looks okay. Went through the logs etc.
Could it be that our ReportServerTempDB is getting too big? When I checked the logs I saw that the Clean Batch() is running every 10mins so this looks ok. Will check with our Infrastructure Team later to see how big the ReportServerTempDB is and if it is
possible to purge some of the data.
I also read a about report caching but I am unsure if this helps at all and/or which form of caching to use. Our users run a certain amount of reports on a daily basis where only the date range changes (today they run it for 01.08.2014, tomorrow maybe for
02.08.2014 and so on). Would caching help in this case?
Any other things I might be overlooking or that you think could cause the problem?
Thanks a lot!
FabianHi Fabian,
According to your description, the reports performance become poor in the latest three weeks. And you think the issue is caused by the ServerReport.SetParameters Method. As per my understanding, there does not performance concern of SetParameters or other
method among Report Manager, Report Viewer or URL Access. Because every call to Reporting Services will use the same Programmatic interface to render a server report. We can try to directly render the report in report server to check whether it related to
the method.
Besides, I think the problem is duo to the cache of the .NET compilation or the HTML render. We can try to clear the cache and restart the server to check the issue again.
The following similar threads are for your reference:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/cced1e18-bba0-4d2c-98a1-d245cc2c2b13/reportexecutionservice-vs-reportmanager-performance
http://stackoverflow.com/questions/2274317/c-sharp-winforms-reportviewer-performance-issue-using-refreshreport-and-server
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
The IReportServerCredentials approach with the ReportViewer control is working fine within a domain, but I get a 401 not authorized error for a Web IIS server trying to call a SSRS server in another domain. I've see plenty of helpful postings on the use
of IReportServerCredentials but nothing that provides suggestions for this cross domain issue. Hope someone has some ideas on this one. Thanking you in advance for your response.
Using VS 2008 VB.NET web app with ReportViewer control Version=8.0.0.0.
Outside domainA Web Server IIS 8. OS = Windows NT 6.2;
Inside domainA Windows 7 desktop; Inside domainA Windows Server 2003
SSRS using windows authentication and on SQL Server 2012. OS = Windows NT 6.2
The processing described below successfully produces a report when the web server app runs on a machine in the same domain as the SSRS server. For the "same domain" web app, both Win 7 desktop VS 2008 development server and Windows 2003 IIS 6 have
been tested successfully.
The report fails with error "The request failed with HTTP status 401: not authorized " when the web app is run from a windows IIS 8 machine (outward or Internet facing web server) that is not in the domain of the SSRS server. The ReportViewer control
credentials (provided by IReportServerCredentials and taken from the web.config file) match a domain account in the same domain as the SSRS
server and one that has browser permission on the report folder. The same credentials are used successfully for reports requested from within the SSRS domain.
One interesting thing is that on the Internet facing web server, I can access the report via a browser request. So it is possible to have a user request coming from the Internet facing machine get through the SSRS windows authentication. Just does not
work for the ReportViewer.
Using IReportServerCredentials interface per example provided by Microsoft msdn site. Code listed below.
IReportServerCredentials would appear to be a viable approach because it can pass credentials of a windows account known to the SSRS server, but not known to the client machine. By the way, database calls to SQL Server in domainA using a SQL Server
native login account work fine. So the network support communication to a domain that the web server does not belong to.
<Serializable()> _
Public NotInheritable Class MyReportServerCredentials
Implements IReportServerCredentials
Public ReadOnly Property ImpersonationUser() As System.Security.Principal.WindowsIdentity _
Implements IReportServerCredentials.ImpersonationUser
Get
'Use the default windows user. Credentials will be
'provided by the NetworkCredentials property.
Return Nothing
End Get
End Property
Public ReadOnly Property NetworkCredentials() As ICredentials _
Implements IReportServerCredentials.NetworkCredentials
Get
'Read the user information from the web.config file.
'By reading the information on demand instead of storing
'it, the credentials will not be stored in session,
'reducing the vulnerable surface area to the web.config
'file, which can be secured with an ACL.
'User name
Dim userName As String = _
ConfigurationManager.AppSettings("MyReportViewerUser")
If (String.IsNullOrEmpty(userName)) Then
Throw New Exception("Missing user name from web.config file")
End If
'Password
Dim password As String = _
ConfigurationManager.AppSettings("MyReportViewerPassword")
If (String.IsNullOrEmpty(password)) Then
Throw New Exception("Missing password from web.config file")
End If
'Domain
Dim domain As String = _
ConfigurationManager.AppSettings("MyReportViewerDomain")
If (String.IsNullOrEmpty(domain)) Then
Throw New Exception("Missing domain from web.config file")
End If
Return New NetworkCredential(userName, password, domain)
End Get
End Property
Public Function GetFormsCredentials(ByRef authCookie As Cookie, _
ByRef userName As String, _
ByRef password As String, _
ByRef authority As String) As Boolean _
Implements IReportServerCredentials.GetFormsCredentials
authCookie = Nothing
userName = Nothing
password = Nothing
authority = Nothing
'Not using form credentials
Return False
End Function
End Class
'Set the ReportViewer values and retrieve the report from the SSRS server into a pdf file on the client machine.
ProposalRptViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote
' Set the ReportViewer ReportServerCredentials from the MyReportServerCredentials Class.
' Note the credentials are for a domain account defined in the same domain that the SSRS server belongs to and one that has browser permission on the report folder.
ProposalRptViewer.ServerReport.ReportServerCredentials = _
New MyReportServerCredentials()
ProposalRptViewer.ServerReport.ReportServerUrl = New Uri(System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportServerURL))
ProposalRptViewer.ServerReport.ReportPath = System.Configuration.ConfigurationManager.AppSettings(Web.[Global].CfgKeyReportPathProposal)
ProposalRptViewer.ShowCredentialPrompts = False ' disable prompting for data source credentials
Dim paramList As New Generic.List(Of ReportParameter)
Dim pInfo As ReportParameterInfoCollection
pInfo = ProposalRptViewer.ServerReport.GetParameters()
paramList.Add(New ReportParameter("ProposalID", ProposalID, True))paramList.Add(New ReportParameter("Entity", Entity, True))
paramList.Add(New ReportParameter("intRatesPage", intRatesPage1, True))
ProposalRptViewer.ServerReport.SetParameters(paramList)
' Process and render the report
ProposalRptViewer.ServerReport.Refresh()
Dim mimeType As String = Nothing
Dim encoding As String = Nothing
Dim streams As String() = Nothing
Dim extension As String = Nothing
Dim warnings As Microsoft.Reporting.WebForms.Warning() = Nothing
Dim returnValue As Byte()
' Render the proposal Rate Page 1 report to a Byte Array output in pdf file format.
returnValue = ProposalRptViewer.ServerReport.Render("PDF", Nothing, mimeType, encoding, extension, streams, warnings)
An error only occurs for web server not in the domain of SSRS Server:
The request failed with HTTP status 401: Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack
trace below.
Stack Trace:
[WebException: The request failed with HTTP status 401: Unauthorized.]
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.GetSecureMethods() +236
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.IsSecureMethod(String methodname) +58
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.SetConnectionSSLForMethod(String methodname) +16
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String Report, String HistoryID) +226
Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +192
Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1 parameters) +136
DeltaRater.Web.ViewRates.btnCreateProposal_Click(Object sender, EventArgs e) in C:\alex\~~_____Rapid_Rater\SourceDir_VS2008_Jan17_2014\DRR\ViewRates.aspx.vb:911
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2981
Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8010I got the answer to my question by following suggestions by Irb on another technical forum.
From web server (not on same domain), I was passing credentials of a domain account on the SSRS server. Irb suggested I create a local account on the SSRS server and pass those credentials. I tried this but got the same results.
This approach worked for web server in SSRS domain, but failed with 401 Unauthorized for web server outside the SSRS domain. Per suggestion for local account on SSRS server, I tried passing empty string "" as the domain via IReportServerCredentials.
Again this works for web server in the same domain as SSRS. But I get the 401 Unauthorized error when the web server is outside the domain. In testing and checking similar posts, I discovered an additional piece was required for the report request to work
across domains. The default user did not have authority to send the request and/or receive the report. Adding the following in <system.web> section of web.config file was needed.
<identity impersonate="true" userName="localwindowsuser" password="#########"/> where "localwindowsuser" is a windows user defined on the web server.
I never needed this extra piece when the web server ran in the same domain as the SSRS server. I thank Irb for making me go through the details of additional tests because that is how I stumbled across an identity comment and ultimately got things working. -
Hi,
I have a .NET application that uses SSRS ReportViewer 2012 control to render reports deployed on SSRS 2012 integrated with SharePoint 2010. I am getting error "the report execution '' has expired or not found". The same code works when I connect
to SSRS 2008 R2 integrated with SharePoint 2007. I investigated the issue and it seems the JavaScript that pings the SSRS server before it expires is missing from rendered HTML.
Let me know if there is a way to fix this issue.
following is the code:
ASPX:
<formid="form1"runat="server">
<rsweb:ReportViewerAsyncRendering="true"
KeepSessionAlive="true"ID="test"runat="server"></rsweb:ReportViewer>
<asp:scriptmanagerrunat="server"></asp:scriptmanager>
</form>
Code Behind:
if(!IsPostBack)
this.Session.Clear();
test.Reset();
test.ProcessingMode =
ProcessingMode.Remote;
test.KeepSessionAlive =
true;
test.ServerReport.ReportServerUrl =
newSystem.Uri("https://webappname/_vti_bin/reportserver/");
test.ServerReport.ReportPath =
https://webappname/RS_Reports/REportEngineTest.rdl;
ReportServerCredentialscred =
newReportServerCredentials();
test.ServerReport.ReportServerCredentials = cred;
report server credentials:
publicICredentialsNetworkCredentials
get
// Use default identity.
returnnewNetworkCredential("user",
"pwd",
"domain");What's the meaning of webappname, are you mean the sharepoint site?
I think this issue can be caused by the incorrect url. You can refer to the following link:
http://msdn.microsoft.com/en-us/library/ms154497(v=sql.110).aspx
Familyabc
Maybe you are looking for
-
just got Prosoft drive genius 3 software, and it's telling me that the external hard drive that i am using for my time machine back up drive needs to be defragmented. is it wise to do this or should i not??
-
17'macbook pro + projector
Hi all I have late 2009 mbp 17' OS 10.8 and have purchased a digital projector with the view to play dvds / movies etc. I have mini display port to HDMI cable and when connected the image on the projector screen flickers and is not smooth? What coul
-
Airport Extreme & X-Modem - is there a setup guide please?
I'm based in the UK and have recently purchased an X-Modem M3 ADSL modem to replace a Netgear router/modem in my home network. This modem will replace the Netgear and connect in to the WAN port of my Airport Extreme Base Station. I can get the modem
-
I am downloading photoshop 11 upgrade what is the serial number?
what is the serial number? I am downloading Photoshop 11 upgrade?
-
Ugggh! My external HDD containing all of my RAW image files failed the other day. Luckily, only my RAW files lived on the failed drive and, thanks to auto-backup on importing into LR, I didn't lose a single image file. When I restored my picture file