Being Asked for Database Logon Twice

I am using VS2010 and have created a webpage to display a report.  I load up a report using a stored procedure into the Viewer.  When I click to export the report, it wants to open up another window and then asks for the logon information again.
Below is the code that I am using.  It gets the right results.
            ReportDocument rpt = new ReportDocument();
            rpt.Load(MapPath("CheckReport.rpt"));
            TableLogOnInfo logonInfo = new TableLogOnInfo();
            foreach (CrystalDecisions.CrystalReports.Engine.Table crtable in rpt.Database.Tables)
                logonInfo = crtable.LogOnInfo;
                logonInfo.ConnectionInfo.DatabaseName = "BankRec";
                logonInfo.ConnectionInfo.ServerName = "XXXXX";
                logonInfo.ConnectionInfo.UserID = "XXXXX";
                logonInfo.ConnectionInfo.Password = "XXXXX";
                crtable.ApplyLogOnInfo(logonInfo);
            rpt.SetDatabaseLogon("BankRec", "XXXX", "XXXXX", "XXXX");
            rpt.SetParameterValue("@BankAcct", cboBankAcct.Text);
            rpt.SetParameterValue("@MonthEnd", txtMonthEnd.Text);
            int exportFormatFlags = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.ExcelRecordFormat |
                ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
            CrystalReportViewer.AllowedExportFormats = exportFormatFlags;
            CrystalReportViewer.Visible = true;
            CrystalReportViewer.HasCrystalLogo = false;
            CrystalReportViewer.ReportSource = rpt;

I may have solved my problem.
I did not realize that it would call the page load event.
I added a call to the method and it seems to be working now.
If there are any ideas or I'm doing this wrong, please let me know.

