Skip to Content
author's profile photo Former Member
Former Member

Database Logon Failed while export to pdf. Tried all the options without success.

Hi there,

This has been questioned and answered but for me nothing worked.

I've been trying to export the crystal report to pdf. It fails on Production server.

I've tried all the possible solutions.

Production Server details :-

Windows Server 2008 R2/64-bit Operating System.

IIS Version - 7

I've already tried installing SQL Native Client 10 and 11 on production server and also tried providing DB Log in details at runtime. Both didn't help.

Please help. I've been trying this since days.

My Code :-

Microsoft.Practices.EnterpriseLibrary.Data.Database db = null;

DataSet DS = null;

db = DatabaseFactory.CreateDatabase("Constring");

//Constring = <add name="Constring" connectionString="Database=MYDB;Server=ProdServer;Integrated Security=false;uid=xxx;Password=yyy" //providerName="System.Data.SqlClient" />

DbCommand dcmd = db.GetStoredProcCommand("MyProcedure");

db.AddInParameter(dcmd, "@liparameter", DbType.Int32, 145);

DS = db.ExecuteDataSet(dcmd);

ReportDocument rptDoc = new ReportDocument();



rptDoc.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, PDFFolderNameChild + PDFstrFileName + ".pdf"); //Error here.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Nov 16, 2015 at 02:11 PM

    Can you install CR Designer on the Production server, or a QA image of it?

    Search for CRLogger KBA, it will tell you how to enable CR DB logging, see if it shows you what is wrong.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 16, 2015 at 08:40 AM

    Hi Mzee, I think it will be helpful if you provide what you have done for check so far?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.