Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 633
  • Last Modified:

Login to Crystal Reports Info View Programatically from .NET

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
gautam_reddyc
Asked:
gautam_reddyc
1 Solution
 
gautam_reddycAuthor Commented:
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

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now