Similar Messages

  • Prompting for Database logon

    Hi all,
    I hardcoded the database logon credentials for a report on CMC and selected " Use the same logon Details when you run". But when i am running the report on Infoview it is prompting for Database logon credentials. I dont want the user to be prompted for logon credentials when he runs the report from Infoview. Is there any other configuration do i need to do on CMC side. I have few other reports running on the same database, when we run those reports it is not asking for logon credentials. It is asking for only that specific report.
    Any ideas would be greatly appreciated.
    Environment: BOXI3.1, Crystal Reports 2008 and SQL server 2005.
    Thanks and Regards
    Sudharsan.

    Moving to BOE forums

  • I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I am trying to download an epub book from the library, which I have been doing for almost a year. Now I am being asked for my adobe id, which I enter and I get an error message stating Adobe Activation Request Error:2004.. What's this ?

    I downloaded Blue Fire Reader and it requested an adobe id. I clicked on the link that was in the error message stated http//adeactivateadobe.com. Found out that if the date and time on my Ipad is wrong that it won't let me download a book. I was off 5 hours. I reset my clock settings and adobe id let me download a book from the library. I am back to using Overdrive and adobe again on my ipad.
    Thank you.

  • Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshpp onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a p

    Hi, I got my Mac in 2009 with photoshop elements on it - it's recently been wiped, however before the process we put Photoshop onto a hard drive, we then copied it back over and it no longer works, I'm getting error code 150:30 and I'm being asked for a password... any ideas how to get it working again?

    You can never, never migrate an installed copy of PSE. It's just too complex and you can't get to all the bits and bobs.
    First you will have to download and run this:
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    which will not seem to do anything, but is necessary to break the links within PSE so that you can pitch the bits manually. Then you will have to go around, not only to applications, but also to your username>library>preferences and most importantly to the library at the top level of your hard drive>application support>adobe, and remove everything you can find. Spotlight will not help with this kind of search, so don't try that.
    Then you can install PSE from scratch.

  • HT1420 Keep being asked for my audible account id, but i do not know it. It is not the same as my Apple ID as I have tried this

    Keep being asked for my audible account id, but i do not know it. It is not the same as my Apple ID as I have tried this

    If you've forgetten the details for an Audible.com account, see:
    http://audible.custhelp.com/app/answers/detail/a_id/3270
    Regards.

  • I have never had to enter a password to access mail. However, recently, I keep being asked for password on my ****** address. Only on my macbook. (which, btw, has a version number the drop down doesn't offer as a choice. I had to putt 9.4)

    I have never had to enter a password to access mail.
    However, recently, I keep being asked for password on my ***** address.
    Only on my macbook. (which, btw, has a version number your drop down doesn't offer as a choice. I had to putt 9.4)
    When I look up the account the "password" is a long string of gobbledygook. Something I would never do.
    But when I attempt to use that pw I still can't get in.
    I have no trouble accessing that email account on my mac mini. Just on the macbook.
    <Edited by Host>

    Maiko,
    I'm confess I'm still trying to get a handle on your problem. You do a fantastic job of describing it ... but I'm just trying to picture it accurately in my head.
    I think, were I in your shoes, I'd begin by looking at what the debug page has to say for the specific destination in which you're interested in fixing. In other words, I'm not clear on where, exactly, this destination points ...
    Destination illinois.edu.1945806043
    Is that your site, or the division within your site that you want to fix? "Normally", you do not need to specify a site handle to get to your site within your transfer CGI ... if you say "uillinois.edu", it's enough to transfer your users to iTunes U ... but every site still has a handle, and you could, if you wanted to, actually specify it in your transfer CGI. For example, this:
    Destination uic.edu.1139051993
    is for my entire site ... it's my site handle. Whereas this:
    Destination uic.edu.1991288441
    is for a division within my site ... but it's impossible to tell the difference between "site" and "division" from just the handle (I mean, if I didn't say "this is a site" and "this is a division", there'd be no way for you to know). So when I look at your creds and permissions on your debug page, I can't quite tell if they give you download access for your site, or for the specific division you want to fix. If you could open the debug page with your division as destination (or confirm that that's what we're looking at), it'd rule out some things.

  • I can no longer buy, download, or update apps/iTunes without being asked for apple ID and billing information to be declined

    I can no longer buy, download, or update apps/iTunes without being asked for apple ID and billing information. Even if apps are free or updating I'm asked for billing information. It's been like this for a couple of weeks after the purchase of a movie off iTunes and the purchase was successful but afterwards my App Store and iTunes stopped working properly. Help me please, thanks.

    Go here:
    https://expresslane.apple.com/Issues.action
    Ask for assistance.

  • HT201364 Hi, If I do not have to pay for free installation, why am I being asked for billing details?

    Hi, If I do not have to pay for free installation, why am I being asked for billing details?
    Aaron

    iCloud backs up your iOS device (not your Mac) automatically. You can remove the backup:
    http://help.apple.com/icloud/#/mm122d3ef202
    and it will not back up again. This will not affect a backup made using iTunes. The notice you see refers to calendars, contacts, iWork documents and so on, which live on the server and are read from there by your Mac, and so will obviously disappear if you turn iCloud off altogether (which you don't need to do) or turn off Documents (which you don't need to do either).

  • Hi I have adobe CC for teams, a team member is having problems opening indesign we are being asked for a serial number, ive checked on our admin account and he is one our our registered 'members'. I wasnt the person who set this up originally so I'm a bit

    Hi I have adobe CC for teams, a team member is having problems opening indesign we are being asked for a serial number, ive checked on our admin account and he is one our our registered 'members'. I wasn't the person who set this up originally so I'm a bit lost, i cant seem to find any serial numbers on the my account section and it seems we have no registered products? can you help?

    Hi There,
    We have checked the details of your team, all seat are assigned properly.
    Now there are few details that we would need in a Private Message so that I can assist you appropriately.
    Name of the user:
    Email of the user:
    Meanwhile, try the below mentioned links.
    Creative Cloud applications ask for serial number
    Sign in, activation, or connection errors | CS5.5 and later, Acrobat DC
    [Note: Details that we need is critical, make sure you send them in via Private Message only.]
    Thanks,
    Atul Saini

  • I had a 'dead' iMac repaired and it needed a new HDD & graphics card, the repairer installed OSX 10.6.8 and i now need to install other software but I am being asked for 'User' password so I may do this, I've no idea what this will be.  Help please.

    I had a 'dead' iMac repaired and it needed a new HDD and graphics card, the repairer installed OSX 10.6.8 and i now need to install other software but I am being asked for 'User' password so I may do this, I have no idea what this will be.  can anybody help please?
    <Personal Information Edited by Host>

    On looking at the secure.log on the iMac with OSX10.6.8, I see these entries at each attempt to scp into the iMac:
    Dec 29 11:06:20 molika sshd[7248]: in pam_sm_authenticate(): Failed to determine Kerberos principal name.
    Dec 29 11:06:26 molika sshd[7246]: Accepted keyboard-interactive/pam for prowat from 137.110.243.132 port 35571 ssh2
    Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 created
    Dec 29 11:06:26 molika com.apple.SecurityServer[26]: Session 0x236a14 attributes 0x20
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 dead
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Killing auth hosts
    Dec 29 11:06:27 molika com.apple.SecurityServer[26]: Session 0x236a14 destroyed
    I don't know what to make of this.
    Peter R

  • I purchased Adobe CS4.  I am now being asked for my serial number and when I put it in the program does not recognize it for Acrobat Pro 9 though it does for PhotoShop, Bridge and the rest of the suite.  What can I do?

    I purchased Adobe CS4.  I am now being asked for my serial number and when I put it in the program does not recognize it for Acrobat Pro 9 though it does for PhotoShop, Bridge and the rest of the suite.  What can I do?

    Contact support if you have serial number issues. Otherwise start by checking this stuff:
    Sign in, activation, or connection errors
    Mylenium

  • I am no longer being asked for a password when downloading an app, big problem with kids

    I am no longer being asked for a password when downloading an app or music in iTunes, big problem with kids. How do I enable

    To elaborate further, in those restrictions you can specify exactly what types of actions you would like to restrict.
    I think you'll find this accomplishes your objective.

  • Report sometimes prompts for database logon prior to execution

    I have installed the Crystal Reports Integration Addon on our system and it works correclty for users on our terminal services server.  But when I installed it on a user's PC running Windows XP, when I go to execute an existing report, the Runtime viewer launches, and then displays a Database logon panel with the Server field filled in, the database field is blank, and the SA user and password fields are populated, and I get an error that says logon failed.  I type in the SA user id and password, but get the same error.
    If the same user logs onto the TS server, the runtime viewer launches correctly and the report prompts for input, then displays the appropriate data (no database logon is requested). But if it runs at that user's workstation, the viewer launches, and then prompts for database logon.
    We are running SAP 2007A SP00 PL47, CR Basic 2008 for SAP Business One, and the runtime viewer is Crystal Reports 2008 Runtime SP1. version 2.0.0.7

    Hi Bruce,
    I am not sure what the problem is.
    The only workaround I can think of is to change the Integrated Security in the report to true. This means that you will be using Windows Authentication as opposed SQL Authentication. This will not prompt for SQL username and password.
    Usually this is NOT an ideal process as you will have to Add each and every Windows user in the SQL Database you are trying to access. For example, you have to add DOMAIN_NAME\User_Name under the Database Properties.
    I am not sure what the minimum security you need to run the report. You will try a few different options and see what works best for you. Avoid permissions that would give users ability to write to the SQL database.
    Again, I know this is not ideal. But I am not sure what else can be done here.
    Krishnan

  • Website asking for database login

    </p Hi, I need your help and please help me.
    I have a report that have been working all this time until IT dept told me to change the database to something else.  I changed the datasource and it is running just fine on my computer.  When I loaded my report to the same location on the website so that the users can runs it, it is populates a box asking for database login.  The funny thing is, I recreated a brandnew report pointing to the same database and it loaded up there just fine without asking for the database login.
    I don't want to recreate this report and I have to do the same with 20 more reports like this because I customized so much.  Please tell me what should I do?
    I am using Crystal Report 2008 version 12.1.0.892 on Window XP 32 bits
    Thanks so much for your help!
    Anh Nguyen

    Hi,
    If a new report works fine on the website then try opening your report in Crystal and go to Database | Set Datasource Location.
    Point to the new database and make sure all the tables are updated.  Save it and upload the report to your website.  There may be a table or a subreport that is still trying to connect to the old database.
    Good luck,
    Brian

  • I cannot purchase anything at the itunes store because I am being ask for my security questions, but I don't remember them. How do you change you security questions with out knowing them?

    I cannot purchase anything at the itunes store because I am being ask for my security questions, but I don't remember the answers. I tried going to appleied.apple.com but I won't allow me to change my security answerswithout answering the original questions. How do you change you security questions with out knowing them? I need help.

    Welcome to the Apple Community.
    Start here, and reset your security questions, you will receive an email to your rescue address, use the link in the email and reset your security questions.
    If that doesn't help or you don't have a rescue address, you might try contacting Apple through iTunes Store Support

Maybe you are looking for

  • Question on FormCalc

    Not sure what functionality I need to be using but here is what I am looking to accomplish. I need to know how to count the number of rows in a table that are not  null. I have a table with data but what I need to know is how many rows  are filled ou

  • Select from a linked server fails when executed as a join to database tables

    Hi I have been using the following TSQL to update a results table for several years it is currently running on SQL Express version 11.0.2100.60 (I have successfully run this on various versions and editions from 2005 onwards) select c.Race_id , r.Run

  • Is it safe to remove the diskutility.log?

    Is just a simple question. My disk utility log has grown to several megabytes so I was wondering if its safe to delete the diskutility.log file? It is found in ~/Library/Logs/... Also does this log has an importance after repairing the harddrive perm

  • Creating a trip request using HRTRV_IF_MODIFY_TRIP in 5.0

    I am working on modifying an existing Travel and Expense application for a new client. We've moved the existing application from 4.6C to a 5.0 system. The issue I'm having is the standard function module for creating trips, HRTRV_IF_MODIFY_TRIP, is e

  • 2-cam interview on timeline needs to be clipped up. How?

    Newbie to X, used FCP5.2 last. Can someone give me an analogy about the time line wiout tracks? I am lost trying to understand it. I used to think of the tracks in FCP 5.2 etc as "pasteboard at the bottom and acetates on tracks above it" like Photosh