.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Problem with SSRS Forms Authentication

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :Sql Server

Hi All,

I tried SSRS with Forms based authentication. I followed the below link


I am getting null value at the below code line ...[This entire code has been downloaded from the link http://www.codeplex.com/SqlServerSamples/Release/ProjectReleases.aspx?ReleaseId=4000 ]

 string cookieName = response.Headers["RSAuthenticationHeader"];

In "Headers" there is no key as RSAuthenticationHeader and returning null.

Before debugging all this code, done like this....
As per "Readme_FormsAuthenication.htm " file,

1)changed all the config keys of "Report Server and Report Manager" of installed paths.

2)Pasted the .aspx pages in the corresponding "Report Server and Report

View Complete Post

More Related Resource Links

U?sing Forms Authentication and connecting between SSRS ans SSAS

In our current production environment, we have SSRS setup to use Forms Authentication to verify the users. For our data sources, we are using 2 different data models - 1 is used to point at the "raw" sql in the database - and the second model is to point at a SSAS cube. currently, all users can see all data. we now have a requirement to limit the data the a user can see from the Fact table dependant on the Portion that they are assigned to (and a user might be assigned to more than one Portion. we have set this new requirement in the "raw" SQL model using a security filter - and all working well we have set the filtering up in the cube  - using a stored procedure in the Role "dimension data" tab which receives the user name and retruns the MDX required for the filtering - and it works if we connect to the cube via SQL management studio. However, if we connect from Reporting Services, we can not get the UserName "transferred over" and therefore the filtering doesnt work. n.b. we are using Shared data sources for our reports does anyone out there know of a way of making this work - or do we go for Kerberos ??    

Forms Authentication - IE problem

Hi folks,I already implemented some kind of Forms Authentication. I got the following problem - When I'm using IE(7, 8) ONLY (FF, Opera, Chrome - they are OK) it is impossible to to get logged and get redirect to specified page from the Login.aspx. This problem occurs ONLY with IE. After passing some validations and creating ticket the Login page is reloaded again, and NO redirect to Default page exists. Address bar consists always this string:      http://localhost:3706/Login.aspx?ReturnUrl=%2fdefault.aspx  In Global.asax - HttpContext.Current.User is ALWAYS NULL under IE.Here is my code implementation:Web.config:<authentication mode="Forms">   <forms defaultUrl="Default.aspx" loginUrl="Login.aspx" protection="All" timeout="30"> </forms> </authentication>  <authorization>    <deny users="?"/> </authorization><!-- Allow anonymous access (non-Forms login) to the Images folder --> <location path="Images">   <system.web>      <authorization>          <allow users="*"/>      </authorization>   </system.web> </location>Global.asax:protected void Application_AuthenticateRequest(object sender, EventArgs e) {    // look if any security information exists for this request    if (H

Forms Based Authentication - problem with custom master page and login page



I have successfully enabled and set up FBA (Forms Based Authentication) on my SharePoint 2010 Foundation server. The thing is that I need to customize the look and feel of the login page. I have successfully customized the page (and master page) to look the way I want, however, when I try to log in, I get the following error/message on the page:
"Forms Based Authentication on classic Web applications has been deprecated".

What I've done:
Made copies of /_layouts/simple.master and /_layouts/login.aspx and renamed the copies. The markup in the master page is MUCH simpler than the original, but I've kept all the ContentPlaceholders that I don't use (most of them) in a hidden <asp:Panel at the bottom of the page.

I've changed the web.config file:
<authentication mode="Forms">
      <forms loginUrl="/_layouts/loginCustom.aspx" />

So, I'm not getting any errors on the page until I try to log in. When I use the default settings (login.aspx and simple.master) it works just fine (but damn that page looks ugly!).

Does anyone know what I might be missing?

Update: I believe the reason it doesn't work is because my custom login aspx is not part of the Claims Based Web Application (because it's sitting

ssrs forms authentication



i am using ssrs 2008. i am trying to implement forms authentication in ssrs. followed the steps in the link http://msdn.microsoft.com/en-us/library/ms160724(v=SQL.100).aspx#2. after restarting the reporting services, i am able to connect to reportserver and able to login as well. but when tried to connect to report manager, i get error as below


The website cannot display the page

This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

For more information about HTTP errors, see Help.


the webservice url and report manager urls are configured as  http://myserver:8080/reportserver and http://myserver:8080/reports respectively.

any help is greatly appreciated.




Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find i

SSRS Forms authentication button click does nothing


I followed the instructions from http://msftrsprodsamples.codeplex.com/wikipage?title=SS2008%21Security%20Extension%20Sample&referringTitle=Home and tried to set up the sample to work on my localbox.  I have done everything and when I go to the Report Manager, I get redirected to the UILogon page and I am able to attach and debug. 

However, for some reason, none of the button click events are working.  When I click on Register, it simply reloads the page without invoking the BtnRegister_Click method.  Could this be a result of having built the project using VS2008 instead of VS2005 since the sample says it doesn't work with VS2008?  If so, what can I do so that it works with VS2008?

Thanks in advance,

SSRS forms authentication error:An error occurred while attempting to get the ReportServer Url. The

I have managed to get the Forms Authentication sample to work bu there is a hitch. I am running Report Server and Report Manager on the same(test) PC. I can logon to the Report Server without a problem but when I try logon from the UILogon.aspx page for Report Manager I receive the following error:

An error occurred while attempting to get the ReportServer Url. The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
An error occurred while attempting to get the ReportServer Url. The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
An error occured while attempting to get the ReportServer Url. The RPC server is unavailable.(Exception from HRESULT: 0x800706BA).

I can register users which suggests that the page can connect to the database.

Any help???

forms authentication problem



I am working with forms authentication, in web.config my code is

<authentication mode="Forms"  >
      <forms loginUrl="default.aspx" name=".ASPXFORMSAUTH" >

now, in my application If I hit any page directly without login, it redirects me to login page.

On successful login, I add a cookie to the response object.

But this is happening to overall application, what basically my requirement is to a web application, where anonymous users can visit also if user get sign in he can view some extra pages(secure pages)

Login problem with MySQL forms authentication


I can login in locally using the development server, but after uploading the files- including MySql.Data.dll and MySql.Web.dll - to my hosting server I can't. There is no errors, it just won't login. I can get records from my database, so I know it's not the connection.

Here is my Web.config

<?xml version="1.0"?>

    <clear />
    <add name="LocalMySqlServer" connectionString="server=db_server_name;database=tempdb;user id=user_name; password=my_password" providerName="MySql.Data.MySqlClient" />

    <customErrors mode="Off"/>

    <membership defaultProvider="MySQLMembershipProvider">
        <clear />
        <add connectionStringName="LocalMySqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Clear" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwo

SSRS 2008R2 Forms Authentication - service won't start: rshost ERROR: Error in managed ServiceMain,


I implemented a forms authentication solution based on the MSDN sample. However, when I attempt to start the reporting services service either via Services or the RS Config tool, I get the following error in the reporting services logfile:


rshost!rshost!b04!04/12/2011-22:37:21:: e ERROR: Error in managed ServiceMain, error=0x8007000b

I have not been able to find any information around this error. Please help!!

Forms Authentication in internet explorer problem


In my project I have used the FormsAutentication concept.

when user click on the logout button , again signing as different user and after succesfull login but still it is showing previous user details.

Every time I have to delete the cookies in internet explorer before login as different user. but in mozilla and chrome working fine.


Explained: Forms Authentication in ASP.NET

This module explains how forms authentication works in ASP.NET version 2.0. It explains how IIS and ASP.NET authentication work together, and it explains the role and operation of the FormsAuthenticationModule class.

Using Forms Authentication in ASP.NET - Part 1

Classic ASP developers often had to "roll their own" authentication scheme, however, in ASP.NET much of the grunt work has been taken out. This article outlines how things have changed and how FormsAuthentication can be used to secure a Web site with a minimal amount of code.

ASP.NET Forms Authentication - Part 1

Often, in legacy Web applications, users authenticate themselves via a Web form. This Web form submits the user's credentials to business logic that determines their authorization level. Upon successful authentication, the application then submits a ticket in the form of a cookie, albeit a hard cookie or session variable. This ticket contains anything from just a valid session identification access token to customized personalization values.

ASP.NET forms authentication with roles

.A timeout is specified in minutes. This is "time since last request" not the "time since login". If a login is indicated to be persistent (described later) this is ignored.
.A protection method is specified for the cookie.
Next I wanted to specify a folder to which access is restricted to people who have logged in. To do this I entered the following code in the web.config file (beneath

Forms Authentication in ASP.NET

In this tutorial you will learn about Forms Authentication in ASP.NET 2.0 - Forms Authentication class, Cookie Domain, Forms Cookies, The Login Control, Signin, Signout, Authenticate, Redirect, Login Status, Login Name and Login View Controls.

Problems with Forms Authentication in DD 4 site


Hello,  I am seeing a strange problem with Forms Authentication in my DD site.   A user logs into and can view/edit/delete data all day, but when they execute a Custom Filter against data (for example , a control DynamicData/Filters/CustomerLastNameSearch.ascx ) then the site auth fails, and redirects to the log in screen.

in web.config I have

     <authentication mode="Forms">
            <forms name=".Star" loginUrl="~/Login.aspx" protection="All" defaultUrl="~/Default.aspx" path="/" timeout="43200" cookieless="UseCookies" />     

Offhand, I am thinking two things : that DynamicData/Filters path requires some special handling for some reason, or the control extension ascx is causing auth to get confused.   Has anyone else experienced this or have any suggestions?  Thanks!

SSRS 2005 "Mixed" Authentication Mode


I have a web application where users can authenticate using either SiteMinder or Windows domain accounts.  This is actually configured as two separate virtual directories within IIS 6.  Both applications need to use the same instance of SSRS.  Is it possible to configure the SSRS web application so that if a user is authenticated by SiteMinder it impersonates a Windows account, but if they are already Windows-authenticated that account is used instead?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend