Showing posts with label extension. Show all posts
Showing posts with label extension. Show all posts

Tuesday, March 27, 2012

Forms Security Extension Sample

Hi,

I have installed the SSRS 2005 Forms based login security extension as per the sample and instructions that come with the product install. I have double checked my work and debugged up to the point explained here.

My user is in the database and I can get to the login page. I have traced the code and can see the user being authenticated properly by server.LogonUser, the authentication cookie being created and placed in the response object, and then the redirect url being set to the reports/pages/folder.aspx. I have employed tcptrace and can see the sqlAuthCookie set in subsequent posts.

Unfortunately the redirect to folder.aspx never happens. I keep returning to UILogon.aspx. I think their is something either wrong with the auth cookie or the web.config in the ReportServer IIS virtual directory. The relevant xml from the web.config is attached below.

I would appreciate any thoughts. I am running on W2K3 SP1. Thanks.

Mitch

<identity impersonate="false" />

<!--<authentication mode="Windows" />-->

<authentication mode="Forms">

<forms loginUrl="logon.aspx" name="sqlAuthCookie" timeout="60" path="/"></forms>

</authentication>

<authorization>

<deny users="?" />

</authorization>

Mitch, are you initially navigating to SSRS by using http://localhost or http://someMachineName?

If you hit your site with http://localhost/reports, you'll see the behavior you're mentioning above: (It's basically a side-effect of the way the code inside the Forms Auth sample is written). Try http://someMachineName/reports instead and see if you have better luck.

|||Thanks, that was it. Now I can proceed with integrating SSRS with IBM Tivoli Access manager!

Forms security extension

