Showing posts with label designer. Show all posts
Showing posts with label designer. Show all posts

Friday, March 30, 2012

ReportViewer does not show report in aspx page

I created a report with a parameter. The parameter was created using a dataset in the report designer. This works fine. I deployed the report (webhost4life) and the report runs fine in the report manager. I am able to select my casenumber click on the default view report button and it works.

Problem: I embedd the report into an aspx page frmReports1.aspx. I call this page from another page (form). the frmReports.aspx page comes up and displays the default drop down list box with the casenumbers (fine). I select the casenumber and click on the view report button and NOTHING. I here the postbacks taking place but all that happens is the default value appears in the drop down list box and the toolbar shows. I checked permissions and everything is fine. I searched the forum and thought i found the solution with the inLine HTML and Async (still nothing) I can only think that something is not going right with the parameter. Here is my html, and code behind code. any help would be greatly apprcieated.

Zachary

<%@. Page Language="VB" AutoEventWireup="false" CodeFile="frmReports1.aspx.vb" Inherits="frmReports1" %>

<%@. Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<%@. Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

<style>html,body,form {height:100%}</style>

</head>

<body>

<form id="form1" runat="server">

<div>

<rsweb:ReportViewer ID="rvTest" runat="server" Width="600px" ProcessingMode="Remote" AsyncRendering="false" Height="75%" >

<ServerReport

DisplayName="Billable Hours"

ReportPath="/sddmtech/SnowandIce/rptHoursWorked"

ReportServerUrl="http://sqlreport01.mysite4now.com/Reportserver" />

</rsweb:ReportViewer>

&nbsp;

</div>

</form>

</body>

</html>

aspx code behind

Imports System.Net

Imports System.Security.Principal

Imports Microsoft.Reporting.WebForms

Partial Class frmReports1

Inherits System.Web.UI.Page

Protected Sub rvTest_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles rvTest.Init

End Sub

<Serializable()> _

Public NotInheritable Class MyReportServerCredentials

Implements IReportServerCredentials

Public ReadOnly Property ImpersonationUser() As WindowsIdentity _

Implements IReportServerCredentials.ImpersonationUser

Get

Return Nothing

End Get

End Property

Public ReadOnly Property NetworkCredentials() As ICredentials _

Implements IReportServerCredentials.NetworkCredentials

Get

' Put your login and password here this works fine

Dim userName As String = ""

Dim password As String = ""

Dim domain As String = ""

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

End Function

End Class

Public Function GetFormsCredentials(ByRef authCookie As Cookie, _

ByRef userName As String, _

ByRef password As String, _

ByRef authority As String) _

As Boolean

authCookie = Nothing

userName = Nothing

password = Nothing

authority = Nothing

'Not using form credentials

Return False

End Function

Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load

'ReportViewer1.ServerReport.ReportServerCredentials = New MyReportServerCredentials()

'rvTest.ServerReport.Refresh()

End Sub

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

rvTest.ServerReport.ReportServerCredentials = New MyReportServerCredentials()

End Sub

End Class

Try taking out the http://www.w3.org/1999/xhtml namespace value and see if it works. It may have nothing to do with it, but there are some um infelicities with the rendered HTML for report viewer that make the Standards Police very unhappy...

It's just a guess but it is a guess that will take you 3 seconds to check <s>.

I don't think it's your credentials -- otherwise why would the parameters etc show up? You're getting to the site...

>L<

|||

Thanks Lisa

I took the www.w3.org statement out but it did not work. Still the same.

Zachary

|||

Hi Lisa

It is a problem with the parameter. I created a stored procedure with the same data however; it does not contain a parmeter. i.e. it pulls back all of the data (it works).

In report designer I created two datasets. One dataset holds all the possible values that can be passed to the stored procedure

Select CaseNumber from tblCases

These values are put into a drop down list box in the toolbar (it is done automatically for me).

The second dataset uses this value once it is selected and retrieves the data that is to be displayed in the report. (This is the disconnect. ) Does anyone know how to do this. I do not want to create a custom control in the toolbar. I want to extract the parameter value that already exists in the existing toolbar and then pass that value to the stored procedure / report.

Is there an example or does anyone have an example of passing the parameter value using the Report Viewer and a stored procedure.

thanks

Zachary

|||>.

Is there an example or does anyone have an example of passing the parameter value using the Report Viewer and a stored procedure.

<

Yep <g>.

http://forums.microsoft.com/msdn/showpost.aspx?postid=1705421&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=1

>L<

|||

Thanks Lisa

Fixed the problem - In Problem I was reloading the report on postback therefore cancelling out the paramter. So I did a check for post back (i.e if page.ispostback = false then ) and everything is working.

This is a greate forum.

Zachary

Fixed the problem - thanks

Zachary

|||

Cool! Thanks for explaining.

