Login prompt on remote shared server-Crystal Report

HI
I am trying to deploy crystal reports 2008 on shared server. Before publishing on the remote server i published it on the localhost while connecting it to remote sql server 2008 database. The report is shown perfactly but when i publish it on shared server it prompt me for login credentials. My hosting provider is arvixe and it support crystal report. In my popup database field is empty and locked use name field show the correct user name and password field is empty. I read somewhere it may be due to version conflict between my version and version on server. Thanks in advance for help
I am using dataset to puch my data to report. Here is my source code
myRpt report = new myRpt();
            crConnectionInfo.ServerName = @"mysharedserver.com";
            crConnectionInfo.DatabaseName = "mydb";
            crConnectionInfo.UserID = "myuser";
            crConnectionInfo.Password = "mypass";
            System.Data.SqlClient.SqlConnection myConnection = new System.Data.SqlClient.SqlConnection();
            myConnection.ConnectionString = "Data Source=mysharedserver.com;Initial Catalog=mydb;Persist Security Info=True;User ID=myuser;Password=mypass";
            System.Data.SqlClient.SqlCommand MyCommand = new System.Data.SqlClient.SqlCommand("dbo.spspMyStoreProc");
            MyCommand.Connection = myConnection;
            MyCommand.Parameters.Add("@PositionID", SqlDbType.Int).Value = (cmbPositions.SelectedValue == "" ? 0 : Convert.ToInt32(cmbPositions.SelectedValue));
            MyCommand.CommandType = System.Data.CommandType.StoredProcedure;
            System.Data.SqlClient.SqlDataAdapter MyDA = new System.Data.SqlClient.SqlDataAdapter();
            MyDA.SelectCommand = MyCommand;
            myDS _DS = new myDS();
            MyDA.Fill(_DS, "dbo.spspMyStoreProc");           
            report.SetDataSource(_DS);
            crDatabase = report.Database;
            crTables = crDatabase.Tables;
            for (int i = 0; i < crTables.Count; i++)
                crTable = crTables<i>;
                crTableLogOnInfo = crTable.LogOnInfo;
                crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
                crTable.ApplyLogOnInfo(crTableLogOnInfo);
            report.SetParameterValue(0, "Param 1");
            report.SetParameterValue(1, "Param 2");
            report.SetParameterValue(2, "Param 3");
            report.SetParameterValue(3, (cmbPositions.SelectedValue == "" ? 0 : Convert.ToInt32(cmbPositions.SelectedValue)));
            CrystalReportViewer1.ReportSource = report;

If you are using a dataset, why are you using the databse login APIs? E.g.;
crDatabase = report.Database;
            crTables = crDatabase.Tables;
            for (int i = 0; i < crTables.Count; i++)
                crTable = crTables<i>;
                crTableLogOnInfo = crTable.LogOnInfo;
                crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
                crTable.ApplyLogOnInfo(crTableLogOnInfo);
Either use report.SetDataSource(_DS); which will make the report consume the dataset, or use the above code which will make the report connect to the database directly.
Do not use both though.
Ludek

