Solved

Login to Crystal Reports Info View Programatically from .NET

Posted on 2010-09-14
1
598 Views
Last Modified: 2013-11-15
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.
0
Comment
Question by:gautam_reddyc
1 Comment
 

Accepted Solution

by:
gautam_reddyc earned 0 total points
ID: 33670316
string username = "administrator";
            string password = "fhjjh";
            string server = "CMS1: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://Server/InfoViewApp/transfer.aspx?session=";

            url += HttpUtility.UrlEncode(session_str);
            Response.Redirect(url);

The above code gives transport communication error
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now