>L<

Wednesday, March 21, 2012

Reports timing out in web, run fine in designer.

I have implemented SQL reports a few week ago and everything has been
running fine until last weekend. What we are experiencing is that ALL
reports (even the small ones) are timing out, yet I can run them fine
in report designer.
We are running on a clustered web server install- I checked the IIS
timeouts on both servers (one is set to 120, the other is set to 300
seconds), but some of these reports shouldn't even be hitting the
timeout limit. Are there some settings or configuration changes that
I should look into to determine the cause of this performance slow-
down?
This is pretty urgent, so a quick reply would be very appreciated.
Thanks in advance.have your DBA check out the logs on the SQL server and run the SQL profiler
to see what is happening in the DBs.
"Just Another Reporter" <Crystal.Warren@.gmail.com> wrote in message
news:1184612034.766799.123730@.o11g2000prd.googlegroups.com...
>I have implemented SQL reports a few week ago and everything has been
> running fine until last weekend. What we are experiencing is that ALL
> reports (even the small ones) are timing out, yet I can run them fine
> in report designer.
> We are running on a clustered web server install- I checked the IIS
> timeouts on both servers (one is set to 120, the other is set to 300
> seconds), but some of these reports shouldn't even be hitting the
> timeout limit. Are there some settings or configuration changes that
> I should look into to determine the cause of this performance slow-
> down?
> This is pretty urgent, so a quick reply would be very appreciated.
> Thanks in advance.
>|||Also something to note- I am not able to deploy reports, I get the
same timeout error. I have manually uploaded using the reports
website, but then I am not able to delete any items (same error). I
have tested using my logon as well as the administrator logon.
I think this is a web server issue rather than a DB issue since I can
run the reports fine in designer. A look through the SQL logs didn't
provide any clues.
Here is an exerpt from the Reporting Services Log:
ERROR: Sql Error in CleanOrphanedSnapshots:
System.Data.SqlClient.SqlException: Timeout expired. The timeout
period elapsed prior to completion of the operation or the server is
not responding.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at
Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanOrphanedSnapshots(Int32&
chunksCleaned)
w3wp!library!16d0!7/16/2007-15:28:49:: i INFO: Cleaned 0 batch
records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
chunks, 0 running jobs
ERROR: Sql Error in CleanExpiredSessions:
System.Data.SqlClient.SqlException: Timeout expired. The timeout
period elapsed prior to completion of the operation or the server is
not responding.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at
Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredSessions()
On Jul 16, 12:00 pm, "Dean" <deanl...@.hotmail.com.nospam> wrote:
> have your DBA check out the logs on the SQL server and run the SQL profiler
> to see what is happening in the DBs.
> "Just Another Reporter" <Crystal.War...@.gmail.com> wrote in messagenews:1184612034.766799.123730@.o11g2000prd.googlegroups.com...
>
> >I have implemented SQL reports a few week ago and everything has been
> > running fine until last weekend. What we are experiencing is that ALL
> > reports (even the small ones) are timing out, yet I can run them fine
> > in report designer.
> > We are running on a clustered web server install- I checked the IIS
> > timeouts on both servers (one is set to 120, the other is set to 300
> > seconds), but some of these reports shouldn't even be hitting the
> > timeout limit. Are there some settings or configuration changes that
> > I should look into to determine the cause of this performance slow-
> > down?
> > This is pretty urgent, so a quick reply would be very appreciated.
> > Thanks in advance.- Hide quoted text -
> - Show quoted text -|||I found out the problem. The SessionLock table in the
ReportServerTemp DB was locked up. I had to restart the sql service
and remove the rows in that table to fix the problem.
Now that we can run reports we are unable to execute the
subscriptions. Any old or new subscriptions just sit there and do not
update their status. I can see that the SQL jobs are executing with
no errors and there are no errors in the logs. Any suggestions?
On Jul 16, 1:54 pm, Just Another Reporter <Crystal.War...@.gmail.com>
wrote:
> Also something to note- I am not able to deploy reports, I get the
> same timeout error. I have manually uploaded using the reports
> website, but then I am not able to delete any items (same error). I
> have tested using my logon as well as the administrator logon.
> I think this is a web server issue rather than a DB issue since I can
> run the reports fine in designer. A look through the SQL logs didn't
> provide any clues.
> Here is an exerpt from the Reporting Services Log:
> ERROR: Sql Error in CleanOrphanedSnapshots:
> System.Data.SqlClient.SqlException: Timeout expired. The timeout
> period elapsed prior to completion of the operation or the server is
> not responding.
> at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at
> Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanOrphanedS=na=ADpshots(Int32&
> chunksCleaned)
> w3wp!library!16d0!7/16/2007-15:28:49:: i INFO: Cleaned 0 batch
> records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
> chunks, 0 running jobs
> ERROR: Sql Error in CleanExpiredSessions:
> System.Data.SqlClient.SqlException: Timeout expired. The timeout
> period elapsed prior to completion of the operation or the server is
> not responding.
> at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at
> Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredSe=ss=ADions()
> On Jul 16, 12:00 pm, "Dean" <deanl...@.hotmail.com.nospam> wrote:
>
> > have your DBA check out the logs on the SQL server and run the SQL prof=iler
> > to see what is happening in the DBs.
> > "Just Another Reporter" <Crystal.War...@.gmail.com> wrote in messagenews=:1184612034.766799.123730@.o11g2000prd.googlegroups.com...
> > >I have implemented SQL reports a few week ago and everything has been
> > > running fine until last weekend. What we are experiencing is that ALL
> > > reports (even the small ones) are timing out, yet I can run them fine
> > > in report designer.
> > > We are running on a clustered web server install- I checked the IIS
> > > timeouts on both servers (one is set to 120, the other is set to 300
> > > seconds), but some of these reports shouldn't even be hitting the
> > > timeout limit. Are there some settings or configuration changes that
> > > I should look into to determine the cause of this performance slow-
> > > down?
> > > This is pretty urgent, so a quick reply would be very appreciated.
> > > Thanks in advance.- Hide quoted text -
> > - Show quoted text -- Hide quoted text -
> - Show quoted text -|||I figured this out. The sessionlock table was locked up. I couldn't
even return any rows from it. I restarted sql server service and
removed the rows. After this I was able to run reports again.
On Jul 16, 1:54 pm, Just Another Reporter <Crystal.War...@.gmail.com>
wrote:
> Also something to note- I am not able to deploy reports, I get the
> same timeout error. I have manually uploaded using the reports
> website, but then I am not able to delete any items (same error). I
> have tested using my logon as well as the administrator logon.
> I think this is a web server issue rather than a DB issue since I can
> run the reports fine in designer. A look through the SQL logs didn't
> provide any clues.
> Here is an exerpt from the Reporting Services Log:
> ERROR: Sql Error in CleanOrphanedSnapshots:
> System.Data.SqlClient.SqlException: Timeout expired. The timeout
> period elapsed prior to completion of the operation or the server is
> not responding.
> at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at
> Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanOrphanedSnapshots(Int32&
> chunksCleaned)
> w3wp!library!16d0!7/16/2007-15:28:49:: i INFO: Cleaned 0 batch
> records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0
> chunks, 0 running jobs
> ERROR: Sql Error in CleanExpiredSessions:
> System.Data.SqlClient.SqlException: Timeout expired. The timeout
> period elapsed prior to completion of the operation or the server is
> not responding.
> at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior
> cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
> at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
> at
> Microsoft.ReportingServices.Library.DatabaseSessionStorage.CleanExpiredSessions()
> On Jul 16, 12:00 pm, "Dean" <deanl...@.hotmail.com.nospam> wrote:
> > have your DBA check out the logs on the SQL server and run the SQL profiler
> > to see what is happening in the DBs.
> > "Just Another Reporter" <Crystal.War...@.gmail.com> wrote in messagenews:1184612034.766799.123730@.o11g2000prd.googlegroups.com...
> > >I have implemented SQL reports a few week ago and everything has been
> > > running fine until last weekend. What we are experiencing is that ALL
> > > reports (even the small ones) are timing out, yet I can run them fine
> > > inreportdesigner.
> > > We are running on a clustered web server install- I checked the IIS
> > > timeouts on both servers (one is set to 120, the other is set to 300
> > > seconds), but some of these reports shouldn't even be hitting the
> > > timeout limit. Are there some settings or configuration changes that
> > > I should look into to determine the cause of thisperformanceslow-
> > > down?
> > > This is pretty urgent, so a quick reply would be very appreciated.
> > > Thanks in advance.- Hide quoted text -
> > - Show quoted text -

Monday, February 20, 2012

Reporting Services: alternatives to Visual Studio as a Report Designer?

I am sold on Reporting Services. Our small company data
base is running on SQLserver2000 on Windows2003. We don't
need the full functionality ( and especially cost) of
Visual Studio.net as the Report Designer. What lower-cost
alternatives are there to buying Visual Studio. net?
Ian Wells
Check the Reporting Services partners -
http://www.microsoft.com/sql/reporti...twareapps.asp.
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com
"Ian Wells" <ian.wells@.experienceplus.com> wrote in message
news:83a901c4ce69$e57d2b50$a301280a@.phx.gbl...
> I am sold on Reporting Services. Our small company data
> base is running on SQLserver2000 on Windows2003. We don't
> need the full functionality ( and especially cost) of
> Visual Studio.net as the Report Designer. What lower-cost
> alternatives are there to buying Visual Studio. net?
> Ian Wells