Showing posts with label working. Show all posts
Showing posts with label working. Show all posts

Friday, March 30, 2012

ReportViewer fails when called direct from production server / works when called indirect

Hi Folks ...

Here is my setup and then I'll detail what is working, not working with the ReportViewer control:

1) Server (Everything is contained on one server right now) sits in the DMZ (Web application available to Internet)

- Win2003 Server

- IIS

Web Site A -www.site1.comWeb Site B -www.site2.comWeb Site C -www.site3.com

- SQL Server 2005

- SQL Server Reporting Services

Each web site has its own SRSS Virtual Reports and ReportServer directories setup for reporting.

2) Development Workstation - inside the firewall.

- Windows XP Professional

- Visual Studio 2005

Ok, you have the setup. Now for the problem. I've created a web application that uses form authentication with user ids and passwords stored in the database that I check to allow authorization in to the web program. I have created reports and deployed them via Visual Studio to the Report Server.

Run Verification:

Successfully runs when I run by keying the web address in to the web browser - am prompted for user id and password, I manually key in the user id and password that I have coded in to the application:http://www.site1.com/ReportServer?/ApplicationName/ReportName

Run from within Visual Studio on Development Machine - note this authenticates properly - note that when run within VS, it still calls report on server:

Successfully runs the report when I have the following code on a form - the ReportViewer control is located within the web page and is named rptMOCLog (I created the MOCReportServerCredentials authentication mechanism to support my Form based authentication based on articles in this Forum and MSDN to create the authentication mechanism that can be passed to ReportServer)

ProtectedSub rptMOCLog_Init(ByVal senderAsObject,ByVal eAs System.EventArgs)Handles rptMOCLog.Init

Dim loParameters(3)As ReportParameter

Me.rptMOCLog.ServerReport.ReportServerCredentials =New ReportServerCredentials("ApplicationReportUser","ApplicationReportUserPassword","")

Me.rptMOCLog.ServerReport.ReportServerUrl =New Uri("http://www.site1.com/ReportServer")

Me.rptMOCLog.ServerReport.ReportPath ="/ApplicationName/ReportName"

loParameters(0) =

New Microsoft.Reporting.WebForms.ReportParameter("corpID", Session("svCorpId").ToString,False)

loParameters(1) =

New Microsoft.Reporting.WebForms.ReportParameter("plantID", Session("svPlantId").ToString,False)

loParameters(2) =

New Microsoft.Reporting.WebForms.ReportParameter("dateBegin", Format(DateAdd(DateInterval.Year, -1, Date.Now()),"d").ToString,True)

loParameters(3) =

New Microsoft.Reporting.WebForms.ReportParameter("dateEnd", Format(DateAdd(DateInterval.Day, 1,Date.Now()),"d").ToString,True) Me.rptMOCLog.ServerReport.SetParameters(loParameters)EndSub

Next I move the entire application up to the IIS Server and attempt to run from there - moved to thewww.site1.com web site on the server.

Application fails to run the report with the following message

The request failed with HTTP status 401: Unauthorized.

I have verified that the ApplicationReportUser is a part of the following groups:

SQLServer2005ReportingServicesWebServiceUser$ENTERPRISE$MSSQLSERVERSQLServer2005ReportServerUser$ENTERPRISE$MSSQLSERVER

Ok, I'm banging my head against the wall and it's starting to hurt. Anyone have any clue on how to make the report run from the production server?

I ended up having to blow away and reinstall the entire SQL Server environment to get rid of my error and have the reports display properly. Don't know what other solutions may exist, but this is the only way I could solve the problem.

Hoping this doesn't happen after I role this in to production ... fingers crossed.

David

ReportViewer control 'squished' in Mozlla? Help pls! :)

I have most stuff configured to look good through Mozilla, and the reports
I'm working on themselves don't look bad in the browser.
However, the ReportViewer control Toolbar (with the export options, refresh
button etc) is compressed horizontally causing it to flow onto 3 or so
seperate horizontal lines, when it's rendered.
Now, I've tried running it in tables, divs, etc. I can't find anything on
the page which would cause this to happen. Does anyone know if this bar
does not display correctly through Mozilla?
I have a feeling it will not display correctly through Mozilla if it's made
up of mested tables (the ReportViewer toolbar) ?
Any light shone on the matter, appreciated.
Matt SwiftIt happens because of the style sttribute in the IMG tag. So write a small
javascript to disable IMG tag's style attribute.
Kanchana Eramudugoda
"Matt Swift" wrote:
> I have most stuff configured to look good through Mozilla, and the reports
> I'm working on themselves don't look bad in the browser.
> However, the ReportViewer control Toolbar (with the export options, refresh
> button etc) is compressed horizontally causing it to flow onto 3 or so
> seperate horizontal lines, when it's rendered.
> Now, I've tried running it in tables, divs, etc. I can't find anything on
> the page which would cause this to happen. Does anyone know if this bar
> does not display correctly through Mozilla?
> I have a feeling it will not display correctly through Mozilla if it's made
> up of mested tables (the ReportViewer toolbar) ?
> Any light shone on the matter, appreciated.
> Matt Swift
>
>|||Can u provide a sample script that disables IMG tag's style attribute?
"Kanchana" wrote:
> It happens because of the style sttribute in the IMG tag. So write a small
> javascript to disable IMG tag's style attribute.
> Kanchana Eramudugoda
>
> "Matt Swift" wrote:
> > I have most stuff configured to look good through Mozilla, and the reports
> > I'm working on themselves don't look bad in the browser.
> >
> > However, the ReportViewer control Toolbar (with the export options, refresh
> > button etc) is compressed horizontally causing it to flow onto 3 or so
> > seperate horizontal lines, when it's rendered.
> >
> > Now, I've tried running it in tables, divs, etc. I can't find anything on
> > the page which would cause this to happen. Does anyone know if this bar
> > does not display correctly through Mozilla?
> >
> > I have a feeling it will not display correctly through Mozilla if it's made
> > up of mested tables (the ReportViewer toolbar) ?
> >
> > Any light shone on the matter, appreciated.
> >
> > Matt Swift
> >
> >
> >

