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.
I used this post as reference for this solution.
There are two pieces to this solution.
Here are the steps:
Transfer Page
Page code-behind namespace reference:
OnClick event code
Copy the DLL
Bypass Page
Open Notepad on the server and paste the following into it.
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.