Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4059304
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:11:28+00:00 2026-05-20T15:11:28+00:00

I am trying to implement some custom security code into SSRS 2008 (not R2)

  • 0

I am trying to implement some custom security code into SSRS 2008 (not R2) to allow for Forms Authentication instead of Windows Authentication. I have based my solution on the Microsoft sample code and have managed to get most of it working absolutely fine. The only area where I’m having problems is when logging onto the actual Report Manager URL.

Issue 1
When using the URL http://localhost/Reports_MSSQL2008/ it doesn’t pick up the UILogon.aspx page that i’ve copied into the /Pages folder (as instructed by the Microsoft example). I have amended the web.config in the ReportManager folder to contain the following:

<authentication mode="Forms">
  <forms loginUrl="UILogon.aspx" 
         name="sqlAuthCookie" 
         timeout="60" 
         slidingExpiration="true" 
         path="/" />
</authentication>

I have tried changing the path to match exact path of the aspx file, but still no joy !!

Issue 2
Because of the issue above, I tried just getting into UILogon and ReportManager via the URL, http://localhost/Reports_MSSQL2008/Pages/UILogon.aspx. This works in that I get to step into my custom code (UILogon.aspx.cs and IAuthorisation / IAuthentication code) and I can see it doing the following:

  • authenticating / authorising the user
  • creating the cookie
  • storing the cookie (sqlAuthCookie) on the response / request cookie container
  • performing the response.redirect to the /Folder.aspx page

Problem is, when the response.redirect comes back into the GetUserInfo() method, the HttpContext.Current.User is null, and there is no cookie anymore. Because of this, a null IIdentity is returned (cant set it to anything else !!) and SSRS throws the error…

Microsoft.ReportingServices.Diagnostics.Utilities.AuthenticationExtensionException:
The Authentication Extension threw an unexpected exception or returned a value that is not valid: identity==null.

For info – when I launch Report Builder / Visual Studio bi proj / the Web Service URL it does exactly what I require and works fine……it’s just the Report Manager thats causing the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:11:29+00:00Added an answer on May 20, 2026 at 3:11 pm

    I have now resolved it….I had to add the following to the rsreportserver.config:

    <UI>
        <CustomAuthenticationUI>
            <loginUrl>/Pages/UILogon.aspx</loginUrl>
        <UseSSL>false</UseSSL> 
        </CustomAuthenticationUI>
        <ReportServerUrl></ReportServerUrl>
        <PageCountMode>Estimate</PageCountMode>
    </UI>
    

    and only have the following in the web.config:

    <authentication mode="Forms" />
    

    Also, to safe-guard against a null Identity being passed back from GetUserInfo(), I coded the following:

    public void GetUserInfo(out IIdentity userIdentity, out IntPtr userId)
    {
        //default the userIdentity
        userIdentity = new GenericIdentity(WindowsIdentity.GetCurrent().Name);
    
        // If the current user identity is not null,
        // set the userIdentity parameter to that of the current user 
        if (HttpContext.Current != null
              && HttpContext.Current.User != null)
        {
            userIdentity = HttpContext.Current.User.Identity;
        }
    
        // initialize a pointer to the current user id to zero
        userId = IntPtr.Zero;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to implement unit testing and currently have some code that does
I'm trying to implement some retry logic if there is an exception in my
I'm trying to implement some basic linear algebra operations and one of these operations
I'm trying to implement the WMD editor used on StackOverflow to create some basic
Here are the specs that I'm trying to implement in a nutshell: 1) Some
I am currently trying to implement a Custom Configuration Section in a project I
I've been trying to implement a custom ORM for our project and am interested
I'm trying to implement a custom MapView. Inside my MapActivity (named mainmap) I have
I am trying to implement paging across ajax calls. The page should not refresh
Any idea how I express 'implements' in UML? I'm trying to write some actionscript

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.