Wednesday, March 28, 2012

reportviewer control Error, Plz help

Hi All,
I am using reportviewer control to show some data on an asp.net page. It is working fine in the devolpment?Machine, but when I move the code over to our Production server I get a runtime error, the runtime error shows up on the webpage and simply says:

An error has occurred during report processing.
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.

That didn't help at all.
Any ideas?
Thanks a lot you guys have been very helpful.

SajjadNo reply yet :(|||

Hi,

Can you add a label to display the exception in detail. At lease you can get the code line where you get the error.

Perhaps the dev and the production reports may differ in parameters, etc.

Do you set the processing mode to remote?

|||Thanx for reply,

I used this code in Report web page...(no code in code behind file)

<%@. Page Language="VB" AutoEventWireup="false" CodeFile="Report_ArabicInvoice.aspx.vb" Inherits="Web_Pages_Reports_Report_ArabicInvoice" %
<%@. Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>?รบ??EXFP - Arabic Invoice</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table>
<tr>
<td style="width: 100px">
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
Height="800px" Width="800px" ShowDocumentMapButton="False" ShowFindControls="False" ShowPromptAreaButton="False" ShowRefreshButton="False">
<LocalReport ReportPath="~\..\Web_Pages\Reports\Report_ArabicInvoice.rdlc">
<DataSources>
<rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="ReportDataSet_Report_DT_ArabicInvoice" />
</DataSources>
</LocalReport>
</rsweb:ReportViewer>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetData"
TypeName="ReportDataSetTableAdapters.Report_DT_ArabicInvoiceTableAdapter" OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:SessionParameter Name="ord_ID" SessionField="Report_AI_OrdID" Type="Int32" />
</SelectParameters>
</asp:ObjectDataSource>
</td>
</tr>
</table>
</div>
</form>
</body>
</html|||note : ?Process mode is set to be "LOCAL"|||no reply yet ?:(

ReportViewer Control and German-Swiss date-format

Direct select on my Server gives the following three all working:
select * from tblvehicle
where dtmyearofpurchase = '2/1/1980 3:36:07 PM'
select * from tblvehicle
where dtmyearofpurchase = '02/01/1980 15:36:07'
select * from tblvehicle
where dtmyearofpurchase = '1980-02-01 15:36:07'
the only one NOT working ist the GERMAN-SWISS date-format!!!
select * from tblvehicle
where dtmyearofpurchase = '01.02.1980 15:36:07'
Unfortunately I receive this format automatically from Report-Server!!
----
Additional Info:
----
I've embedded a ReportViewer Control in a Winforms app.
I get the parameters via ReportViewer1.ServerReport.GetParameters
and show values to be chosen from in a checked listbox from
ValidValues(i).Value (chosen the values, NOT the labels!)
I run the Winform-App one time from an external us-en-Client and
one time from the same de-ch-Swiss Server
US-client: Query DOES work
- XP SP2
- all suggested automatic updates installed incl. newest ones from today
(19.06.06)
- VS2005 V. 2.0.50727
- all english Software
Language Config:
Windows XP and all running programs are us-english
First Language in Internet Explorer: en-us
Regional Options: english-us with
time: h:mm:ss tt, e.g. 11:12:36 AM
short date: M/d/yyyy , e.g. 6/19/2006
long date: dddd, MMMM dd, yyyy, e.g. Monday, June 19, 2006
Server (and at the same time Swiss-Client): Query DOES NOT work!!!
- Enterprise Server 2003R2
- all suggested automatic updates installed incl. newest ones from today
(19.06.06)
- SQL Server 2005, SP1, cumulative post SP1 hotfixes
- all english Software
Language Config:
Windows 2003R2 and all running programs are us-english
First Language in Internet Explorer: de-ch (=german switzerland)
Regional Options: german switzerland
time: HH:mm:ss, e.g. 11:18:54
short date: dd.MM.yyyy, e.g. 19.06.2006
long date: dddd, d. MMMM yyyy, e.g. Montag, 19. Juni 2006
Via SQL Server Profiler I retrieved the following data:
either requested by the ReportViewer1.ServerReport.GetParameters
or sent by the SetParameters
1. DOES work:
from ReportServer (enumeration) to external en-us client
retrieved values via GetParameters
following values from Profiler:
<Value>2/1/1980 3:36:07 PM</Value>
<Label>02/01/1980 15:36:07</Label>
Sent Query from winforms via SetParameters
also retrieved from Profiler:
@.Parameters=N'strTableName=tblVehicle&strColumnName=dtmYearOfPurchase&Suchschlussel=2/1/1980 3:36:07 PM'
2. This DOES NOT work
to self server de-ch (german switzerland)
retrieved values via GetParameters
<Value>01.02.1980 15:36:07</Value>
<Label>02/01/1980 15:36:07</Label>
Sent Query from winforms via SetParameters
@.Parameters=N'strTableName=tblVehicle&strColumnName=dtmYearOfPurchase&Suchschlussel=01.02.1980 15:36:07'
Apparently it seems all to be right...
in 1. it works = one datarow is sent back to the winform app
in 2. it doesnt work = the report is rendered but empty.Hello Henry,
In Report Layout View you can select the Properties window. You can set the
language for the report which determines formatting according to language
preferences.You can use some expression like User!Language to make the
language selection dynamic. You may test default language/US-English of
report to see differences
The locale of the parameter section is based on the browser
Accept-Language. The formatting of dates in the report is based on the
language specified in the RDL.
Note that you need to deploy the report to server to test since there is
some issue in design time reportviewer regarding this.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.|||Thanks Peter,
we are so involved in lots of other Reporting-Services areas, that we
couldn't resolve this issue yet, despite your valuable information.
I'll come back to this problem in the next four weeks.
Yours Henry
""privatenews"" wrote:
> Hello Henry,
> In Report Layout View you can select the Properties window. You can set the
> language for the report which determines formatting according to language
> preferences.You can use some expression like User!Language to make the
> language selection dynamic. You may test default language/US-English of
> report to see differences
> The locale of the parameter section is based on the browser
> Accept-Language. The formatting of dates in the report is based on the
> language specified in the RDL.
> Note that you need to deploy the report to server to test since there is
> some issue in design time reportviewer regarding this.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Partner Support
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>|||Hello Henry,
Thank you for taking time to write in about the status of the issue. I
understand that you have other priorities right now. If you need any
assistance from us, please feel free to post back.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.|||Dear Peter,
the problem was found to be:
(recap)
- Enduser works in localized Windows (e.g. Regional Settings Italian)
- Enduser may have different IE-Language Setting of e.g. us_english
- Enduser may like to work in our WinForm-Application (that includes a
ReportViewer-Control) in his German Language
So:
- we configure all text in our WinForm-App to be expressed in German
- we send an @.winform-language-Parameter to Reporting-Service
- we configure in the Report all the Body-Text, Dropdown-List content,
Column-Names etc. to be in German
- we do Selects to an underlying DB via Stored-Procedures that contain
Datetime-data-types in the Where-clause
- THE RESULT-SETS ARE EMPTY!!!
Problem:
- The explicit parameter for German will not work, since Dropdown Box
ValidValues are sent in the us_english-dateformat (mdy)
- the SQL-Server Server language is swiss-German (de-CH) with its inherent
dateformat of dmy
here's the solution:
- we define an internal Parameter @.language in the RDL
- we allow blank value
- NO available Values
- Default Value is a non-queried expression:
=Iif (user!Language.StartsWith("de"),"1",Iif
(user!Language.StartsWith("en"),"2",Iif
(user!Language.StartsWith("fr"),"3",Iif
(user!Language.StartsWith("it"),"4","2"))))
- we send this @.language Parameter to any Stored Procedure
- there we set the batch-level-language (means: in the SP):
if @.language = 1 set language German
if @.language = 2 set language English
if @.language = 3 set language French
if @.language = 4 set language Italian
Drawback:
- the user chose German for her WinForm-App
- she receives ALL text in German BUT us_english Dates in Dropdown Boxes
But finally the whole thing works.
Best Regards, Henry|||Hello Henry,
Thank you for taking time to write in about your detailed workaround to
solve this issue and this shall benefit the community!
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

ReportViewer and Click through links

I am creating a .Net application using the ReportViewer, which is working fine.
But when I have a report that has a link to another report, upon clicking
the link it takes the new report to full screen.
What I want to happen is for the new report stay in the ReportViewer.
Any ideas?
--
Regards
<<<Bryan Avery>>Ok I just did this and it was kind of a pain. Too me all day to work it out.
1. You need to use 'Jump to URL' instead of the other options.
2. Open Report Viewer project and add the following code:
Private _linktarget As String = "_self"
<Category("HTMLViewer Commands"), Description("Sets rc:linktarget to change
iFrame target")> _
Public Property LinkTarget() As String
Get
Return Me._linktarget
End Get
Set(ByVal Value As String)
Me._linktarget = Value
Me.SetParameter("rc:LinkTarget", Value)
End Set
End Property
3. Recompile and place dll in project bin.
Now the default is _self and you have the option to change the target from
your code.
This solution isn't ideal because you have to use the jump to url which
means more work in creating the url with params, and you may have to hard
code your servername.
--
Message posted via http://www.sqlmonster.com|||Hi Patrick,
Thanks for the quick response, but I'm a little lost to where I should be
entering line 2, could you give me any more pointers please?
--
Regards
<<<Bryan Avery>>
"Patrick P via SQLMonster.com" wrote:
> Ok I just did this and it was kind of a pain. Too me all day to work it out.
> 1. You need to use 'Jump to URL' instead of the other options.
> 2. Open Report Viewer project and add the following code:
> Private _linktarget As String = "_self"
> <Category("HTMLViewer Commands"), Description("Sets rc:linktarget to change
> iFrame target")> _
> Public Property LinkTarget() As String
> Get
> Return Me._linktarget
> End Get
> Set(ByVal Value As String)
> Me._linktarget = Value
> Me.SetParameter("rc:LinkTarget", Value)
> End Set
> End Property
> 3. Recompile and place dll in project bin.
> Now the default is _self and you have the option to change the target from
> your code.
> This solution isn't ideal because you have to use the jump to url which
> means more work in creating the url with params, and you may have to hard
> code your servername.
> --
> Message posted via http://www.sqlmonster.com
>|||No problem. There are a few changes I discovered since the last post, I'll
note them the end here.
You can find the reportviewer project here:
C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\Samples\
Applications\ReportViewer\vb
Open the project and open the ReportViewer.vb class file.
in the "Private Member Variables" region add:
Private _linktarget As String = "_self"
in the "Properties" region add the property in the above thread.
Now here is the addition to the above.
in the "Render" region add the following line to the Render sub:
output.WriteAttribute("name", "ifmReport")
You need this when you call the viewer property you created. Compile and
drop in your bin/GAC.
So now in your app you will add the following line:
rvwReport.LinkTarget = "ifmReport"
rvwReport being your declared instance of the object. In this bit of code:
Protected WithEvents rvwReport As
Microsoft.Samples.ReportingServices.ReportViewer
Now the good news is that I discovered that the "Jump to Report" option
works when I do this, which is great because the "Jump to URL" was a real
pain.
I'm assuming you are a VB and not a C# person.
Hope this helps... now I'm off to post more questions.
--
Message posted via http://www.sqlmonster.com|||Good news is that it is working :-)
Bad news is, it is only working in part.
What I mean is that you can display the first report, and a click to the
next report works okay, but on the third click to the third report it goes
back to full screen :-(
--
Regards
<<<Bryan Avery>>
"Patrick P via SQLMonster.com" wrote:
> No problem. There are a few changes I discovered since the last post, I'll
> note them the end here.
> You can find the reportviewer project here:
> C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\Samples\
> Applications\ReportViewer\vb
> Open the project and open the ReportViewer.vb class file.
> in the "Private Member Variables" region add:
> Private _linktarget As String = "_self"
> in the "Properties" region add the property in the above thread.
> Now here is the addition to the above.
> in the "Render" region add the following line to the Render sub:
> output.WriteAttribute("name", "ifmReport")
> You need this when you call the viewer property you created. Compile and
> drop in your bin/GAC.
> So now in your app you will add the following line:
> rvwReport.LinkTarget = "ifmReport"
> rvwReport being your declared instance of the object. In this bit of code:
> Protected WithEvents rvwReport As
> Microsoft.Samples.ReportingServices.ReportViewer
> Now the good news is that I discovered that the "Jump to Report" option
> works when I do this, which is great because the "Jump to URL" was a real
> pain.
> I'm assuming you are a VB and not a C# person.
> Hope this helps... now I'm off to post more questions.
> --
> Message posted via http://www.sqlmonster.com
>|||I know, I'm trying to work that out now. So annoying, thought I had it solved.
Seems that when the report goes back to the server it "forgets" the target
and goes back to "_top". :-\ There has to be a config setting on the server
that we can change. So can anyone out there find it?
--
Message posted via http://www.sqlmonster.com|||Thanks for all your effort.
I was wondering if you know how we can control the tool bar that is within
the ReportViewer so we can have external controls controlling the Zoom,
Export, etc.
Is this something you've come across and is it easy to do?
--
Regards
<<<Bryan Avery>>
"Patrick P via SQLMonster.com" wrote:
> I know, I'm trying to work that out now. So annoying, thought I had it solved.
> Seems that when the report goes back to the server it "forgets" the target
> and goes back to "_top". :-\ There has to be a config setting on the server
> that we can change. So can anyone out there find it?
> --
> Message posted via http://www.sqlmonster.com
>

Monday, March 26, 2012

ReportViewer 2005

Does anybody know how to get Reportviewer 2005 working on .Net 2003 web application?

Not sure what your exact question is, but a good resource to start with is here: http://www.gotreportviewer.com/.

-Carolyn [MSFT]

|||

I can't add ReportViewer 2005 (Microsoft.ReportViewer.WebForms.dll) to an asp.net v1 application. ASP.net V1 doesn't recognise Microsoft.ReportViewer.WebForms.dll as a valid dll. ReportViewer from VS 2005 doesn't work with VS 2000 web applications.

|||Thanks you very much, Carolyn, you've been very helpful and I have solved my problem.

ReportViewer 2005

I'm working with vs.net 2005 and SRS 2005. I setup a custom security
extension and I connect using a proxy class via "LogonUser" to a custom
asp.net web application. When I set some parameters and pass them to the
reportviewer I get the following error:
{"The parameter '{0}' cannot be an empty string. Parameter name:
cookie.Domain"}
I tryed a few different things but nothing works... Has anyone else ran into
this problem?
Nuno PereiraI was passing an incomplete cookie to ReportServerCredentials. I change how i
retrieve the cookie to use the Utilities class provided by the extension
sample. Now, I'm stuck on something else. Everything seems to get accepted
except i get an
"Object moved" page.
This is how i retrieve my cookie:
Dim netCookie As System.Net.Cookie =Utilities.TranslateCookie(HttpContext.Current.Request.Cookies(Utilities.CustomAuthCookieName))
ReportViewer1.ProcessingMode = ProcessingMode.Remote
ReportViewer1.ServerReport.ReportServerCredentials = New
CustomCredentials(netCookie, "admin", "password", "domainName")
ReportViewer1.ServerReport.ReportServerUrl = New
Uri(ConfigurationManager.AppSettings("ReportServerUrl"))
ReportViewer1.ServerReport.ReportPath = Session("ReportPath")
SetReportParams() 'Custom method that sets params
__________________________________________________________
When I use this code I the reportserver spits out the following:
The request failed with the error message:
--
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a
href='/ReportServer/logon.aspx?ReturnUrl=%2fReportServer%2fReportExecution2005.asmx'>here</a>.</h2>
</body></html>
--.
Nuno Pereira
"Nuno" wrote:
> I'm working with vs.net 2005 and SRS 2005. I setup a custom security
> extension and I connect using a proxy class via "LogonUser" to a custom
> asp.net web application. When I set some parameters and pass them to the
> reportviewer I get the following error:
> {"The parameter '{0}' cannot be an empty string. Parameter name:
> cookie.Domain"}
> I tryed a few different things but nothing works... Has anyone else ran into
> this problem?
> Nuno Pereirasql

Reportviewer - more security help needed

Hi - I have the reportviewer component working fine in our intranet
enviroment, but am looking to move it over to an internet enviroment
in a few weeks, and have a few questions about this.
At the moment I embed the reportviewer control in the .aspx pages
(which have forms authentication security), and set the properties as
follows:
ReportPath="/ReportCreationTest/Comparison&amp;rs:Command=Render"
ServerUrl="http://myserver/Reportserver/"
1) Is it possible to use the "normal" version of reporting services in
an internet enviroment, or am I going to have to upgrade to enterprise
edition and write a custom security extension?
2) How do I stop someone connecting straight to
"www.myserver.com/Reportserver/" and accessing the reports directly?
The fact that I have the reportviewer control embedded in the .aspx
pages means that I have to allow anonymous access to the reports from
IIS (doesn't it?). So how can I also stop people accessing the reports
directly? It would seem to me that this is why I need the custom
seecurity extension.
In an ideal scenario, I need to prevent people from simply running the
reports, but allow users who have access to the .aspx pages to run the
reports through reportviewer.
Thanks for any help :)
JamesTeo Lachev's answer to my question "RS from VBScript/ASP web-app", 16.nov
2004 may be relevant.
His book it is great, by the way! Other books I have read waste too much
time on designing the reports.
"jamesb" <jxb@.ovum.com> skrev i melding
news:ca7a83be.0411230551.2cfa83d7@.posting.google.com...
> Hi - I have the reportviewer component working fine in our intranet
> enviroment, but am looking to move it over to an internet enviroment
> in a few weeks, and have a few questions about this.
> At the moment I embed the reportviewer control in the .aspx pages
> (which have forms authentication security), and set the properties as
> follows:
> ReportPath="/ReportCreationTest/Comparison&amp;rs:Command=Render"
> ServerUrl="http://myserver/Reportserver/"
> 1) Is it possible to use the "normal" version of reporting services in
> an internet enviroment, or am I going to have to upgrade to enterprise
> edition and write a custom security extension?
> 2) How do I stop someone connecting straight to
> "www.myserver.com/Reportserver/" and accessing the reports directly?
> The fact that I have the reportviewer control embedded in the .aspx
> pages means that I have to allow anonymous access to the reports from
> IIS (doesn't it?). So how can I also stop people accessing the reports
> directly? It would seem to me that this is why I need the custom
> seecurity extension.
> In an ideal scenario, I need to prevent people from simply running the
> reports, but allow users who have access to the .aspx pages to run the
> reports through reportviewer.
> Thanks for any help :)
> James|||Leif,
Thanks for the kudos. I'd appreciate if you could let me know what could be
improved in my book if I ever decide to write a new edition. I welcome
feedback from everybody. You can use my blog to provide feedback
http://prologika.com/blog/archive/2004/11/21/185.aspx
To address James' question:
1) Depends on your security requirements and whether you need interactive
features.
If you need report interactivity (drilldown, document maps, report toolbar)
you have to use URL addressability which means that your internet user will
have direct access to the Report Server.
If you don't care about the identity of the user (no need for the Report
Server to tell the users apart) you can use Anonymous and the Standard
edition of RS. Apart of not being able to discriminate the users, the
disadvantage of this approach is that you have to bring the RS offline to
manage the report catalog since you don't want to grant admin rights to the
Anonymous account.
If you need to differentiate the users, you have to use Forms
Authentication. This will require the Enterprise edition.
Finally, if you don't care about report interactive features, you can
generate the reports on the server-side of your application using SOAP.
As a side note, it looks like the new RS 2005 controls will support report
interactivity with SOAP. For example, the expand event will raised in the
control which can in turn call down to the RS server.
2) By using Forms Authentication (custom security extension) or generating
the reports on the server side of the application. In the later case, your
RS box could be on your private LAN (not accessible from Internet).
Hope this helps.
---
Teo Lachev, MVP [SQL Server], MCSD, MCT
Author: "Microsoft Reporting Services in Action"
Publisher website: http://www.manning.com/lachev
Buy it from Amazon.com: http://shrinkster.com/eq
Home page and blog: http://www.prologika.com/
---
"Leif" <leif.audun.hagen@.officeteam.no> wrote in message
news:OhnwPtW0EHA.1308@.TK2MSFTNGP09.phx.gbl...
> Teo Lachev's answer to my question "RS from VBScript/ASP web-app", 16.nov
> 2004 may be relevant.
> His book it is great, by the way! Other books I have read waste too much
> time on designing the reports.
> "jamesb" <jxb@.ovum.com> skrev i melding
> news:ca7a83be.0411230551.2cfa83d7@.posting.google.com...
> > Hi - I have the reportviewer component working fine in our intranet
> > enviroment, but am looking to move it over to an internet enviroment
> > in a few weeks, and have a few questions about this.
> >
> > At the moment I embed the reportviewer control in the .aspx pages
> > (which have forms authentication security), and set the properties as
> > follows:
> >
> > ReportPath="/ReportCreationTest/Comparison&amp;rs:Command=Render"
> >
> > ServerUrl="http://myserver/Reportserver/"
> >
> > 1) Is it possible to use the "normal" version of reporting services in
> > an internet enviroment, or am I going to have to upgrade to enterprise
> > edition and write a custom security extension?
> >
> > 2) How do I stop someone connecting straight to
> > "www.myserver.com/Reportserver/" and accessing the reports directly?
> >
> > The fact that I have the reportviewer control embedded in the .aspx
> > pages means that I have to allow anonymous access to the reports from
> > IIS (doesn't it?). So how can I also stop people accessing the reports
> > directly? It would seem to me that this is why I need the custom
> > seecurity extension.
> >
> > In an ideal scenario, I need to prevent people from simply running the
> > reports, but allow users who have access to the .aspx pages to run the
> > reports through reportviewer.
> >
> > Thanks for any help :)
> >
> > James
>

