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 544163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:37:32+00:00 2026-05-13T10:37:32+00:00

I have a Web Forms app that uses forms authentication. I have a Crystal

  • 0

I have a Web Forms app that uses forms authentication. I have a Crystal Reports Server 2008 V1 server with InfoView .NET installed and working. I have some Enterprise accounts setup. EDIT: I should mention that my Web Forms app is on a different server from Crystal Reports Server.

I need to know how to log on to InfoView .NET programmatically on my custom ASP .NET page (C#) and then transfer the user to InfoView without them having to type in the logon information.

Something like this would be nice (C#):

string username = "blah";
string password = "asdf";

// create logon token for crystal reports server
// .. // this is the code I need
Response.Redirect(url);

I did find this question, which gets me partway there, but it doesn’t tell me how to pass the token to InfoView .NET. Some older docs also mention needing a cookie. I’ve also found other sites that show how to pass it to Java InfoView, but I need the .NET version.

  • 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-13T10:37:32+00:00Added an answer on May 13, 2026 at 10:37 am

    I used this post as reference for this solution.

    There are two pieces to this solution.

    • A page in custom web app to create a CMS session
      • Because my web app knows the logged on user.
    • A page on the server to bypass the InfoView login
      • Because my web app can’t set Session vars and Cookies for InfoView.

    Here are the steps:

    1. Setup the transfer page in your web app.
    2. Copy a needed DLL onto the server.
    3. Setup the bypass page on the server.

    Transfer Page

    1. You have to have the Crystal Reports Server SDK installed. It can be installed from the Crystal Reports Server CD (it’s called client tools or something similar).
    2. Add a project reference to CrystalDecisions.Enterprise.Framework. Set it to Copy Local = True.
    3. Create a page. Add a button to it. Add an OnClick event to the button.
    4. Page code-behind namespace reference:

      using CrystalDecisions.Enterprise;
      
    5. OnClick event code

      string username = "user";
      string password = "password";
      string server = "CMSNAME:6400";
      string auth_type = "secEnterprise";
      // logon
      SessionMgr session_mgr = new SessionMgr();
      EnterpriseSession session = session_mgr.Logon(username, password, server, auth_type);
      // get the serialized session
      string session_str = session.SerializedSession;
      // pass the session to our custom bypass page on the CRS
      string url = "http://reportserver.domain.com/InfoViewApp/transfer.aspx?session="
      url += HttpUtility.UrlEncode(session_str);
      Response.Redirect(url);
      

    Copy the DLL

    1. Build the project that contains the Transfer page.
    2. In the project folder, under bin/Debug, find the file: CrystalDecisions.Enterprise.Framework.dll and copy it to the server into: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\Web Content\InfoViewApp\InfoViewApp\bin. For Windows 2008 R2, “Program Files” in the path should be “Program Files (x86)” instead.

    Bypass Page

    1. Open Notepad on the server and paste the following into it.

      <%@ Page Language="C#" %>
      <script runat="server">
      private const string SESSION_PARAM = "session";
      private const string SESSION_KEY = "INFOVIEW_SESSION";
      private const string COOKIE_KEY = "InfoViewdotnetses";
      private const string LOGON_URL = "logon.aspx";
      protected void Page_Load(object sender, EventArgs e)
      {
          try
          {
              if (Request.QueryString[SESSION_PARAM] != null)
              {
                  string sessionStrRaw = Request.QueryString[SESSION_PARAM];
                  string sessionStr = System.Web.HttpUtility.UrlDecode(sessionStrRaw);
                  CrystalDecisions.Enterprise.SessionMgr sessionMgr = new CrystalDecisions.Enterprise.SessionMgr();
                  CrystalDecisions.Enterprise.EnterpriseSession entSession = sessionMgr.GetSession(sessionStr);
                  BusinessObjects.Enterprise.Infoview.Common.CrystalIdentity identity;
                  identity = new BusinessObjects.Enterprise.Infoview.Common.CrystalIdentity(entSession, System.Web.HttpContext.Current);
                  HttpContext.Current.Session.Add(SESSION_KEY, identity);
                  //Create the InfoViewdotnetses cookie which holds the SerializedSession
                  HttpCookie InfoViewdotnetses = new HttpCookie(COOKIE_KEY);
                  InfoViewdotnetses.Value = System.Web.HttpUtility.UrlEncode(sessionStrRaw);
                  InfoViewdotnetses.Path = @"/";
                  Response.Cookies.Add(InfoViewdotnetses);
              }
              Response.Redirect(LOGON_URL);
          }
          catch (Exception ex) { Response.Write(ex.ToString()); }
      }
      </script>
      
    2. Save the page as transfer.aspx into: C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\Web Content\InfoViewApp\InfoViewApp. (For Windows 2008 R2, see note above.)

    That’s it. That’s what worked for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 390k
  • Answers 390k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I solved this by implementing touchesBegan, touchesMoved and touchesEnded in… May 15, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer As has been mentioned, you are looking for reflection in… May 15, 2026 at 1:01 am
  • Editorial Team
    Editorial Team added an answer If I'm correct, what you're doing is you have the… May 15, 2026 at 1:01 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.