I have checked and rechecked I have read the posts many times, but I still
can't get it to work quite right.
After configuring the security extension I can successfully register a user
(admin).
I can deploy a report via the .NET IDE. I am prompted for the user name.
The report is deployed and can be run inside the IDE.
When I try to log on to ReportManager via http://Machinename/Reports
I correctly get the UILogin.aspx page. I have debugged this process many
times. It
checks the user name and password. It creates a cookie. I get to the line
HttpContext.Current.Response.Redirect(redirectUrl, false); It really seems
like it should redirect to Folder.aspx but instead it returns to UILogin.aspx
.
I am using the developer edition with SR1
I have removed the cr/lf from all configuration lines
I never user localhost I am always using Machine name.
Any help would be appreciatedhmm...In RSWebApplication.config, you have the machine name in the
<ReportServerUrl> element? [ http://MachineName/ReportServer ]
Also, double-check the web config files for ReportManager.
--
Adrian M.
MCP
"mz" <mz@.discussions.microsoft.com> wrote in message
news:59AD917B-B95B-4442-9C5F-38C7CF178B09@.microsoft.com...
>I have checked and rechecked I have read the posts many times, but I still
> can't get it to work quite right.
> After configuring the security extension I can successfully register a
> user
> (admin).
> I can deploy a report via the .NET IDE. I am prompted for the user name.
> The report is deployed and can be run inside the IDE.
> When I try to log on to ReportManager via http://Machinename/Reports
> I correctly get the UILogin.aspx page. I have debugged this process many
> times. It
> checks the user name and password. It creates a cookie. I get to the
> line
> HttpContext.Current.Response.Redirect(redirectUrl, false); It really seems
> like it should redirect to Folder.aspx but instead it returns to
> UILogin.aspx
> .
> I am using the developer edition with SR1
> I have removed the cr/lf from all configuration lines
> I never user localhost I am always using Machine name.
> Any help would be appreciated|||Hi Adrian,
I recognize you from previous posts. Thanks for responding.
Yes, RSWebApplication.config is
<ReportServerUrl>http://MARKZ_2K/ReportServer</ReportServerUrl>
> Also, double-check the web config files for ReportManager.
Are you refering to C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
Services\ReportManagerWeb.Config?
I believe the only thing to do in that file is to set
<identity impersonate="false"/> which I have done/
"Adrian M." wrote:
> hmm...In RSWebApplication.config, you have the machine name in the
> <ReportServerUrl> element? [ http://MachineName/ReportServer ]
> Also, double-check the web config files for ReportManager.
> --
> Adrian M.
> MCP
>
> "mz" <mz@.discussions.microsoft.com> wrote in message
> news:59AD917B-B95B-4442-9C5F-38C7CF178B09@.microsoft.com...
> >I have checked and rechecked I have read the posts many times, but I still
> > can't get it to work quite right.
> >
> > After configuring the security extension I can successfully register a
> > user
> > (admin).
> > I can deploy a report via the .NET IDE. I am prompted for the user name.
> > The report is deployed and can be run inside the IDE.
> >
> > When I try to log on to ReportManager via http://Machinename/Reports
> > I correctly get the UILogin.aspx page. I have debugged this process many
> > times. It
> > checks the user name and password. It creates a cookie. I get to the
> > line
> > HttpContext.Current.Response.Redirect(redirectUrl, false); It really seems
> > like it should redirect to Folder.aspx but instead it returns to
> > UILogin.aspx
> > .
> >
> > I am using the developer edition with SR1
> > I have removed the cr/lf from all configuration lines
> > I never user localhost I am always using Machine name.
> >
> > Any help would be appreciated
>
>|||ok...can you navigate to http://MARKZ_2K/ReportServer without problems?
Also, double-check the instructions for the changes to the ReportServer
config files.
To simplify the log in process, just hard code a user name/password in your
security extension; compile; deploy it to the correct \bin folders
(ReportManager, ReportServer); restart RS/IIS. Can you log into Report
Manger now?
Although it's overly complicated, I know setting up the security extension
is possible (I've done it on several occasions)...so there must be some
small typo or something you overlooked when following the white paper.
That's what happened to me. I had to review the steps in the white paper 3
times before I got it to work the first time.
I hope adding security extensions is easier in the future
[mswish@.microsoft.com]
--
Adrian M.
MCP
"mz" <mz@.discussions.microsoft.com> wrote in message
news:5B3DDA88-4DB6-475A-97C2-84B5193C8BF5@.microsoft.com...
> Hi Adrian,
> I recognize you from previous posts. Thanks for responding.
> Yes, RSWebApplication.config is
> <ReportServerUrl>http://MARKZ_2K/ReportServer</ReportServerUrl>
>> Also, double-check the web config files for ReportManager.
> Are you refering to C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
> Services\ReportManagerWeb.Config?
> I believe the only thing to do in that file is to set
> <identity impersonate="false"/> which I have done/
> "Adrian M." wrote:
>> hmm...In RSWebApplication.config, you have the machine name in the
>> <ReportServerUrl> element? [ http://MachineName/ReportServer ]
>> Also, double-check the web config files for ReportManager.
>> --
>> Adrian M.
>> MCP
>>
>> "mz" <mz@.discussions.microsoft.com> wrote in message
>> news:59AD917B-B95B-4442-9C5F-38C7CF178B09@.microsoft.com...
>> >I have checked and rechecked I have read the posts many times, but I
>> >still
>> > can't get it to work quite right.
>> >
>> > After configuring the security extension I can successfully register a
>> > user
>> > (admin).
>> > I can deploy a report via the .NET IDE. I am prompted for the user
>> > name.
>> > The report is deployed and can be run inside the IDE.
>> >
>> > When I try to log on to ReportManager via http://Machinename/Reports
>> > I correctly get the UILogin.aspx page. I have debugged this process
>> > many
>> > times. It
>> > checks the user name and password. It creates a cookie. I get to the
>> > line
>> > HttpContext.Current.Response.Redirect(redirectUrl, false); It really
>> > seems
>> > like it should redirect to Folder.aspx but instead it returns to
>> > UILogin.aspx
>> > .
>> >
>> > I am using the developer edition with SR1
>> > I have removed the cr/lf from all configuration lines
>> > I never user localhost I am always using Machine name.
>> >
>> > Any help would be appreciated
>>|||Hey Adrian I figured it out.
The problem is that my machinename has an "_" (underscore) in it.
If I use the IP address instead of machinename everything works fine.
people on the group below all seem to know that cookies won't work if the
machinename has an underscore in it.
My enthusiasm for this technology is mighty low at this point.
http://groups-beta.google.com/group/microsoft.public.inetserver.asp.general/browse_thread/thread/ab47f022e98d3e5/a74711bb0225b84c?q=cookie+iis+localhost+vbscript&rnum=2#a74711bb0225b84c
"Adrian M." wrote:
> ok...can you navigate to http://MARKZ_2K/ReportServer without problems?
> Also, double-check the instructions for the changes to the ReportServer
> config files.
> To simplify the log in process, just hard code a user name/password in your
> security extension; compile; deploy it to the correct \bin folders
> (ReportManager, ReportServer); restart RS/IIS. Can you log into Report
> Manger now?
> Although it's overly complicated, I know setting up the security extension
> is possible (I've done it on several occasions)...so there must be some
> small typo or something you overlooked when following the white paper.
> That's what happened to me. I had to review the steps in the white paper 3
> times before I got it to work the first time.
> I hope adding security extensions is easier in the future
> [mswish@.microsoft.com]
> --
> Adrian M.
> MCP
>
> "mz" <mz@.discussions.microsoft.com> wrote in message
> news:5B3DDA88-4DB6-475A-97C2-84B5193C8BF5@.microsoft.com...
> > Hi Adrian,
> > I recognize you from previous posts. Thanks for responding.
> > Yes, RSWebApplication.config is
> > <ReportServerUrl>http://MARKZ_2K/ReportServer</ReportServerUrl>
> >
> >> Also, double-check the web config files for ReportManager.
> > Are you refering to C:\Program Files\Microsoft SQL Server\MSSQL\Reporting
> > Services\ReportManagerWeb.Config?
> > I believe the only thing to do in that file is to set
> > <identity impersonate="false"/> which I have done/
> >
> > "Adrian M." wrote:
> >
> >> hmm...In RSWebApplication.config, you have the machine name in the
> >> <ReportServerUrl> element? [ http://MachineName/ReportServer ]
> >> Also, double-check the web config files for ReportManager.
> >>
> >> --
> >> Adrian M.
> >> MCP
> >>
> >>
> >> "mz" <mz@.discussions.microsoft.com> wrote in message
> >> news:59AD917B-B95B-4442-9C5F-38C7CF178B09@.microsoft.com...
> >> >I have checked and rechecked I have read the posts many times, but I
> >> >still
> >> > can't get it to work quite right.
> >> >
> >> > After configuring the security extension I can successfully register a
> >> > user
> >> > (admin).
> >> > I can deploy a report via the .NET IDE. I am prompted for the user
> >> > name.
> >> > The report is deployed and can be run inside the IDE.
> >> >
> >> > When I try to log on to ReportManager via http://Machinename/Reports
> >> > I correctly get the UILogin.aspx page. I have debugged this process
> >> > many
> >> > times. It
> >> > checks the user name and password. It creates a cookie. I get to the
> >> > line
> >> > HttpContext.Current.Response.Redirect(redirectUrl, false); It really
> >> > seems
> >> > like it should redirect to Folder.aspx but instead it returns to
> >> > UILogin.aspx
> >> > .
> >> >
> >> > I am using the developer edition with SR1
> >> > I have removed the cr/lf from all configuration lines
> >> > I never user localhost I am always using Machine name.
> >> >
> >> > Any help would be appreciated
> >>
> >>
> >>
>
>|||Glad you figured it out. I didn't know about the underscore issue so I did
a little research. Sure enough RS Books OnLine state:
Avoid using a computer that has an underscore in the computer name. Report
server does not persist session state information on computers that have an
underscore character in the computer name and that have been patched with
Internet Explorer Security Patch MS01-055. The security patch prevents
cookies from being set on client computers that have an underscore in their
names, breaking the session management features of Reporting Services.
Recommended solutions are documented in Microsoft Knowledge Base article
316112.
...wow...all the pain a litte _ causes :()
--
Adrian M.
MCP
"mz" <mz@.discussions.microsoft.com> wrote in message
news:DD7842DC-F477-44C3-A52A-95D955C9D8E0@.microsoft.com...
> Hey Adrian I figured it out.
> The problem is that my machinename has an "_" (underscore) in it.
> If I use the IP address instead of machinename everything works fine.
> people on the group below all seem to know that cookies won't work if the
> machinename has an underscore in it.
> My enthusiasm for this technology is mighty low at this point.
> http://groups-beta.google.com/group/microsoft.public.inetserver.asp.general/browse_thread/thread/ab47f022e98d3e5/a74711bb0225b84c?q=cookie+iis+localhost+vbscript&rnum=2#a74711bb0225b84c
>
> "Adrian M." wrote:
>> ok...can you navigate to http://MARKZ_2K/ReportServer without problems?
>> Also, double-check the instructions for the changes to the ReportServer
>> config files.
>> To simplify the log in process, just hard code a user name/password in
>> your
>> security extension; compile; deploy it to the correct \bin folders
>> (ReportManager, ReportServer); restart RS/IIS. Can you log into Report
>> Manger now?
>> Although it's overly complicated, I know setting up the security
>> extension
>> is possible (I've done it on several occasions)...so there must be some
>> small typo or something you overlooked when following the white paper.
>> That's what happened to me. I had to review the steps in the white paper
>> 3
>> times before I got it to work the first time.
>> I hope adding security extensions is easier in the future
>> [mswish@.microsoft.com]
>> --
>> Adrian M.
>> MCP
>>
>> "mz" <mz@.discussions.microsoft.com> wrote in message
>> news:5B3DDA88-4DB6-475A-97C2-84B5193C8BF5@.microsoft.com...
>> > Hi Adrian,
>> > I recognize you from previous posts. Thanks for responding.
>> > Yes, RSWebApplication.config is
>> > <ReportServerUrl>http://MARKZ_2K/ReportServer</ReportServerUrl>
>> >
>> >> Also, double-check the web config files for ReportManager.
>> > Are you refering to C:\Program Files\Microsoft SQL
>> > Server\MSSQL\Reporting
>> > Services\ReportManagerWeb.Config?
>> > I believe the only thing to do in that file is to set
>> > <identity impersonate="false"/> which I have done/
>> >
>> > "Adrian M." wrote:
>> >
>> >> hmm...In RSWebApplication.config, you have the machine name in the
>> >> <ReportServerUrl> element? [ http://MachineName/ReportServer ]
>> >> Also, double-check the web config files for ReportManager.
>> >>
>> >> --
>> >> Adrian M.
>> >> MCP
>> >>
>> >>
>> >> "mz" <mz@.discussions.microsoft.com> wrote in message
>> >> news:59AD917B-B95B-4442-9C5F-38C7CF178B09@.microsoft.com...
>> >> >I have checked and rechecked I have read the posts many times, but I
>> >> >still
>> >> > can't get it to work quite right.
>> >> >
>> >> > After configuring the security extension I can successfully register
>> >> > a
>> >> > user
>> >> > (admin).
>> >> > I can deploy a report via the .NET IDE. I am prompted for the user
>> >> > name.
>> >> > The report is deployed and can be run inside the IDE.
>> >> >
>> >> > When I try to log on to ReportManager via http://Machinename/Reports
>> >> > I correctly get the UILogin.aspx page. I have debugged this process
>> >> > many
>> >> > times. It
>> >> > checks the user name and password. It creates a cookie. I get to
>> >> > the
>> >> > line
>> >> > HttpContext.Current.Response.Redirect(redirectUrl, false); It really
>> >> > seems
>> >> > like it should redirect to Folder.aspx but instead it returns to
>> >> > UILogin.aspx
>> >> > .
>> >> >
>> >> > I am using the developer edition with SR1
>> >> > I have removed the cr/lf from all configuration lines
>> >> > I never user localhost I am always using Machine name.
>> >> >
>> >> > Any help would be appreciated
>> >>
>> >>
>> >>
>>

forms authentication samples

I cant find the forms authentication samples for srs 2005
C:\Program Files\Microsoft SQL Server\90\Samples\Reporting
Services\Extension Samples\FormsAuthentication SampleNevermind, there was an msi file somewhere
"Marvin" wrote:
> I cant find the forms authentication samples for srs 2005
> C:\Program Files\Microsoft SQL Server\90\Samples\Reporting
> Services\Extension Samples\FormsAuthentication Sample
>

Forms authentication sample and Win XP pro /win 2k3 server

I developed an app which uses the forms authentication sample from microsoft
as a security extension, but since i upgraded my system to sp2 it stopped
working, besides it doent work on a win2k3 server but it works on a win2k,
the problems seems to be with ssl im using the selfssl utility to get my
cerificates as im still working on a test environment, but even if i get a
test certificate from a trusted provider it tells me it doenst trust it. the
message is the following " The underlying connection was closed: Could not
establish trust relationship with remote server. "
this happens when calling the logonuser method using soap, ive tried
changing all the adresses in the config files for https but it doesnt work.Have a look at
http://support.microsoft.com/default.aspx?scid=kb;en-us;823177
I've used this to get around the same issue in a WinForms app
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"Rodrigo" <Rodrigo @.discussions.microsoft.com> wrote in message
news:3D0B1EF9-B419-4B14-AC19-39BEC39F8800@.microsoft.com...
>I developed an app which uses the forms authentication sample from
>microsoft
> as a security extension, but since i upgraded my system to sp2 it stopped
> working, besides it doent work on a win2k3 server but it works on a win2k,
> the problems seems to be with ssl im using the selfssl utility to get my
> cerificates as im still working on a test environment, but even if i get a
> test certificate from a trusted provider it tells me it doenst trust it.
> the
> message is the following " The underlying connection was closed: Could
> not
> establish trust relationship with remote server. "
> this happens when calling the logonuser method using soap, ive tried
> changing all the adresses in the config files for https but it doesnt
> work.
>|||also see :
http://sqljunkies.com/WebLog/roman/archive/category/370.aspx

Forms Authentication Resulting in Blank Screen after a few minutes.

Hi – I hope someone can help,

I have developed a custom authentication extension to Reporting Services 2005, using Visual Studio 2005 C#.

In local integration tests the extension behaved as expected, honouring the role based security of our main system. Following the deployment steps laid out from numerous sources all worked perfectly. We were optimistic.

I've since deployed to a 'live' user acceptance staging server, using the same procedures used in Integration and it's behaving incorrectly.

Initially the log in page is displayed as expected, at this point SQL dumps occur in the RS Log directory, the same as is seen here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1750128&SiteID=1


Hopefully there'll be a resolution to that soon. As described in that topic, the main page of Report Manager appears.

After this it all goes wrong.

Sometimes we can browse to a folder and run a report. But after running the report, trying to run something else, or browse back to the containing folder we are presented with the error page with the message:

The permissions granted to user '' are insufficient for performing this operation.

Clicking on the home link brings up the top title and nothing else and you have no option but to close the site and re-login.

Sometimes you get the above message before you can even run a report. The error logs have the message listed at the end of this post.

Other times you log in to the website and the folders don't even appear, just the top title bar.

I have since added some verbose logging in each of the implemented methods in the extension DLL. The permission checking method return true and all the various data in each method appears as expected.

I have checked, checked again and re-checked all the configuration files, they match the local Integration files, barring the machine specific keys etc, they weren't just overwritten.

The location of the log directory where my internal logs are written is read from the configuration files via the SetConfiguration methods, if that wasn't set correctly then there wouldn't be any logs at all, so the configuration is being read correctly by the extension.

One other think that I've noticed is that the back door user that is configured in the config files works perfectly, but I can't see how this can make any sort of a difference as it returns the same result in the extension DLL as a 'normal' user does at the same point in the code.

Can someone please help me, and my poor scalp, it's losing hair at a rate of knots.

Set up:

Windows Server 2005

SQL Server 2005 Service Pack 2 (Developer)

IIS 6

Error message in the log files:

w3wp!library!1!27/06/2007-10:04:20:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user '' are insufficient for performing this operation., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user '' are insufficient for performing this operation.

w3wp!ui!1!27/06/2007-10:04:20:: e ERROR: The permissions granted to user '' are insufficient for performing this operation.

w3wp!ui!1!27/06/2007-10:04:20:: e ERROR: HTTP status code --> 500

-Details--

Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user '' are insufficient for performing this operation.

w3wp!ui!1!27/06/2007-10:04:20:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted.

at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort(Object stateInfo)

at System.Web.HttpResponse.End()

at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)

at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort(Object stateInfo)

at System.Web.HttpResponse.End()

at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)

at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)

Additionally, once I get the error message above, and nothing is displayed apart from the headline bar, If I browse to the ReportServer web-service, in the same session, it works perfectly.

This is terribly frustrating.
|||*bump*

Any Ideas?
|||*re bump*

Forms Authentication Resulting in Blank Screen after a few minutes.

Hi – I hope someone can help,

I have developed a custom authentication extension to Reporting Services 2005, using Visual Studio 2005 C#.

In local integration tests the extension behaved as expected, honouring the role based security of our main system. Following the deployment steps laid out from numerous sources all worked perfectly. We were optimistic.

I've since deployed to a 'live' user acceptance staging server, using the same procedures used in Integration and it's behaving incorrectly.

Initially the log in page is displayed as expected, at this point SQL dumps occur in the RS Log directory, the same as is seen here: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1750128&SiteID=1


Hopefully there'll be a resolution to that soon. As described in that topic, the main page of Report Manager appears.

After this it all goes wrong.

Sometimes we can browse to a folder and run a report. But after running the report, trying to run something else, or browse back to the containing folder we are presented with the error page with the message:

The permissions granted to user '' are insufficient for performing this operation.

Clicking on the home link brings up the top title and nothing else and you have no option but to close the site and re-login.

Sometimes you get the above message before you can even run a report. The error logs have the message listed at the end of this post.

Other times you log in to the website and the folders don't even appear, just the top title bar.

I have since added some verbose logging in each of the implemented methods in the extension DLL. The permission checking method return true and all the various data in each method appears as expected.

I have checked, checked again and re-checked all the configuration files, they match the local Integration files, barring the machine specific keys etc, they weren't just overwritten.

The location of the log directory where my internal logs are written is read from the configuration files via the SetConfiguration methods, if that wasn't set correctly then there wouldn't be any logs at all, so the configuration is being read correctly by the extension.

One other think that I've noticed is that the back door user that is configured in the config files works perfectly, but I can't see how this can make any sort of a difference as it returns the same result in the extension DLL as a 'normal' user does at the same point in the code.

Can someone please help me, and my poor scalp, it's losing hair at a rate of knots.

Set up:

Windows Server 2005

SQL Server 2005 Service Pack 2 (Developer)

IIS 6

Error message in the log files:

w3wp!library!1!27/06/2007-10:04:20:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user '' are insufficient for performing this operation., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user '' are insufficient for performing this operation.

w3wp!ui!1!27/06/2007-10:04:20:: e ERROR: The permissions granted to user '' are insufficient for performing this operation.

w3wp!ui!1!27/06/2007-10:04:20:: e ERROR: HTTP status code --> 500

-Details--

Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user '' are insufficient for performing this operation.

w3wp!ui!1!27/06/2007-10:04:20:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted.

at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort(Object stateInfo)

at System.Web.HttpResponse.End()

at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)

at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at at System.Threading.Thread.AbortInternal()

at System.Threading.Thread.Abort(Object stateInfo)

at System.Web.HttpResponse.End()

at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)

at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)

Additionally, once I get the error message above, and nothing is displayed apart from the headline bar, If I browse to the ReportServer web-service, in the same session, it works perfectly.

This is terribly frustrating.
|||*bump*

Any Ideas?
|||*re bump*

Forms authentication problems

Hi,
I'm implementing a custom security extension for Reporting Services,
based on the forms authentication sample, and am having a couple of
problems with authentication.
Here's some background on my set-up.
- We intend to expose reports to our customers over the internet.
Since we already have a main web application with a logon form and
authentication framework, we are sharing the authentication cookies
with that application (which lives on a different server), according
to the MSDN article 'Forms Authentication Across Applications'.
- I have implemented an authentication extension which uses this
framework to authenticate users, and it works. (I can call LogonUser
and get a cookie back if my credentials are valid, among other things.)
- Rather than having a separate logon form for Reporting Services, we
want to redirect users to/from our main logon form on the other server.
First problem: Report Manager isn't redirecting to the logon page that I
specified in the RSWebApplication.config file. Instead it is trying to
call the web service when not authenticated, and failing. (It gets
redirected to the logon page, and doesn't know what to do with it.)
The UFAIRS article doesn't say how RM works out whether the user has
an authentication cookie for the web service which needs forwarding.
Presumably it looks for one in the request, and redirects to the logon
page if the cookie isn't there. But how does it know what the cookie's
called? How does it even know that the web service is using forms
authentication (without first trying it)?
I don't know how what I'm doing is any different to the sample, which
does work. The only thing I've changed (in the Report Manager
configuration) is the loginUrl element within CustomAuthenticationUI,
but RM isn't even trying to redirect the client.
I'm also getting what I think is the same problem using Report Designer
in Visual Studio. When the sample was installed, Report Designer would
pop up a box asking for username and password whenever it tried to use
the web service, but now it just gives me an error message stating "a
connection could not be made to the report server". Again, I'm not sure
how it's trying to determine what it has to do to authenticate itself.
Second problem: redirection from the web service works, but it isn't
respecting the useFullyQualifiedRedirectUrl setting in web.config
(attribute of the httpRuntime element), which I've set to 'true'. The
URL it generates and puts in the query string is relative to the local
server root. Since my logon page is on a different server, I need it to
include the full URL.
Sorry for the long post, and thanks for reading if you got this far.
Please let me know any ideas you might have. I can post details from my
configuration files on request, and please ask if there's something I
haven't made clear. Thanks.
StephenThe name of the authentication cookie is configured in web.config under the
<forms> tag.
Perhaps you can make a call SOAP to LogonUser from your application before
the user gets to report manager. Then send the cookie to the client. Further
access to report server should be authenticated. For report manager to work
in this configuration you need to set the AllowPassthroughCookies - see the
SP1 readme for the exact name.
--
Tudor Trufinescu
Dev Lead
Sql Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Stephen Kell" <skell@.opaltelecom.co.uk> wrote in message
news:pan.2004.08.04.15.24.00.797000@.opaltelecom.co.uk...
> Hi,
> I'm implementing a custom security extension for Reporting Services,
> based on the forms authentication sample, and am having a couple of
> problems with authentication.
> Here's some background on my set-up.
> - We intend to expose reports to our customers over the internet.
> Since we already have a main web application with a logon form and
> authentication framework, we are sharing the authentication cookies
> with that application (which lives on a different server), according
> to the MSDN article 'Forms Authentication Across Applications'.
> - I have implemented an authentication extension which uses this
> framework to authenticate users, and it works. (I can call LogonUser
> and get a cookie back if my credentials are valid, among other things.)
> - Rather than having a separate logon form for Reporting Services, we
> want to redirect users to/from our main logon form on the other server.
> First problem: Report Manager isn't redirecting to the logon page that I
> specified in the RSWebApplication.config file. Instead it is trying to
> call the web service when not authenticated, and failing. (It gets
> redirected to the logon page, and doesn't know what to do with it.)
> The UFAIRS article doesn't say how RM works out whether the user has
> an authentication cookie for the web service which needs forwarding.
> Presumably it looks for one in the request, and redirects to the logon
> page if the cookie isn't there. But how does it know what the cookie's
> called? How does it even know that the web service is using forms
> authentication (without first trying it)?
> I don't know how what I'm doing is any different to the sample, which
> does work. The only thing I've changed (in the Report Manager
> configuration) is the loginUrl element within CustomAuthenticationUI,
> but RM isn't even trying to redirect the client.
> I'm also getting what I think is the same problem using Report Designer
> in Visual Studio. When the sample was installed, Report Designer would
> pop up a box asking for username and password whenever it tried to use
> the web service, but now it just gives me an error message stating "a
> connection could not be made to the report server". Again, I'm not sure
> how it's trying to determine what it has to do to authenticate itself.
> Second problem: redirection from the web service works, but it isn't
> respecting the useFullyQualifiedRedirectUrl setting in web.config
> (attribute of the httpRuntime element), which I've set to 'true'. The
> URL it generates and puts in the query string is relative to the local
> server root. Since my logon page is on a different server, I need it to
> include the full URL.
> Sorry for the long post, and thanks for reading if you got this far.
> Please let me know any ideas you might have. I can post details from my
> configuration files on request, and please ask if there's something I
> haven't made clear. Thanks.
> Stephen
>|||Firstly, thanks for the reply.
> The name of the authentication cookie is configured in web.config under the
> <forms> tag.
Maybe I misunderstood, but I thought that this was only for the web
service (i.e. in ReportServer/web.config). Report Manager is using Windows
authentication itself, and doesn't have a <forms> element in its
web.config. Let me know if this is not correct.
> Perhaps you can make a call SOAP to LogonUser from your application before
> the user gets to report manager. Then send the cookie to the client. Further
> access to report server should be authenticated. For report manager to work
> in this configuration you need to set the AllowPassthroughCookies - see the
> SP1 readme for the exact name.
Thanks -- I set the PassThroughCookies configuration as required and now I
can access Report Manager. It's still not redirecting in the case of an
unauthenticated request, which would be nice to have working, but not
essential as I can log on using our form first, which generates a valid
cookie. Unfortunately though, I still get the error I described with
Report Designer, and don't have any possibility of working around that
similarly. Please let me know if you have any ideas.
Stephen|||Report manager reads the name of the authentication cookie which is sent by
the report server as an HTTP header.
Unfortunately I don't know of any solution that would allow report designer
to work in this case. As a workaround you could write your own application
that would publish reports using SOAP calls. In the SOAP client, you can
manage your custom cookies as you wish.
--
Tudor Trufinescu
Dev Lead
Sql Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Stephen Kell" <skell@.opaltelecom.co.uk> wrote in message
news:pan.2004.08.05.14.48.01.766000@.opaltelecom.co.uk...
> Firstly, thanks for the reply.
> > The name of the authentication cookie is configured in web.config under
the
> > <forms> tag.
> Maybe I misunderstood, but I thought that this was only for the web
> service (i.e. in ReportServer/web.config). Report Manager is using Windows
> authentication itself, and doesn't have a <forms> element in its
> web.config. Let me know if this is not correct.
> > Perhaps you can make a call SOAP to LogonUser from your application
before
> > the user gets to report manager. Then send the cookie to the client.
Further
> > access to report server should be authenticated. For report manager to
work
> > in this configuration you need to set the AllowPassthroughCookies - see
the
> > SP1 readme for the exact name.
> Thanks -- I set the PassThroughCookies configuration as required and now I
> can access Report Manager. It's still not redirecting in the case of an
> unauthenticated request, which would be nice to have working, but not
> essential as I can log on using our form first, which generates a valid
> cookie. Unfortunately though, I still get the error I described with
> Report Designer, and don't have any possibility of working around that
> similarly. Please let me know if you have any ideas.
> Stephen
>|||Thanks. I will look into implementing a separate application to deploy
reports.
I am still a bit puzzled about how what I'm doing is substantially
different to the sample -- there's nothing special about my cookies, and
valid cookies can be generated by the RS web service as well as by our own
login page (or at least that's the idea). I'll try to investigate whether
the HTTP requests issued by RM/RD (or the responses they get) are any
different when using the sample, compared to my current installation. (Not
managed to do so yet as I don't currently have a machine with the sample
installed.)
Going back to another issue I mentioned in my first post, I don't suppose
there's any clues about why the web service doesn't generate
fully-qualified redirect URLs? I thought this was all handled by ASP.NET's
underlying FormsAuthentication implementation, but it seems like RS has
altered the normal behaviour, unless I've misunderstood something. Any
suggestions appreciated.
Stephen|||Yes, the redirect in Report manager is done only into the report manager
directory.
--
Tudor Trufinescu
Dev Lead
Sql Server Reporting Services
This posting is provided "AS IS" with no warranties, and confers no rights.
"Stephen Kell" <skell@.opaltelecom.co.uk> wrote in message
news:pan.2004.08.06.15.52.29.703000@.opaltelecom.co.uk...
> Thanks. I will look into implementing a separate application to deploy
> reports.
> I am still a bit puzzled about how what I'm doing is substantially
> different to the sample -- there's nothing special about my cookies, and
> valid cookies can be generated by the RS web service as well as by our own
> login page (or at least that's the idea). I'll try to investigate whether
> the HTTP requests issued by RM/RD (or the responses they get) are any
> different when using the sample, compared to my current installation. (Not
> managed to do so yet as I don't currently have a machine with the sample
> installed.)
> Going back to another issue I mentioned in my first post, I don't suppose
> there's any clues about why the web service doesn't generate
> fully-qualified redirect URLs? I thought this was all handled by ASP.NET's
> underlying FormsAuthentication implementation, but it seems like RS has
> altered the normal behaviour, unless I've misunderstood something. Any
> suggestions appreciated.
> Stephen
>|||(I don't know if anyone's still reading this thread, but if so, I finally
worked out the solution and thought I'd share it.)
Thanks -- it did turn out to be something to do with the redirect
destination being outside of the application's virtual directory, but not
quite what you said. (I won't claim that my explanation matches the
intended logic behind the Reporting Services code, only that it allowed me
to understand and solve the problem I was having.)
In fact, both the RS web service and Report Manager are quite happy to
redirect outside of their virtual directory. The problem is in how their
clients interpret this.
Both Report Manager and Report Designer need some way of determining
whether to call LogonUser. If the web service redirects them to a location
inside its virtual directory, they assume this is a logon page, and do
their ask-for-credentials thing. (For Report Manager it's redirecting to
the page specified in the CustomAuthenticationUI configuration element,
while for Report Designer it's popping up that dialog asking for
credentials.) Once they have the credentials, they call LogonUser to get
their cookie.
If the web service redirects them elsewhere, they don't do any of this,
and instead fall over, in the end generating generic error messages
claiming that the report server isn't working.
I got around this by configuring the web service to redirect to a simple
aspx page (called Logon.aspx, though the name doesn't matter) in its own
virtual directory. In the Page_Load event I test whether a the User-Agent
header was received. This is a bit of magic intended to determine whether
the client is interactive (i.e. a web browser) and therefore capable of
logging in using a form, or not (e.g. a web service client like Report
Designer or Report Manager).
In the case of an interactive client, the page redirects to the (external)
login page. (The URL of the login page is read from a label in the aspx
page, so you don't need to recompile in order to change it.) You must make
sure that you also include the ReturnUrl query string parameter in your
redirect destination URL, *and* that you translate it to a fully-qualified
URL (since RS doesn't seem to do this).
For non-interactive clients, it just serves a blank page (or actually,
since I was feeling helpful, a short message about why the client wasn't
redirected, followed by the aforementioned label showing the login page
URL).
Report Manager and Report Designer now work fine. You can specify the
external login page for RM just like any other.
Sorry for the long-winded explanation -- I hope it proves useful for
someone.
Stephen

Monday, March 26, 2012

Forms authentication and URL access

Ive written a security extension based on microsoft samples, i can call the
SOAP API and get authenticated but i dont know what to do so i can use this
authentication method using URL access, i need that since i want to be able
to keep the toolbar.Rodrigo,
The typical integration scenario for Forms Autnentication and web-based URL
reporting is:
1. You have a web app which authenticates the user on the server side.
2. The web app calls LogonUser SOAP API.
3. The web app utilizes the Report Viewer or another approach (static
hyperlinks, client-side javascript, etc) to submit URL-based report
requests.
So, once the user is authenticated the we app just needs to submit report
requests on the client side of the application. As long as the
authentication ticket (cookie) is passed successfully, the reports should
render fine subject to aurhorization restrictions.
Hope this helps.
----
Teo Lachev, 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/
----
"Rodrigo Sánchez" <rodrigoss@.netshoreprogramming.com> wrote in message
news:%23p%23QEV5jEHA.704@.TK2MSFTNGP09.phx.gbl...
> Ive written a security extension based on microsoft samples, i can call
the
> SOAP API and get authenticated but i dont know what to do so i can use
this
> authentication method using URL access, i need that since i want to be
able
> to keep the toolbar.
>|||thanks, ill review my implementation and get back to you with more detail if
needed
"Teo Lachev" <teo.lachev@.nospam.prologika.com> escribió en el mensaje
news:%23rrIi15jEHA.592@.TK2MSFTNGP11.phx.gbl...
> Rodrigo,
> The typical integration scenario for Forms Autnentication and web-based
URL
> reporting is:
> 1. You have a web app which authenticates the user on the server side.
> 2. The web app calls LogonUser SOAP API.
> 3. The web app utilizes the Report Viewer or another approach (static
> hyperlinks, client-side javascript, etc) to submit URL-based report
> requests.
> So, once the user is authenticated the we app just needs to submit report
> requests on the client side of the application. As long as the
> authentication ticket (cookie) is passed successfully, the reports should
> render fine subject to aurhorization restrictions.
>
> --
> Hope this helps.
> ----
> Teo Lachev, 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/
> ----
> "Rodrigo Sánchez" <rodrigoss@.netshoreprogramming.com> wrote in message
> news:%23p%23QEV5jEHA.704@.TK2MSFTNGP09.phx.gbl...
> > Ive written a security extension based on microsoft samples, i can call
> the
> > SOAP API and get authenticated but i dont know what to do so i can use
> this
> > authentication method using URL access, i need that since i want to be
> able
> > to keep the toolbar.
> >
> >
>|||Teo - Is it a requirement of Forms Authentication that the users who are
authenticated to the ASP.NET web app have credentials defined in reporting
services? If not, how can you manage that user's rights?
thanks
"Teo Lachev" wrote:
> Rodrigo,
> The typical integration scenario for Forms Autnentication and web-based URL
> reporting is:
> 1. You have a web app which authenticates the user on the server side.
> 2. The web app calls LogonUser SOAP API.
> 3. The web app utilizes the Report Viewer or another approach (static
> hyperlinks, client-side javascript, etc) to submit URL-based report
> requests.
> So, once the user is authenticated the we app just needs to submit report
> requests on the client side of the application. As long as the
> authentication ticket (cookie) is passed successfully, the reports should
> render fine subject to aurhorization restrictions.
>
> --
> Hope this helps.
> ----
> Teo Lachev, 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/
> ----
> "Rodrigo Sánchez" <rodrigoss@.netshoreprogramming.com> wrote in message
> news:%23p%23QEV5jEHA.704@.TK2MSFTNGP09.phx.gbl...
> > Ive written a security extension based on microsoft samples, i can call
> the
> > SOAP API and get authenticated but i dont know what to do so i can use
> this
> > authentication method using URL access, i need that since i want to be
> able
> > to keep the toolbar.
> >
> >
>
>|||No credentials, just security policies in the report catalog. You would
typically use the Report Manager to set up your user security policy just
like you would normally do with Windows authentication.
Please note though that you don't have to register invividual users.
Instead, if it makes sense, you can group users into application-defined
roles outside of the Report Server. Then, in the Report Manager you will set
up security policies based the roles not users for easier maintainance.
Finally, in your CheckAccess overloads you need to take extra steps to find
out which role the user belongs to and authorize the user based on the user
role membership
Does this confuse even more :-)
---
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/
---
"ISGADMIN" <isgadmin@.newsgroup.nospam> wrote in message
news:9ABD45EE-390D-4272-A0AC-119114A0638E@.microsoft.com...
> Teo - Is it a requirement of Forms Authentication that the users who are
> authenticated to the ASP.NET web app have credentials defined in reporting
> services? If not, how can you manage that user's rights?
> thanks
> "Teo Lachev" wrote:
> > Rodrigo,
> >
> > The typical integration scenario for Forms Autnentication and web-based
URL
> > reporting is:
> > 1. You have a web app which authenticates the user on the server side.
> > 2. The web app calls LogonUser SOAP API.
> > 3. The web app utilizes the Report Viewer or another approach (static
> > hyperlinks, client-side javascript, etc) to submit URL-based report
> > requests.
> >
> > So, once the user is authenticated the we app just needs to submit
report
> > requests on the client side of the application. As long as the
> > authentication ticket (cookie) is passed successfully, the reports
should
> > render fine subject to aurhorization restrictions.
> >
> >
> >
> > --
> > Hope this helps.
> >
> > ----
> > Teo Lachev, 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/
> > ----
> >
> > "Rodrigo Sánchez" <rodrigoss@.netshoreprogramming.com> wrote in message
> > news:%23p%23QEV5jEHA.704@.TK2MSFTNGP09.phx.gbl...
> > > Ive written a security extension based on microsoft samples, i can
call
> > the
> > > SOAP API and get authenticated but i dont know what to do so i can use
> > this
> > > authentication method using URL access, i need that since i want to be
> > able
> > > to keep the toolbar.
> > >
> > >
> >
> >
> >

Forms Authentication and Unattended Report Execution

I have implemented forms authentication security extension as described in the MSDN whitepaper "Using Forms Authentication in Reporting Services" and it works fine. However, I ran into problems trying to create scheduled execution snapshot for a report when it fails with unable to authenticate. How do I configure RS to authenticate for unattended execution with forms authentication?

Thanks,Please disregard this one. Stopping and restarting the ReportServerService resolved the issue.

Forms Authentication and Unattended Report Execution

I have implemented forms authentication security extension as described in the MSDN whitepaper "Using Forms Authentication in Reporting Services" and it works fine. However, I ran into problems trying to create scheduled execution snapshot for a report when it fails with unable to authenticate. How do I configure RS to authenticate for unattended execution with forms authentication?

Thanks,Please disregard this one. Stopping and restarting the ReportServerService resolved the issue.sql

Forms Authentication + Report Builder 2005

I've got Reporting Services 2005 successfully setup using the forms
authentication extension sample that ships with 2005, and have even got
Report Builder up and running having followed a workaround involving a
HTTP filter
(http://blogs.msdn.com/bimusings/archive/2005/11/29/497848.aspx).
The problem that I have is that I cannot view reports through Report
Builder as any user other than the default administrator, get the error
message:
The permissions granted to user '<formsuser>' are
insufficient for performing this operation. (rsAccessDenied)
Anyone any similar experiences? Any user can create and deploy reports
but it is only the admin that can view reports in Report Builder.
Thanks,
SiThis is exactly the behavior you should see if the user does not have
permission to the Execute Report Definitions system task. This permission is
required to view reports in Report Builder because RB executes the
(potentially modified) report definitions on-the-fly, without saving them to
the report server first.
If you go to Site Settings->Configure Site-wide Security in Report Manager,
you should be able to add your non-admin user to the System User role, which
has permission to the Execute Report Definitions task by default (unless you
upgraded your server from 2000, in which case you will need to add the
permission to the role manually).
Hope this helps!
"si.downes@.gmail.com" wrote:
> I've got Reporting Services 2005 successfully setup using the forms
> authentication extension sample that ships with 2005, and have even got
> Report Builder up and running having followed a workaround involving a
> HTTP filter
> (http://blogs.msdn.com/bimusings/archive/2005/11/29/497848.aspx).
> The problem that I have is that I cannot view reports through Report
> Builder as any user other than the default administrator, get the error
> message:
> The permissions granted to user '<formsuser>' are
> insufficient for performing this operation. (rsAccessDenied)
> Anyone any similar experiences? Any user can create and deploy reports
> but it is only the admin that can view reports in Report Builder.
> Thanks,
> Si
>|||that's fixed it. thanks!
Bob Meyers - MSFT wrote:
> This is exactly the behavior you should see if the user does not have
> permission to the Execute Report Definitions system task. This permission is
> required to view reports in Report Builder because RB executes the
> (potentially modified) report definitions on-the-fly, without saving them to
> the report server first.
> If you go to Site Settings->Configure Site-wide Security in Report Manager,
> you should be able to add your non-admin user to the System User role, which
> has permission to the Execute Report Definitions task by default (unless you
> upgraded your server from 2000, in which case you will need to add the
> permission to the role manually).
> Hope this helps!
> "si.downes@.gmail.com" wrote:
> > I've got Reporting Services 2005 successfully setup using the forms
> > authentication extension sample that ships with 2005, and have even got
> > Report Builder up and running having followed a workaround involving a
> > HTTP filter
> > (http://blogs.msdn.com/bimusings/archive/2005/11/29/497848.aspx).
> > The problem that I have is that I cannot view reports through Report
> > Builder as any user other than the default administrator, get the error
> > message:
> >
> > The permissions granted to user '<formsuser>' are
> > insufficient for performing this operation. (rsAccessDenied)
> >
> > Anyone any similar experiences? Any user can create and deploy reports
> > but it is only the admin that can view reports in Report Builder.
> >
> > Thanks,
> >
> > Si
> >
> >|||Si,
Are you having users access report builder from the internet? When using the
forms authentication is there any loss of features in reporting services? I
thought I read somewhere that if forms authentication was used, either not
all of the features of reporting services were available or you had to
manually do a lot of coding to enable all of the features. I may have
misunderstood the article however.
Thanks,
--
Dan D.
"si.downes@.gmail.com" wrote:
> that's fixed it. thanks!
> Bob Meyers - MSFT wrote:
> > This is exactly the behavior you should see if the user does not have
> > permission to the Execute Report Definitions system task. This permission is
> > required to view reports in Report Builder because RB executes the
> > (potentially modified) report definitions on-the-fly, without saving them to
> > the report server first.
> >
> > If you go to Site Settings->Configure Site-wide Security in Report Manager,
> > you should be able to add your non-admin user to the System User role, which
> > has permission to the Execute Report Definitions task by default (unless you
> > upgraded your server from 2000, in which case you will need to add the
> > permission to the role manually).
> >
> > Hope this helps!
> >
> > "si.downes@.gmail.com" wrote:
> >
> > > I've got Reporting Services 2005 successfully setup using the forms
> > > authentication extension sample that ships with 2005, and have even got
> > > Report Builder up and running having followed a workaround involving a
> > > HTTP filter
> > > (http://blogs.msdn.com/bimusings/archive/2005/11/29/497848.aspx).
> > > The problem that I have is that I cannot view reports through Report
> > > Builder as any user other than the default administrator, get the error
> > > message:
> > >
> > > The permissions granted to user '<formsuser>' are
> > > insufficient for performing this operation. (rsAccessDenied)
> > >
> > > Anyone any similar experiences? Any user can create and deploy reports
> > > but it is only the admin that can view reports in Report Builder.
> > >
> > > Thanks,
> > >
> > > Si
> > >
> > >
>

Forms Authentication

I have installed and implemented the Security Extension for forms
authentication. I am trying to get the reportviewer control to show me the
requested report and with the toolbar. When I make a call to my server's
reporting server, I get resource not found. The request looks like this -
http://servername/reportserver?/AdHoc/Test/Testing
This is where the proplem resides. Can anyone help me. I am under a tight
deadline for a project and have spen over 50 hours trying to get this stuff
to work.
Thanks,
bspannStrange behavior , but just try to see if the Item is
actually available on the Report Server.
Just go to the link http://servername/reportserver and
follow the folder path you have specified and see if the
item is present!
>--Original Message--
>I have installed and implemented the Security Extension
for forms
>authentication. I am trying to get the reportviewer
control to show me the
>requested report and with the toolbar. When I make a
call to my server's
>reporting server, I get resource not found. The request
looks like this -
>http://servername/reportserver?/AdHoc/Test/Testing
>This is where the proplem resides. Can anyone help me.
I am under a tight
>deadline for a project and have spen over 50 hours trying
to get this stuff
>to work.
>Thanks,
>bspann
>.
>|||I solved my problem. Here are the details. Hopefully this will help other
people as well. The application that I am working on at the moment has it's
own form authentication. We wanted to integrate RS with our app. So we
followed the instructions from microsoft. We left out things in regards to
salting passwords since we do that in our framework. I could get reports
rendered from the soap API but we really wanted the toolbar. After reading
the discussion group, I found that the toolbar is not supported in the Soap
API (GRRRRRRRRRR). After I calmed down from cursing RS development team's
name, I proceded to use the reportviewer control. That is when I was getting
the weird behavior. So I placed a simple aspx form in the ReportServer
directory called logon.aspx that just redirected to our applicaitons logon
page. That was not working. Then, an ephifany occured. I went back to the
Logon.aspx page and change the following code.
<% Page.Response.Redirect("http://servername/appname/logon.aspx") %>
to
<%
System.Web.Security.FormsAuthentication.RedirectFromLoginPage(System.Web.HttpContext.Current.User.Identity.Name, false); %>
That took care of all my issues. Now everything is working just fine.
Thanks,
bspann
"Ravi" wrote:
> Strange behavior , but just try to see if the Item is
> actually available on the Report Server.
> Just go to the link http://servername/reportserver and
> follow the folder path you have specified and see if the
> item is present!
> >--Original Message--
> >I have installed and implemented the Security Extension
> for forms
> >authentication. I am trying to get the reportviewer
> control to show me the
> >requested report and with the toolbar. When I make a
> call to my server's
> >reporting server, I get resource not found. The request
> looks like this -
> >http://servername/reportserver?/AdHoc/Test/Testing
> >This is where the proplem resides. Can anyone help me.
> I am under a tight
> >deadline for a project and have spen over 50 hours trying
> to get this stuff
> >to work.
> >
> >Thanks,
> >
> >bspann
> >.
> >
>