ReportViewer

Hi friends,

I am working on a web-site, where I want to present a strategyplan that are stored in a database. I have created the online ASPX page, but now I want to create a "Print me." button. I want to controll the pageshifts and so on, so I have planned to use ReportViewer.

Basically the report should consists of 6 pages:

1) Frontpage, telling that it is "STRATEGYPLAN FOR COMPANY X, FOR PERIOD XXXX TO XXXX"
2) Page 2: Vision, Mission and other explanations.
3) Page 3: Informations about what to do with the market.
4) Page 4: Informations about what to do with the business processes.
5) Page 5: Informations about what to do with the Employees.
6) Page 6: Informations about what to do with the Finances.

Is that possible to do in reportviewer?

I would like to learn, so if someone could tell me how to do it with static texts (and no databaselookups), then that would be a great step.

I am totally new to ASP.NET, so I hope this is the right forum.

I think you're going to have to break you query up over several forums. But if you want, you can create 6 queries. One for each "page". Use a List control on your form and assign each list a datasource. For each list, select the 'Insert Page Break at end of list'.

Friday, March 23, 2012

reportservertempdb

We are working on creating a copy of our SQL server machine for disaster
recovery purposes. ReportServerTempDB is purely a temp database, correct?
Meaning, the data in it does not need to be replicated from our production
server to our disaster recovery server, correct?
Could someone just verify this for me.
Thanks.Yes, you don't need to replicated your ReportServerTempDB
According to BOL "Backup and Restore Operations for a Reporting Services
Installation"
The only reason to backup the reportservertempdb is to avoid having to
recreate it if there is a hardware failure.
Med bouchenafa
"Jeff" <Jeff@.discussions.microsoft.com> a écrit dans le message de news:
C440E7E5-D027-4C98-9A8B-EA0C8C2B245B@.microsoft.com...
> We are working on creating a copy of our SQL server machine for disaster
> recovery purposes. ReportServerTempDB is purely a temp database, correct?
> Meaning, the data in it does not need to be replicated from our production
> server to our disaster recovery server, correct?
> Could someone just verify this for me.
> Thanks.|||Depends... are you talking disaster recovery... in which you would
re-establish services from a repository of stored data? ...or... are you
looking for fault tollerance where a more real-time fail over takes place
imediately after the falure due to disaster?
"Jeff" wrote:
> We are working on creating a copy of our SQL server machine for disaster
> recovery purposes. ReportServerTempDB is purely a temp database, correct?
> Meaning, the data in it does not need to be replicated from our production
> server to our disaster recovery server, correct?
> Could someone just verify this for me.
> Thanks.|||Ken,
We're looking a the former. We have an offsite repository of data, which we
would use to re-establish services in the event of a fire or something like
that. This isn't for real time failover.
"Ken Carter" wrote:
> Depends... are you talking disaster recovery... in which you would
> re-establish services from a repository of stored data? ...or... are you
> looking for fault tollerance where a more real-time fail over takes place
> imediately after the falure due to disaster?
> "Jeff" wrote:
> > We are working on creating a copy of our SQL server machine for disaster
> > recovery purposes. ReportServerTempDB is purely a temp database, correct?
> > Meaning, the data in it does not need to be replicated from our production
> > server to our disaster recovery server, correct?
> >
> > Could someone just verify this for me.
> >
> > Thanks.