Similar Messages

  • Missing DataBase Login information for deployed VS2008 w/Crystal Report

    I'm creating a Windows Form application using VS2008 Pro and the basic Crystal Reports (included).</br></br>
    I've successfully added a crystalreportviewer control and a crystal report (.rpt) to my form. I've written the following code in the code behind to programmatically load/bind the report to the viewer. Everything works fine on my development machine (or any machine that has Visual Studio installed). Where I'm encountering problems is when I deploy the application to a machine that does not have VS installed (I have downloaded and installed the "Crystal Reports Basic for Visual Studio 2008 Redistributable Package" for the appropriate processor type on this non development machine) that I'm getting an error . It prompts for "DataBase Login". The ServerName, LoginID and Password are all there, but the "DataBase" field is empty and disable for user input.</br></br>
    Why is the DataBase information missing? How can I solve this problem?</br></br>
    (On a side note, I vaguely remember a property for enabling/disabling the prompting of the database login. I can't remember where this was again to double check if that is the culprit. But I'm pretty sure that I did mark it as to not prompt, since it's supplied in the code behind. Plus it doesn't prompt on the development machines. Only on the non-development machines).</br></br>
    Any help is greatly appreciated! Thanks.</br></br>
    The code executed in the PageLoad event of the form.</br></br>
    this.crystalReportViewer1.RefreshReport();</br>
                ReportDocument reportDocument = new ReportDocument();</br></br>
                #region Load Parameters</br></br>
                ParameterFields paramFields = new ParameterFields();</br></br>
                for (int i = 0; i < _parameterName.Length; i++)</br>
                {</br>
                    ParameterField paramField = new ParameterField();</br>
                    paramField.ParameterFieldName = _parameterName<i>;</br>
                    ParameterDiscreteValue discreteVal = new ParameterDiscreteValue();</br>
                    discreteVal.Value = _parameterValues<i>;</br>
                    paramField.CurrentValues.Add(discreteVal);</br>
                    paramFields.Add(paramField);</br>
                }</br></br>
                crystalReportViewer1.ParameterFieldInfo = paramFields;</br></br>
                #endregion</br></br>
                #region Load Report</br></br>
                string reportUrl = "";</br></br>
                string exePath = Application.ExecutablePath.ToString();</br>
                exePath = exePath.Remove(exePath.Length - 18, 18);</br>
                exePath += _reportName + ".rpt";</br>
                reportUrl = exePath;</br>
                reportDocument.Load(reportUrl);</br>
               #endregion</br></br>
               reportDocument.SetDatabaseLogon("myUserName", "myPassword", "myServer", "myDataBase");</br></br>
                crystalReportViewer1.ReportSource = reportDocument;
    </br></br>
    Edited by: mtech8 on Jan 9, 2010 3:03 PM. Corrected formatting issues to make post readable.

    HI. Ludek,
    Thanks for the tips. I tried both, but the problem presists.
    On a side note, I did get my hands on yet another "non-development machine". This one ran with Window's Vista appeared to work (even with my original code).
    The "non-development machines" that I've tested on are Windows 7 and Window XP machines. On these machines, when I commented out the reportDocument.SetDatabaseLogon line, when I try to load the report, it still prompts for the Database Logon information, however, it also has the "Database name" empty and disabled.
    Since it worked on a non-development machine with Win Vista. I don't think there is a problem with references or the Crystal runtime packages.
    As far as permission for the report to contact the database, I'm guessing there isn't a problem there either because the application does successfully connect to the database.
    I'm connecting to a SQL2005 database and using the SQL Native connection.
    On a side note: as for the enabling prompting, I just remembered that it was an option available when using Crystal Reports with a web project. Thus I couldn't find it here with a Window's Form project.

  • How to supress prompt of database parameter in Crystal report schedule

    Hi,
    We are using Crystal Reports 2008. In a particular crystal report generated from some SAP WB query, has a parameter (prompt) on month. Now we need to schedule it for monthly execution. But we are still unable to manage the prompt for month automatically. We don,t have API license, so we can not use VBA .Net or Java programming.
    Can we manage this database level prompt using Crystal Report formulas. Please suggest how can we manage this prompt so that it can be executed automatically according to schedule.
    Thanks & Regards,
    Avijit

    Hi,
    Thanks for your reply.
    But I know the logic that I need to assign the current month date value to the parameter supplied by BW query in the Crystal Report formula. And I tried to write a new formula using "BeforeReadingRecords" under Formula field. But this formula is not assigning any  to the parameter and I am with no success.
    Can you please mention how and where shoul I write the formula. Looking forward for you answer.
    Regards,
    Avijit

  • Console login trouble with Crystal Reports Server XI

    I installed Crystal Reports Server XI on a new box (replacing old), then applied SP1, and then SP2 bringing it up to the same level as the old box - Version Name: BOXIWIN_SP2 Build Number: 11.0.101.8004.
    However, when I restarted the server and logged into Windows, I received the error "CRSXI_MLB_Autorun.exe encountered a problem and needed to close." Although, all the services are running in Central Configuration Manager, I am unable to login to the Central Management Console with the default "Administrator" account (the screen just blanks the User Name: Administrator" field when I click "Log On".
    The new server is running Win2003 R2 Enterprise Edition SP2. Old server is running Win2003 Standard Edition SP2.  I am using the same install media as was used on the old server, though installation on the old server was done before W2K3 SP2 was installed. Could it be W2K3 SP2, or perhaps the use or R2 or Enterprise Edition?  Any thoughts on how to fix this so I can login to CMC?
    Regards,
    Joe

    XIR1 used to have issues with Microsoft DEP, I don't recall exactly but you can set DEP to windows services only from my computer > properties > data execution prevention.
    Also when logging in try changing the URL to (local host on the server, the IP address, or the FQDN) see if that helps. When there is no error the problem is likely not the CMS but could be in the web/app.
    I don't think anything that was installed should be starting a file called "CRSXI_MLB_Autorun.exe" Could that have gotten added to the windows run registry key or startup group by accident?
    Also if you login to a client tool like crystal reports, business views with administrator what error do you receive?
    Regards,
    Tim

  • Drop down boxes ok in Crystal Reports but not ok in Crystal Reports Server

    I have the following problem with "dynamic dropdowns"
    Initially, I have a Crystal Report (.rpt).  It has two dynamic drop downs. They work
    in both Crystal Reports Designer (preview)  and Crystal Reports Server (right-click-View).
    The first drop down is the result of a rather complex sql query. The second drop down
    is a child of the first.
    I make a small change to the sql "WHERE" clause using the Crystal Reports Designer. It works fine in preview.
    I save (Enterprise mode) to Crystal Server. I use Business View Manager to configure
    the _DC_n object.  (I did notice that the .._DC_n gets incremented by one.)
    The _DF object seems to know about the updated sql so I do not have change it.
    However, when I go to back to Crystal Reports Server, and right-click-View, the
    "dynamic dropdown" is not working properly.  I can not make sense
    of what has been retrieved.
    Please tell me what is most likely to have gone wrong here?  The Business View Manager
    seemed to knew about the sql change. But Crystal Reports Server has
    not responded to the change in the same way as Crystal Reports Designer.
                       ...thank you, Stan

    When you publish a report to Crystal Server, the dynamic prompts are no longer handled in the report itself.  Instead depending on how they're published, they either go away or they're published to the "repository" and managed through the "Business View Manager" (BVM), which is available as part of the Client Tools install.
    To get the dynamic prompt into the repository, you have to check the "Enable Repository Refresh" checkbox at the bottom of the "Save As" screen after you log in to CRS.  However, doing it this way is NOT best practice, especially if you're using the query from the report to provide the data for the prompt.  If you do this for all of your reports, you get a LOT of bloat in the repository objects and it makes the job of migrating from one version of CRS to another MUCH more difficult!
    What I've done in the past to get a simple "sample" prompt published is create a report that just contains the data that I want to have in the dynamic parameter using a single table - this is usually what I call a "lookup" table that has a "code" field and a "description" or "name" field.  I then create a dynamic parameter in that report that just pulls the data from the single table.  I'll publish the report to my favorites with the Repository Refresh enabled.
    I then run the BVM and look for the following objects (default location is under "Cascading Dynamic Prompts":
    <prompt name>_DC - This is the Data Connection for the prompt.  Edit this, enter the password, and set it to "Never Prompt" for the password.  NOTE:  This DC can be reused by multiple prompts.  If you continue to add prompts through publishing Crystal Reports with prompts, you will get MANY of  these that all point to the same database!
    <prompt name>_DF - This is the Data Foundation for the prompts.  When you create a new one, you need to select an existing DC and then either one or more tables or write a command to provide the data for your prompt.  It works much like the Database Explorer in Crystal.  The one that was just saved has all of the information required for the prompt.
    <prompt name>_BE - This is the Business Element.  When you create one, you have to select and existing DF and one or more fields.  You can also create a filter on the data.  This is used to generate the SQL that will be run to provide the data for the prompt.
    <prompt name>_ BV - This is the Business View.  When you create one, you have to select the Business Element.  I'm not sure of the exact purpose of this, but you have to have one in order to set up the "List of Values".
    <prompt name> - This is the List of Values (LOV).  This defines what fields are available for the prompt itself.
    You can create folders to organize these objects so that its easier to maintain.
    To use a LOV that you've defined in BVM to feed data to new dynamic prompts, do the following:
    1.  Connect to CRS from Crystal.
    2.  Create/Edit your prompt.
    3.  Set the prompt to be dynamic.
    4.  Under "Choose a Data Source", select "Existing" and select the LOV from the drop-down list.
    5.  Update the properties in the parameter.
    When viewing or scheduling a report, the dynamic prompts will run through the Crystal Reports 2013 Report Application Server in CRS (it will be named differently if you're not on CRS 2013, but will have "Report Application Server" in the name.)
    -Dell

  • Optional Prompt for Date type parameter in Crystal Report.

    Hi Every One,
    I have a date type parameter in crystal report.When I am convert it to optional prompt it is showing following message.
    But the Type field is gray out when I was selecting list of values Dynamic.
    Please suggest.
    Thanks and Regards
    DEV

    Hi,
    Please check SAP note:
    1710595 - CR_Defining "Optional Prompt" as True for SAP Crystal
    Reports Does Not Work
    Thanks & Regards,
    Nagarajan

  • Crystal Report Server Upgrade XI R2 SP2 to XI R2 SP5, setTableLocation fail

    I upgraded Crystal Report Server Crystal Reports Server (Enterprise) XI R2 SP2 to Crystal Reports Server (Enterprise) XI R2 SP5.
    Before Upgrade, Reports were generated properly, but after that, I got the following Error.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: The table 'AP_GL_R216' could not be found.     
    Error in File C:\WINDOWS\TEMP\{325E2C60-E2FE-4E1B-9291-E607283AE07A}.rpt:     
    The table could not be found.---- Error code:-2147482939 Error code name:failed     
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.cd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.z.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ak.if(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ad.int(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.bj.for(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.u.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.u.if(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.if(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(Unknown Source)                                                  
    at com.iflex.fcr.bh.reports.FCRJReporter.setReportDB(FCRJReporter.java:945)
    FCRJReporter.setReportDB Code is as follows.
    Table oldTable = (Table)tables.getTable(x);
                             Table newTable = (Table)tables.getTable(x);
                             //create a new ConnectionInfo object
                             ConnectionInfo conInfo = new ConnectionInfo();
                             conInfo.setKind( ConnectionInfoKind.from_int(5) );
                             conInfo.setUserName(db_username);
                             conInfo.setPassword(decrPassword);
                             //create a Property Bag for the Connection Info attributes
                             PropertyBag pBag = new PropertyBag();
                             //          set the property bag values
                             pBag.putStringValue("QE_ServerDescription",serverName);
                             pBag.putStringValue("QE_SQLDB", "true");
                             pBag.putStringValue("QE_DatabaseType", "ODBC (RDO)");
                             pBag.putStringValue("QE_DatabaseName", "");
                             pBag.putStringValue("SSO Enabled", "false");
                             pBag.putStringValue("Database DLL", "crdb_odbc.dll");
                             //          create a property bag for the 'QE_LogonProperties' key
                             PropertyBag logonProps = new PropertyBag();
                             //          set the properties for the logonProps PropertyBag
                             logonProps.putStringValue("DSN", databaseName);
                             logonProps.putStringValue("UseDSNProperties", "false");
                             //          add the logonProps PropertyBag to pBag
                             pBag.put("QE_LogonProperties", logonProps);
                             //          set pBag into the conInfo attributes
                             conInfo.setAttributes(pBag);
                             newTable.setName(oldTable.getName());
                             newTable.setAlias(oldTable.getAlias());
                             newTable.setQualifiedName(db_username.toUpperCase()+"."+oldTable.getName());
                             newTable.setConnectionInfo(conInfo);
                             System.out.println("Start TableLocation" + newTable.getQualifiedName());
                             report.getDatabaseController().setTableLocation(oldTable, newTable);
    In last line this is failing to Execute, with SP2 there has been no problem.
    Thanks,
    Jitendra
    Edited by: JitendraS on May 26, 2010 3:10 AM
    Edited by: JitendraS on May 26, 2010 3:10 AM
    Edited by: JitendraS on May 26, 2010 3:15 AM

    I found two documents on SAP website for Supported Platforms of both CR XI R2 SP2 and CR XI R2 SP5.
    CR XI R2 SP2u2013
    Link:  http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/00225757-ab5c-2c10-c1a8-fb9f9f0f4ac2?quicklink=index&overridelayout=true
    Page 7
    Supported Application Servers>> Details
    Oracle Application Server 10gR3 (10.1.3)
    JDK 1.5.0_xx
    CR XI R2 SP5u2013
    Link:  http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10ca2a2b-e478-2c10-53bf-9534ee116522?quicklink=index&overridelayout=true
          Page 5
    Supported Application Servers
    Oracle OAS 10G Rel.2 (10.1.2)
    JDK 1.4.2_xx
    why Supported Application Server Version downgraded in SP5?

  • Occasional Database Login prompts

    Post Author: Jon Webb
    CA Forum: .NET
    I'm have a problem with occasional logon info prompts when I refresh a report. I'm using Crystal Report .NET XIR2 with SQL Server Express. Normally, my reports work fine. The server and database are set dynamically at runtime. The code I use for this is:     Protected Sub SetDatabaseConnection(ByVal rd As ReportDocument)        Dim tlois As TableLogOnInfos = Me.CrystalReportViewer.LogOnInfo        Dim ci As New ConnectionInfo        ci.DatabaseName = DefaultDatabase        ci.IntegratedSecurity = False        ci.Password = Password        ci.UserID = User        ci.ServerName = DefaultInstance        For Each tloi As TableLogOnInfo In tlois            tloi.ConnectionInfo = ci        Next        If rd Is Nothing Then rd = Me.CrystalReportViewer.ReportSource        For Each table As Table In rd.Database.Tables            table.LogOnInfo.ConnectionInfo = ci            table.ApplyLogOnInfo(table.LogOnInfo)        Next        For Each subreport As ReportDocument In rd.Subreports            For Each table As Table In subreport.Database.Tables                table.LogOnInfo.ConnectionInfo = ci                table.ApplyLogOnInfo(table.LogOnInfo)            Next        Next    End SubSometimes, however, I get Database Login prompts when I refresh the reports. This happens with some reports and not others, even though I call the same method above for all reports. The Database Login prompt has the right server name, user, and password, but the database name is blank.The behavior varies over time.  Yesterday, for example, one of my reports was showing this behavior, and another wasn't. Today, without any code changes, I'm getting it in two reports. But a third report still works. All three reports use the same command for accessing the database data, and have the same subreport structure.Also, the behavior is client-dependent. I can run the report on one PC (using the same SQL Server) and the report works fine. On another client, I consistently get the login prompt with two reports but not another. I believe the problem only occurs where the server is remote. We've never seen it with a local SQL Server. All this leads me to think that something is happening behind the scenes with Crystal Reports. Perhaps the logon info is being cached somewhere and not reinitialized. I've tried rebooting my client machine and restarting the SQL Server to no avail. Does anyone have an idea what is going on here? This is a serious problem for some of our customers. Jon WebbPEP Systems, Inc.

    Post Author: Jon Webb
    CA Forum: .NET
    I got some more information on the login prompt. I somehow figured out how to turn on logging in Crystal Reports and got this error when the login prompt happened: <Log>  <Message></Message>  <File>.\crreportsource.cpp</File>  <Line>303</Line>  <Time>2008/01/29 13:43:26.184</Time>  <ThreadID>01216</ThreadID>  <DetailMessage><!&#91;CDATA&#91;Analysis Server: 0x8004100FDatabase logon failed.\servers\ras\dtsagent\reporthandler.cpp (9557)Analysis Server: 0x8004100F&#93;&#93;></DetailMessage></Log><Log>  <Message></Message>  <File>.\crreportsource.cpp</File>  <Line>426</Line>  <Time>2008/01/29 13:43:26.294</Time>  <ThreadID>01216</ThreadID>  <DetailMessage><!&#91;CDATA&#91;.\crreportsource.cpp (420)RptControllers.dll: 0x8004100FDatabase logon failed.Analysis Server: 0x8004100FDatabase logon failed.\servers\ras\dtsagent\reporthandler.cpp (9557)Analysis Server: 0x8004100F&#93;&#93;></DetailMessage></Log>Does that help? Anyone?Jon WebbPEP Systems, Inc.

  • Crystal Report Viewer integration with Sharepoint 2010

    We had a requirement in our project to view crystal report off an hyper link embedded into sharepoint web part developed using ASP .NET. The report accepted few parameters from the sharepoint page and passed those on to the SQL server to retrive data and
    display the data in the report. The challenge was to open the report in the web browser.
    The first difficulty was to find the right control to use, the report viewer tool that comes with Visual Studio 2010 is not the right one to use to view Crystal reports, I realised this after spending half a day trying to figure out why wouldn't the report
    load. I then downloaded the Crystal Report Viewer for VS 2010 Standard from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp. After you install this, you get the crystal report viewer in your toolbar. All you have to do is drag and drop it on
    to the web part and configure it to use your report. If any one needs help with this let me know I will show how to do that.
    So far so good. The biggest challenge was to deploy this on to the production server which took better part of 3 days to figure out how its done. If you deploy the WSP file as it is expecting that the crystal DLLs would be embedded in it then be ready to
    expect a rude shock because it isn't. Here are the steps -
    1. Deploy the WSP to the sharepoint server
    2. Install the crystal dlls used in the project (CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll, CrystalDecisions.Shared.dll, CrystalDecisions.Web.dll) into the GAC using GacUtil command
    3. Add following entries to Web.Config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.congif)
        <SafeControl Assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.CrystalReports.Engine" TypeName="*" Safe="True" SafeAgainstScript="False"
    />
          <SafeControl Assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.ReportSource" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Shared" TypeName="*" Safe="True" SafeAgainstScript="False" />
          <SafeControl Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TypeName="*" Safe="True" SafeAgainstScript="False" />
    4. Install crystal redistributable package which can be downloaded from http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp (
    SAP Crystal Reports runtime engine for .NET Framework 4 (64-bit))
    5. Copy aspnet_client folder from C:\>inetpub\wwwroot and overwrite it on C:\>inetpub\wwwroot\wss\VirtualDirectories\80
    And we are done. Fingers crossed it should all work.
    Prasad Matkar MCP, MCTS

    Hi Mahesh,
    How are you loading the report in your webpart? This is what I have done. I have tried to explain what I am doing in the program comments. Hope this helps. Good luck.
                    SPSite mySite = new SPSite(SPContext.Current.Site.Url.ToString());
                    SPWeb thisSite = mySite.OpenWeb();
                    // Writing to event log after every step in debug mode so that you get to know if there was a failure what step the failure occured after.
                    EventLog.WriteEntry("Reports", "Inside PAge Load ", EventLogEntryType.Error);
                    SPFolder folder = thisSite.GetFolder("Reports");
                    if (folder.Exists)
                        // get collection of Crystal Reports rpt files in the document library
                        SPFileCollection files = folder.Files;
                        // open the rpt file and get the contents
                        SPFile srcfile = files[reportToLaunch];
                        byte[] content = srcfile.OpenBinary();
                        // make a temporary folder
                        DirectoryInfo dir2 = new DirectoryInfo("~/temp");
                        if (!dir2.Exists)
                            dir2.Create();
                        if (File.Exists("~/temp/temp.rpt"))
                            File.Delete("~/temp/temp.rpt");
                        // write the report definition to a temporary file
                        // EventLog.WriteEntry("Reports", "Before Creating temp report ", EventLogEntryType.Error);
                        //EventLog.WriteEntry("Reports", "Before Create ", EventLogEntryType.Error);
                        BinaryWriter bw =
                          new BinaryWriter(File.Open("~/temp/temp.rpt", FileMode.Create));
                        bw.Write(content);
                        bw.Close();
                      //  EventLog.WriteEntry("Reports", "After Create ", EventLogEntryType.Error);
                        // set up the crystal report
                        ReportDocument reportDoc = new ReportDocument();
                        reportDoc.Load("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after report load ", EventLogEntryType.Error);
                        ConnectionInfo connection = new ConnectionInfo();
                        connection.ServerName = "SQLServerName";
                        connection.DatabaseName = "SQLDatabase";
                        connection.UserID = "sqluser";
                        connection.Password = "sqlpassword";
                        TableLogOnInfo logon = new TableLogOnInfo();
                        logon.ConnectionInfo = connection;
                        reportDoc.SetParameterValue("@Parameter1", parameter1);
                        reportDoc.SetParameterValue("@Parameter2", parameter2);                                               
                        EventLog.WriteEntry("Reports", "after assigning parameters ", EventLogEntryType.Error);
                       foreach (CrystalDecisions.CrystalReports.Engine.Table t in reportDoc.Database.Tables)
                            t.ApplyLogOnInfo(logon);
                        EventLog.WriteEntry("Reports", "after applying login info ", EventLogEntryType.Error);
                        // and the Crystal report Viewer                                    
                        CrystalReportViewer1.ReportSource = reportDoc;
                        EventLog.WriteEntry("Reports", "Before delete ", EventLogEntryType.Error);
                        // clean up
                        File.Delete("~/temp/temp.rpt");
                        EventLog.WriteEntry("Reports", "after delete ", EventLogEntryType.Error);
    Prasad Matkar MCP, MCTS

  • Crystal report add-on error

    Dear all,
    When we login to SAP client, we got an error message
    Action failed. Login failed for user 'sa'
    External Connection to the database failed...
    Do we have to have ODBC connection setup by 'Connect to SQL Server to obtain...'?
    When we use 'with integrated windows authentication', the ODBC connection is good. And we can login to SAP but cannot use Crystal report.
    Thanks.
    Regards,
    Yuka
    Edited by: Jie Jin on Oct 22, 2009 2:27 AM

    Hi All.
    I'm having the exact same problem. We have about 15 client pc's and all but one is working fine. They are all running Vista Business with Business One 2007 SP01 PL05 and are all brand new systems.
    This one is giving an error when Business One starts saying 'Login failed for user 'sa'. Then another popup box stating: "External Connection to the database failed. SAP Crystal addon may not function properly. Please re-run the account setup with super user login."
    If I then re-run the account setup and enter the 'sa' password I get an error: "Action Failed".
    I've tried making sure that I enter the password one character at a time and moving to the last character before entering the next. I've also tried pasting in the password. All gives the same error.
    I've not been able to find anything on this pc that is different from the others.
    Any ideas please?
    Best wishes.
    Edu

  • Not able to see the crystal reports XI version in the IE 7 and IE 8

    Hi Team,
    I am using web based application developed in VB,ASP,SQL SERVER,Crystal Reports(XI). I am able to see the Crystal Reports in IE 6. But i am not able to see the reports in IE 7 and IE 8. While clicking on the reports button it is showing the  red X image top left cornor.
    I am using CrystalActiveX viewer11 version for viewing the reports.
    In IE 6,if the client using fiirst time for vieiwing the reports,it will ask the Activexviewer control prompt and says ok,it will display the reports.
    Thanks and Regards
    Eshwar

    Thanks your advise.But we are using following crystal reports (XI) version and we don't have CRXI with R1 and R2.
    CurrentVersion:11.0.0.895 ( CR Developer and Product Type:Full)
    Crystal Reportviewer11 configured in the IIS which is version (5.0). and configured the virtual folder to C:\Program Files\Common Files\Business Objects\3.0\crystalreportviewers11\.
    Our web application code also configured in the IIS at same level.
    When the user wants to see the reports through the application,it will ask the Plugin of Crystal Report Viewer and user will download this plugin and it will save in the IE plug ins.It will ask only first time viewing the reports for the next onwards it will not ask or prompt of the Activex control.
    So please suggest me, is there any upgrade version of this Crystal Reportviewer11 needs to be installed or any browser setting need to be configured for IE 7 and IE 8.
    waiting for your reply.
    Regards
    Eshwar

  • Error Crystal report When viewed through SAP B1

    Dear Experts
    SAP B1 8.8 PL 16,SQL 2008
    I am facing error (Unable to retrive data from database)(Vendor code-156) while accessing Crystal report from client machine throgh SAP B1.I have imported Crystal report through manage layout.The crystal reported is in shared in SAP server B1 SHR folder.I am able to access data from crystal report when viewed otherwise.When accessed crsytal report through SAP b1 on SAP Server crystal report is working fine.
    Thanks & Regrds
    Saurabh Lamba

    Hi Saurabh Lamba,
    Go To Administration / System Initialisation / Authorisation / General Authorisation & Set Authorisation for user.
    If you have to Set Authorisation for user allready then follow this steps.
    1.Restore Database as Test Company.
    2.Export Report From Live Company.
    3.Import this Report in Test Company as different name.
    4.Export Report from Test Company have you Imported as deifferent name.
    5.Again Import this Report in Live company as different name
    I don't know what's the logic behind it.
    Thanks,
    Srujal Patel

  • No images when deploying Crystal Reports for Visual Studio 2005

    Post Author: wcl
    CA Forum: Publishing
    Developed a ASP.Net web site that uses Crystal Reports for Visual Studio 2005, everything works fine locally.
    Following instructions from  http://support.businessobjects.com/downloads/merge_modules.asp#07 a deployment package has been created using CrystalDecisionsRedist2005_x86 merge module and the website has been installed.
    When it is deployed to a remote development server the report images are not displayed.  The report navigation works, it is the images that are not found when the report is displayed.
    Should the vs2005 key be entered some where on the remote server?

    Post Author: wcl
    CA Forum: Publishing
    Thnakyou very much for your quick reply.
    The directory has not been created by the merge module,  which folder should it be created in and what contetants should it have?
    <-edit>
    an example of an image it can not find is "/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/images/toolbar/upd.gif",  so does the folder '/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3' need setting up?
    </edit>

  • Crystal Report ADO Connection Error

    I have a Crystal Reports created against an MS SQL Server DB using an ADO Connection (crdb_ado.dll). I am using a hardcoded user ID and password for logging into SQL Server, everything works fine when I log from Crystal Reports client, I am able to connect to SQL Server and refresh the report.
    When I publish to BOE and access from Infoview or CMC I get an error "[Failed to open the connection.
    xxxx report Details:  [Database Vendor Code: 17 ]]". I use the same account for SQL server under database config for Crystal report within CMC.
    Please see release info below:
    BOE XI 3.1 FP 3.1 (Windows 2008 server)
    Crystal Reports 2008 FP 3.1
    I have checked the  ADO dll version, size etc. on both client and BOE XI server and it looks the same.
    Are there any additional configuration required for this connection to work from BOE XI?
    I enabled log on BOE side and could not get anymore information other than the above message. We also tried with the SQL Server SA account to make sure this is not an access issue.
    Thanks.

    Hi Don,
    Please see answers below:
    >
    > What happens if you set the logon over ride properties for each instance?
    >
    I select the option "Use same database logon as when report is run" and get the error mentioned in the first message.
    > Also need to know what version of SQL Server you are using and if you are using the Native Client or the OLE DB for SQL Server driver?
    >
    We are using SQL Server 2008. I have tried with the OLEDB for SQL driver and with the Native client. In both the cases I am getting the same error. I also tried to change the OLEDB.sbo file as mentioned in note 1204488.
    Thanks.

  • Releasing Licenses Crystal Reports 2008

    We are considering to migrate our infrastructure  to Crystal Reports Server 2008. We have setup a test server with 5 CAL, and in order to make our reports work here,  we had to modify our code slightly to use a different viewer (Interactive viewer is not available anymore), we had also  to modify a bit our web.xml to configure a new servlet.
    In our current infrastructure (Crystal Reports Enterprise 10)  once we run a report via our Intranet Web application  by invoking it through the Java APIs and displaying it with the crystal viewers,  the licenses seem to be released even if the user still have the report in their browser's screen.
    With the new Crystal reports server (Crystal Reports Server 2008) this is not happening and the licenses are released only when the timeout happens.
    This doesnu2019t really work for us and we would like to reproduce the same behavior from the old version. Is there any server configuration or modification of the code that would allow me to achieve our desired behaviour on the new environment?
    Thanks!

    You would then be using unmanaged RAS, which, since Version XI (11.0) silently logs on to the system as the guest account and will use up a license.  You do not have direct access to the session that was created, and do not have a way to log off.

Maybe you are looking for

  • Is there a way to create a web or simlar link to a local database only?

    So my situation is this I have an access 2007 database that stores the names of customers and their usual orders. I want to create a link to this database somehow so that anyone on the network can access something like a search page that will be stor

  • DNS Issues

    I goofed up my DNS last Friday (over-confident novice) and was able to get it working again with the help of the AppleCare guys, but am now having an issue: When anyone in our organization sends mail to particular individuals (those hosted with 1and1

  • I can't hear when video chatting, whats the deal?

    I live far away from my friend, and we video chat. Sometimes I can't hear her, but she always hears me! Everything says that audio is fine, and connection is great but I still can't hear her. WHATS THE DEAL WITH THAT?

  • Ship to address in iStore

    Hi Does anyone know if we can make 'COUNTY' field required when customer creates ship to address on the fly. This is just for US only as county concept is more appropriate for US. Please respond Thanks

  • Is there an easier way to convert files from Windows Media Player to iTunes

    I have many gb's of music in my Windows Media Player...now that I have an ipod I want to move the music over. Do I really have to do this one file at a time or is there away to move over whole albums at once? Is there a way to transfer the entire lib