Tuesday, March 20, 2012

Reports Services will not work with SharePoint 2003 and SQL Server 2005

We have installed SharePoint Portal Server 2003 (it is working correctly) and SQL Server 2005 (it is working correctly) on a single virtual machine.

If I enter "http://ComputerName/reports" to display the Report Manager we get the following error:

(yes, I did put in our computer name in the appropriate location)

Parser Error Message: An error occured loading a configuration file: Access to the path 'c:\inetpub\www\root\web.config' is denied.

Is this a permissions issue, a configuration issue, or something else?

Any suggestions for resolving this would be appreciated.

We have found the cause for this. It was a corrupted installation.

Reports Services will not work with SharePoint 2003 and SQL Server 2005

We have installed SharePoint Portal Server 2003 (it is working correctly) and SQL Server 2005 (it is working correctly) on a single virtual machine.

If I enter "http://ComputerName/reports" to display the Report Manager we get the following error:

(yes, I did put in our computer name in the appropriate location)

Parser Error Message: An error occured loading a configuration file: Access to the path 'c:\inetpub\www\root\web.config' is denied.

Is this a permissions issue, a configuration issue, or something else?

Any suggestions for resolving this would be appreciated.

We have found the cause for this. It was a corrupted installation.

Reports not working on server

Hello all!
I have been developing my asp.net application in c#, on my local machine. I have started working with the "reportViewer " and it works fine on my machine, but as soon as i upload it onto our server, which is windows 2000 server, IIS 5.0, it won't work.

i get the following error, MASTER1 is the name of the server.

Hope someone can help me. I presume it is an IIS thing. other non-report aspx pages are accessed fine.

Any ideas where i should be looking?

Thanks,
Munira

"An error has occurred during report processing.

Exception has been thrown by the target of an invocation.

Login failed for user 'MASTER1\ASPNET'."

well i have the same problem on w2003 & IIS 6,any idea?

Reports in Web Application

I am working on an intranet web application and there are some reports required, I never done reports before and I don't know how to display in web page, am I supposed to retreive the data from the database and dump it for example through label controls on a web page or is there is something else more professional?
Thanks in advance.Typically it is best to use an iframe. You could use the report viewer object provided by microsoft but you may need to do some customization.|||

Do you mean that I put the report viewer in an iframe?

I found a CrystalReportViewer control in the toolbox, is that what you're talking about?

|||

SQL Reporting services has a web interface. Take the URL for your report and place it in an iframe (the src) within your application. You will need to look up the syntax for passing parameters to your report.

The ReportViewer component just wraps this functionality for you to make it easier to pass parameters programmatically in an OO manner. If you are going to be doing many reports and want them to be easily maintained I'd use ReportViewer. Which by the way comes with reporting services, check the Samples folder.
There are tutorials on the web, search google-http://www.odetocode.com/Articles/128.aspx for example.

|||no, just put an html iframe on your page and view the report via that. Don't use the crystal report viewer
|||

One more question please, which is easier to use for someone who never used any reporting tool before, Crystal Reports or SQL Server Reporting Services. All I need is 2 reports but they are not simple ones, which one I can have a quick start in it and easily learn?

Thanks.

|||Easier will be a matter of opinion. However reporting services mighthave tighter integration and less of a learning curve that Crystal.
|||if you've used access reports before, i'd say go with reportingservices. If you have an oracle data source tho, i'd suggest looking atalternatives because RS can be a bit of a nightmare working with SQL.I'd say tho that RS would probably be easier to just start workingwith, however the online tutorials etc that are around can be a bitlimited in terms of covering advanced topics. Also get used to usingIIF() statements.
|||Crystal is big money, if you have SQL 2K, reporting services is free. With both you are going to have to sit down and learn how they work, especially if your reports are complex. Crystal is feature rich while with RS you have to do a lot of custom coding to get things done on complex reports.|||Thanks for the help.

Monday, March 12, 2012

Reports Home Page

I can only get to my Reports from http://localhost/reportserver, the
http://localhost/reports is not working, it is only showing me part of the
page. What can I do to fix this? I am only seeing the top tool bar and the
part that says; home - my subscriptions - help
Any ideas of how to troubleshoot?your iis anonymous user (IUser_...) have not popedom to manager report
server..
set administrator to default logon of report folder in iis first. then
go to http://localhost/report.
set role of reportserver.
you could find the way to manager reportserver security in msdn/technet
"Ryan McBee" <RyanMcBee@.discussions.microsoft.com> дÈëÏûÏ¢ÐÂÎÅ:459870C8-3280-4D73-BEC3-82EEDE40AB61@.microsoft.com...
>I can only get to my Reports from http://localhost/reportserver, the
> http://localhost/reports is not working, it is only showing me part of the
> page. What can I do to fix this? I am only seeing the top tool bar and
> the
> part that says; home - my subscriptions - help
> Any ideas of how to troubleshoot?
>|||I got the problem fixed. In IIS, went to virtual directory for "Reports" and
pointed it to Reports, it was pointed to "ReportServer".
RM
"renhanyue" wrote:
> your iis anonymous user (IUser_...) have not popedom to manager report
> server..
> set administrator to default logon of report folder in iis first. then
> go to http://localhost/report.
> set role of reportserver.
> you could find the way to manager reportserver security in msdn/technet
>
> "Ryan McBee" <RyanMcBee@.discussions.microsoft.com> �´�ë�û�¢����:459870C8-3280-4D73-BEC3-82EEDE40AB61@.microsoft.com...
> >I can only get to my Reports from http://localhost/reportserver, the
> > http://localhost/reports is not working, it is only showing me part of the
> > page. What can I do to fix this? I am only seeing the top tool bar and
> > the
> > part that says; home - my subscriptions - help
> >
> > Any ideas of how to troubleshoot?
> >
>
>

Reports Dynamically Generated

Hello,
I'm sure there is a simple solution for this, but I'm very new to Reporting Services. I'm working with the Yukon product, and I am creating reports that will compare import data against the database. What I want to be able to do is have a Yukon package import the data, then generate a report, using reporting services through code. Is that possible? It could even be a remote executable that Yukon would have access to...
Thanks.It is possible in SQL Server 2005 but you have to do the setup in Integration Services. Try this link for options.
Hope this helps.
http://www.sqlis.com/

Friday, March 9, 2012

ReportOnNewPage not working as expected.

I have a simple reporting services 2005 report with just a body section which
contains a table control with the following rows
table header (RepeatOnNewPage = false)
group header (RepeatOnNewPage = true)
detail
group footer (RepeatOnNewPage = false)
table footer (RepeatOnNewPage = false)
The header & footer sections just have some text in them to describe what
they are i.e. table header has text "Table Header", group header has "Group
Header" etc.
The detail section shows 3 fields quote number, line & notes.
When I preview the report (from Visual Studio in Print Layout mode or from
report managed & export the report to pdf) and there is so much data in the
notes field for a specific line that is causes a page break within the detail
section, no group header is shown on the next page. The group header is
correctly displayed on any subsequent pages.
It only seems to be a problem when the data within the detail section causes
a page break, if a "natural" page break occurs at the end of a detail, it
correctly shows the group header on the next page.
I really need a solution/workaround for this asap as this is a simplified
version of a customers quote report - we are upgrading their Microsoft CRM
system over the weekend from 1.2 (which used Crystal Reports) to CRM 3 (which
uses SRS) and this report is vital to their operation.
Thanks in advance for any advice
Regards
AndyThink I should have entitled the posting "RepeatOnNewPage"!!
"AndyG" wrote:
> I have a simple reporting services 2005 report with just a body section which
> contains a table control with the following rows
> table header (RepeatOnNewPage = false)
> group header (RepeatOnNewPage = true)
> detail
> group footer (RepeatOnNewPage = false)
> table footer (RepeatOnNewPage = false)
>
> The header & footer sections just have some text in them to describe what
> they are i.e. table header has text "Table Header", group header has "Group
> Header" etc.
> The detail section shows 3 fields quote number, line & notes.
> When I preview the report (from Visual Studio in Print Layout mode or from
> report managed & export the report to pdf) and there is so much data in the
> notes field for a specific line that is causes a page break within the detail
> section, no group header is shown on the next page. The group header is
> correctly displayed on any subsequent pages.
> It only seems to be a problem when the data within the detail section causes
> a page break, if a "natural" page break occurs at the end of a detail, it
> correctly shows the group header on the next page.
> I really need a solution/workaround for this asap as this is a simplified
> version of a customers quote report - we are upgrading their Microsoft CRM
> system over the weekend from 1.2 (which used Crystal Reports) to CRM 3 (which
> uses SRS) and this report is vital to their operation.
> Thanks in advance for any advice
> Regards
> Andy
>

ReportManager and domain name change

Hi,
The fully qualified domain name of the reporting services server has changed
and that caused the Report Manager to stop working. Iâ'm using SQL 2000
Reporting Services on Windows Server 2003 .
I tracked the issue down to /Reports/Pages/Report.aspx page where that page
calls the actual report in a IFRAME and the IFRAME is calling the report with
the old domain name.
I found a configuration setting <UrlRoot> in the C:\Program Files\Microsoft
SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config config
file that used the old domain name. However, even changing that property to a
new domain name had no effect (tired touching web.configs, bouncing the
website).
Any suggestions greatly appreciated.
Thanks,
AlexFrom an issue I had with something similar on my CRM system here are some
notes passed on to me that I think might help you. I was changing mine from
a fullqualified domain name to a domain.local name but these would still
apply for you as well:
These instructions assume you are using SQL 2000 SP4.
First, on the server where SRS is installed, open the two files
rswebapplication.config at C:\Program Files\Microsoft SQL
Server\MSSQL\Reporting Services\ReportManager and rsreportserver.config at
C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer
with notepad and search for https://fqdn.yourdomain.com. Once you find this
replace it with https://YourNetBiosServerName.domain.local and save and
close the files.
On the same server, open the registry and modify the following registry
values at HKLM | SOFTWARE | Microsoft | Microsoft SQL Server | 80 |
Reporting Services to replace https://fqdn.yourdomain.com/ReportServer with
https://YourNetBiosServerName.domain.local/ReportServer.
RSVirtualDir - should be
https://YourNetBiosServerName.domain.local/ReportServer
WAVirtualDir - should be https://YourNetBiosServerName.domain.local/Reports
Gary
"alex" <alex@.discussions.microsoft.com> wrote in message
news:2E0195F3-5F67-4196-A119-9CDFC08656DA@.microsoft.com...
> Hi,
> The fully qualified domain name of the reporting services server has
> changed
> and that caused the Report Manager to stop working. I'm using SQL 2000
> Reporting Services on Windows Server 2003 .
> I tracked the issue down to /Reports/Pages/Report.aspx page where that
> page
> calls the actual report in a IFRAME and the IFRAME is calling the report
> with
> the old domain name.
> I found a configuration setting <UrlRoot> in the C:\Program
> Files\Microsoft
> SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config
> config
> file that used the old domain name. However, even changing that property
> to a
> new domain name had no effect (tired touching web.configs, bouncing the
> website).
> Any suggestions greatly appreciated.
> Thanks,
> Alex
>

Wednesday, March 7, 2012

ReportingWeekToMonthPattern possible values

Hi, I'm working with a server Time dimension which one of it's many purposes is to provide sales analysis by Reporting week. I'm using the property ReportingWeekToMonthPattern to divide the months in weeks but none of the default values is good to me {4-4-5 | 4-5-4 | 544}. According to the business rules, the pattern is not that regular and instead, I need this exact pattern that includes the 12 months of the year:

4-4-5-4-4-5-4-5-4-4-5-4

That is, the first half of the year with a 4-4-5 pattern, and the second half with a 4-5-4 pattern. Is this possible to set in the dimension?

Thanks in advance,

RAH

I don't think you can do this using a server time dimension. You would probably need to create a dimension table and build your time dimension off it. That way you can do pretty much anything you like.

Saturday, February 25, 2012

Reporting Svcs not working after renaming the server - help!

Hi,
we had to rename our server running SQL server and reporting services
(including IIS), and now the reporting services don't work anymore.
I guess the easiest way would probably be uninstalling the reporting
services and then re-installing them again, but I wanted to ask if there
was another way...
Thanks!
JensWhat errors are you getting? Can you navigate to
http://localhost/reportserver? You may just need to run rsconfig.exe to
reset the connection string but I need to know the errors first.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jens Weiermann" <wexman@.wexman.com> wrote in message
news:u8DGsWtcEHA.2352@.TK2MSFTNGP09.phx.gbl...
> Hi,
> we had to rename our server running SQL server and reporting services
> (including IIS), and now the reporting services don't work anymore.
> I guess the easiest way would probably be uninstalling the reporting
> services and then re-installing them again, but I wanted to ask if there
> was another way...
> Thanks!
> Jens|||Daniel Reib [MSFT] wrote:
> What errors are you getting? Can you navigate to
> http://localhost/reportserver? You may just need to run rsconfig.exe to
> reset the connection string but I need to know the errors first.
Hi Daniel,
thanks for your answer - but I'm afraid it is too late now <g> as we've
already uninstalled the reporting services and re-installed them again.
However, now I got a different problem: While reports are working in
general, subscriptions are *not*.
When I try to make a new abonnement, I'm receiving an internal error
"@.owner_login_name was specified and is invalid" (sorry, translation from
German version, might not be the exact wording).
Any suggestions?
Regards,
Jens|||There are two ways to fix this problem. Install the following SQL fix:
http://support.microsoft.com/default.aspx?scid=kb;en-us;821334
Or use RSconfig to have RS talk to it's catalog using sql auth.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jens Weiermann" <spamgoeshere@.solidsoftware.de> wrote in message
news:OmlQkw8cEHA.4092@.TK2MSFTNGP10.phx.gbl...
> Daniel Reib [MSFT] wrote:
> > What errors are you getting? Can you navigate to
> > http://localhost/reportserver? You may just need to run rsconfig.exe to
> > reset the connection string but I need to know the errors first.
> Hi Daniel,
> thanks for your answer - but I'm afraid it is too late now <g> as we've
> already uninstalled the reporting services and re-installed them again.
> However, now I got a different problem: While reports are working in
> general, subscriptions are *not*.
> When I try to make a new abonnement, I'm receiving an internal error
> "@.owner_login_name was specified and is invalid" (sorry, translation from
> German version, might not be the exact wording).
> Any suggestions?
> Regards,
> Jens