SetTableLocationByServerDatabaseName seems to not work

Post Author: Matthew_Arn
CA Forum: Data Connectivity and SQL
I have a web site that tries to reset the database location when running new reports, but it always seems to get and error (Failed to open the connection) even though the connection information is correct.  Below is the relevant code:
myReportClientDocument = myReportAppFactory.OpenDocument(myInfoObject.ID, 0)myCrystalReportViewer.ReportSource = myReportClientDocument
' For each table in the report, set the logon information Dim myTable As ISCRTableFor Each myTable In myReportClientDocument.DatabaseController.Database.Tables    myReportClientDocument.DatabaseController.SetTableLocationByServerDatabaseName(myTable.Name, "server", "DB", "user", "password")Next
The strange thing is that I am able to go into the Schedule Manager and change the Logon properties of the report and when the report is run everything seems to work fine.  So it would seem like this method is never resetting those properties.  Maybe it is because it is trying to logon with the call to OpenDocument.  Unfortunately I am not able to reset all of the reports using the schedule manager so I need some method of doing this in code.
Does anyone know what method the Schedule Manager is calling to reset the Logon properties.
Any help or work around would be appreciated.
Thanks,Matthew

yes i get the pie slice. and its got all the parts lit up. and im like 10 feet from the router. its veeeerrrrrrrrryyyyy slow. in a race my old 3g wins connected to the same wifi.
thanks for any help you can give me!

Similar Messages

  • I created a book using iPhoto, but the "Buy Book" tab seems to not work. Any suggestions?

    I created a book using iPhoto, but the "Buy Book" tab seems to not work. Any suggestions?

    First confirm that you can create a PDF file of your book as described in this Apple document: iPhoto '11: Preview a book, card, or calendar before you order or print it. Post back with the results.
    OT

  • USB seems to not work properly anymore with Mountain Lion

    I just upgraded to Mountain Lion. Tried to transfer pictures from my DSLR camera but it cannot be detected anymore. My external hard disk does not work anymore as well. Can anybody please help? Thanks.

    Open System Information (Applications > Utiities) and select the USB entry in the left column. The top right pane will show all the USB busses on your Mac. If the Mac can see the camera and external hard drive then they should be shown under one of the busses. So do you see them? If no, are they connecting directly to the Mac and not via some sort of USB hub?

  • IPad 1 dock connector seems to not work

    Hello everybody.
    Yesterday, when I tried to recharge my iPad battery, I noticed that the device did not become aware of the fact it was connect to AC.
    I used the original dock-to-usb cable connected to the original usb-to-plug adapter.
    Ok, don't panic. I tried to connect my iPad to my PC. Same thing: the PC did not recognise the device and the device did not recognise the PC.
    I tried turning the device into DFU mode: nothing.
    Ok ok. In the meanwhile, the battery went to zero percent and the iPad turned off. I tried connecting the device to AC and, magically, the battery was charging! The device was in charging mode: black screen and red battery with the power sign below.
    As soon as the device switched from charging mode to operative mode, the iPad stopped recognising the power.
    I'm depressed. I think it's a software issue. I tried resetting my iPad using the proper function in the settings menu but it did not work.
    I cannot restore it thru iTunes because the PC do not recognise the device.
    What should I do?
    PS: The device mounts the original latest firmware and it's out of warranty. My PC runs Windows 7 x64.

    I suspect it's a software issue because the problem only happens when the device is in the "operative" mode.
    The charging thing works fine when the device is in "charging-only" mode.
    However I'll take the device to an Apple retail shop.
    How does the assistance work? Do they take 250 bucks for any kind of issue?

  • Google voice and video chat plugin seems to not work with Firefox 4

    Once login, I click on parameters item then Chat.
    In the audio and video chat section my webcam seems not to be detected.
    This works well with Firefox 3.6.
    Any help is welcome :-)

    Hello again,
    Seems to be fixed in the Firefox new version (4.0.1).
    Best Regards.

  • Signing a soap message seems to not work in jwsdp14

    I'm trying to sign a soap message according to the latest oasis specifications (http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0.pdf) using the libraries provided with jwsdp14 (mainly xmlsec.jar).
    As far as I know, there is not yet documention/example about this specific issue.
    The following is the code I have to sign a soap message: it seems to work fine because the signed soap message respects the above specifications... but what I notice is that the digest and the signature values it contains are always the same, I mean: if i change the source soap message, the signed soap message in output is always the same!
    Any clue??
    import com.sun.org.apache.xml.security.Init;
    import com.sun.org.apache.xml.security.signature.XMLSignature;
    import com.sun.org.apache.xml.security.transforms.Transforms;
    import com.sun.org.apache.xml.security.utils.Constants;
    import com.sun.xml.wss.*;
    import com.sun.xml.wss.reference.DirectReference;
    import org.w3c.dom.Document;
    import javax.xml.soap.SOAPHeader;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPBody;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.security.PrivateKey;
    import java.security.cert.X509Certificate;
    public class Main {
    public static void main(String[] args) {
    // The file from which we will load the sample SOAP message
    String fileName = "F:\\SampleSoapMessage.xml";
    // Store the WSSE signed message here
    String signatureFileName = "F:\\SignedSampleSoapMessage.xml";
    try {
    // Initialize the apache libraries
    Init.init();
    // Obtain security elements from the keystore
    PrivateKey privateKey = MySecurityUtils.getPrivateKey();
    X509Certificate cert = MySecurityUtils.getCertificate();
    // Obtain a sample SOAPMessage from a file
    FileInputStream fis = new FileInputStream(new File(fileName));
    Document doc = XMLUtil.toDOMDocument(fis);
    SOAPMessage message = MyFileUtils.getMessageFromFile(doc);
    SOAPHeader header = message.getSOAPHeader();
    SOAPBody body = message.getSOAPBody();
    // Set the wsu:Id attribute to the Body
    XMLUtil.setWsuIdAttr(body, "MyId");
    // Create a WSSE context for the SOAP message
    SecurableSoapMessage sssm = new SecurableSoapMessage(message);
    // Create a security header for the message (<wsse:Security>)
    SecurityHeader sh = sssm.findOrCreateSecurityHeader();
    // Insert the certificate (<wsse:BinarySecurityToken>)
    X509SecurityToken stoken = new X509SecurityToken(header.getOwnerDocument(), cert, "X509TokenRef");
    sh.insertHeaderBlock(stoken);
    // Insert the keyinfo referring to the certificate (<ds:KeyInfo>)
    KeyInfoHeaderBlock kihb = new KeyInfoHeaderBlock(header.getOwnerDocument());
    SecurityTokenReference secTR = new SecurityTokenReference(header.getOwnerDocument());
    DirectReference dirRef = new DirectReference();
    dirRef.setURI("#X509TokenRef");
    secTR.setReference(dirRef);
    kihb.addSecurityTokenReference(secTR);
    //sh.insertHeaderBlock(kihb);
    // Insert the Signature block (<ds:Signature>)
    SignatureHeaderBlock shb = new SignatureHeaderBlock(header.getOwnerDocument(), XMLSignature.ALGO_ID_SIGNATURE_RSA);
    Transforms transforms = new Transforms(header.getOwnerDocument());
    transforms.addTransform(Transforms.TRANSFORM_C14N_EXCL_OMIT_COMMENTS);
    shb.addSignedInfoReference("#MyId", transforms, Constants.ALGO_ID_DIGEST_SHA1);
    shb.addChildElement(kihb.getAsSoapElement());
    sh.insertHeaderBlock(shb);
    // Digest all References (#MyId) in the SignedInfo, calculate the signature value
    // and set it in the SignatureValue Element
    shb.sign(privateKey);
    // Add the signature data to the header element
    header.addChildElement(sh.getAsSoapElement());
    // Save the signed SOAP message
    FileOutputStream fos = new FileOutputStream(new File(signatureFileName));
    message.writeTo(fos);
    message.writeTo(System.out);
    } catch (Exception exc) {
    exc.printStackTrace();
    System.out.println("An error has occurred : " + exc.toString());
    PS: Classes MySecurityUtils and MyFileUtils are not included since they have nothing interesting.
    The sample input sopa message is:
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <Intestazione>
    </Intestazione>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    and the output signed sample message is:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <wsse:Security SOAP-ENV:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <ds:SignedInfo>
    <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
    <ds:Reference URI="#MyId">
    <ds:Transforms>
    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
    </ds:Transforms>
    <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
    <ds:DigestValue>2jmj7l5rSw0yVb/vlWAYkK/YBwk=</ds:DigestValue>
    </ds:Reference>
    </ds:SignedInfo>
    <ds:SignatureValue>
    YdKNSPWnx630AYeZ6AXVco1b0RMo8C3WWbziq7C009gg4nhknEZmH0ds78y328SgAlAAVR6Swwok
    HE3OWgL8TZ1Ks0IimmmDd8/XIb2KlfiqnUNtTjGjUn9FLQEv/CMbmrCr7EO9rf/N+0cyAyGzrKo5
    ieEQhtZy9uZAKh2mrmM=
    </ds:SignatureValue>
    <ds:KeyInfo>
    <wsse:SecurityTokenReference>
    <wsse:Reference URI="#X509TokenRef"/>
    </wsse:SecurityTokenReference>
    </ds:KeyInfo></ds:Signature><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="X509TokenRef">MIIDITCCAsugAwIBAgIQIdu5EMFuQntM5IBOMeFcETANBgkqhkiG9w0BAQUFADCBqTEWMBQGA1UE
    ChMNVmVyaVNpZ24sIEluYzFHMEUGA1UECxM+d3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5L1Rl
    c3RDUFMgSW5jb3JwLiBCeSBSZWYuIExpYWIuIExURC4xRjBEBgNVBAsTPUZvciBWZXJpU2lnbiBh
    dXRob3JpemVkIHRlc3Rpbmcgb25seS4gTm8gYXNzdXJhbmNlcyAoQylWUzE5OTcwHhcNMDQwODA1
    MDAwMDAwWhcNMDQwODE5MjM1OTU5WjBhMQswCQYDVQQGEwJJVDENMAsGA1UECBMEUk9NQTENMAsG
    A1UEBxQEcm9tYTEOMAwGA1UEChQFaXNzcGExDjAMBgNVBAsUBWNoaWVmMRQwEgYDVQQDFAt3d3cu
    dGVzdC5pdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAtIsomDk9VthgMorPmG0dAwqLtTBi
    U69liwopwrnAbtzIiO56R9yh4tXvG9+QWtEFRcDHVwWi9YdaHQFCvjymnNYDUHkpJsWp11nIAfOA
    k+d9v1YDje4S6oba7tsIJSEkUu7LQ888Q3cGt/KUaEu6b0lZJ5zY9slK0onUPeTB3e8CAwEAAaOB
    0TCBzjAJBgNVHRMEAjAAMAsGA1UdDwQEAwIFoDBCBgNVHR8EOzA5MDegNaAzhjFodHRwOi8vY3Js
    LnZlcmlzaWduLmNvbS9TZWN1cmVTZXJ2ZXJUZXN0aW5nQ0EuY3JsMFEGA1UdIARKMEgwRgYKYIZI
    AYb4RQEHFTA4MDYGCCsGAQUFBwIBFipodHRwOi8vd3d3LnZlcmlzaWduLmNvbS9yZXBvc2l0b3J5
    L1Rlc3RDUFMwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA0GCSqGSIb3DQEBBQUAA0EA
    Y66OqTOpHcpNUPlD4A38s8bPIIjrf+C+Wv08lUj+DGN5pm+gBWdbWEGaQmqU8fPPtGrQnHz2NAUr
    ZmLaEw/qKw==</wsse:BinarySecurityToken></wsse:Security></SOAP-ENV:Header>
    <SOAP-ENV:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="MyId">
    <aTag>
    <aChild>a value</aChild>
    </aTag>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    NOTE: Check the value of <ds:SignatureValue> and <ds:DigestValue>: they never change even if I change the body of the source message.

    Quoting Farrukh's reply to this question on java.net -
    I can share some examples of how I have used JWSDP 1.4 and XML DSIG API to sign and verify a "standalone" soap message with and without mime attachments.
    Please see the following Utility class written for the freebXML Registry project [1] for an example of how to do what you seek:
    http://cvs.sourceforge.net/viewcvs.py/ebxmlrr/omar/src/java/org/freebxml/omar/common/security/SecurityUtil.java?view=markup
    See methods signSOAPMessage(...), signPayload(...), verifySOAPMessage(...) and verifyPayloadSignature(...)
    What you are trying to do is definitely doable and has been done with JWSDP 1.4. In my experience XML DSIG API met my needs very well.
    Best of luck.
    [1] freebXML Registry Project:
    http://ebxmlrr.sourceforge.net
    ---------------------------------------------------------------------------------

  • Bluetooth File Exchange seems to not work in Lion

    I use Bluetooth File Exchange to transfer videos and pictures from my cell phone to Mac.
    Since upgrading to Lion, Bluetooth File Exchange doesn't seem to work properly.
    In Snow Leopard when you browse a phone, there is a row of icons at the top of the window: Back, Reload, Home, New Folder, Delete
    At the bottom of the window, there are two buttons: Get and Send
    In Lion, at the top of the same window, there are only three buttons: New Folder, Reload, and Delete
    But at the bottom of the window, there are no buttons at all. At first I couldn't figure out how I would be able to transfer any files. Usually you select the ones you want and then hit "Get" and it prompts you with a dialog box asking where you want to save the files. I eventually figured out I can drag and drop the files from the window to the desktop, but this isn't ideal as it doesn't allow you to quickly create new folders to organize  the files as you previously could.
    Frankly, the program looks like it has been completely untouched for years and large parts of its functionality broke in Lion. The icon for New Folder at the top of the window is the same folder icon from Tiger (and previous OS X editions).
    Does anyone know how to bring this to the attention of an OS X engineer? Also, I have found many, many more bugs, and I am not sure if I should create a thread for each one, or what the best way to report them is.
    Thank you.

    bugreport.apple.com is one way to get in touch but you will need a free Developer account I think.
    General feedback can be sent here;
    http://www.apple.com/feedback/ maybe narrow it down to here: http://www.apple.com/feedback/macosx.html
    You'll get a form like this to complete:
    Regards,
    Colin R.

  • Microphone seems to not work

    I am not sure how or why this happened, but it seems everyone I call has a big problem hearing me on the phone, they all complain about it breaking up, this does not happen when i have the headphones on and i am using the microphone on the headphones, so I am thinking it is probably the microphone on the phone. I do not have insurance on the phone, is there anyway to clean the phone or is it possible Apple will fix this problem if it is with the phone?

    KindaConfused,
    If you look at the microphone, are the holes clogged at all? If small pieces of debris get caught in the microphone, it can cause a muffled sound when you speak to people. You can take a look at this article for more information:
    http://support.apple.com/kb/TS1631
    Hope this helps,
    Jennifer B.

  • Photoshop CS5 on Mac OSX 10.7.5 - Monitor compensation seems to not working properly.

    Hi,
    I've never noticed it before upgrading to Lion.
    Using sRGB as working color setting, if I create a new doc and fill a layer with red (255,0,0), I see Orange color, instead of red. Similarly if I use Adobe RGB 98 as working color setting. I have Photoshop CS3 installed on  virtual machine on Win XP, and I don't have this issue, red is red. If I open in PS CS3 a doc created with this red layer in PS CS5, red is red. Similarly, using GIMP with Adobe RGB 98 as working space, I see a brilliant red.
    If I open a doc with the same red created in Gimp, with PS CS5 and choose "don't manage color" the red remain red. If I choose either Use doc profile (Adobe 98) or convert to profile (sRGB), the same orange come out. It drives me mad!

    This is a screenshot with my square red made in sRGB, with sRGB as working color space, in save for web window without color management.
    This orange is what I see in PS.
    This is what I see with monitor color preview (what I would see with monitor compensation in PS window).
    Anyone got any idea of what's the problem?
    Thank you

  • Everything seems to not work

    First let me just say I've never seen a Mac with so many issues.
    I've been helping a lady in my building with her Mac... just about every day. There is always something.
    So she has 10.6 installed, and Windows. She uses Windows via Parallels. She doesn't even use the Mac OS, except to use Parallels and to run Windows... so she can use Outlook to access her webmail. O.o
    I believe GeekSquad set her up. facepalm
    Anyway- one day while troubleshooting I noticed Windows is installed on the same partition as Mac OS. I didn't even think that was possible, but apparently it is.
    Could having Windows and Mac OS installed on the same partition cause issues? Permission issues mainly I suppose.
    Any feedback on if that is an issue is appreciated.

    When Windows is installed using Parallels, Fusion, or VirtualBox, a new partition is not created or used. The Windows OS is installed as a file in the OSX partition. If Windows is installed using Bootcamp Assistant, a new partition is created for Windows. This allows independent booting of Windows or OSx.

  • Cflogin in appliction.cfc seems to not work

    I have my login code for my website (ecommerce) in the
    OnRequestStart function of my application.cfc. When this code gets
    invoked it will create my specialized session vars
    (Session.UserData) but will only populate the GetAuthUser() var for
    that one page. If i refresh that same page or do a dump of that var
    on another page the var is empty. Is this normal? How can i tell if
    the user was loggined into the application successfully? the login
    code is attached.
    Any help would be greatly appreciated.

    you should be able to output getAuthUser() and it should
    contain the current user for that session (after login) on your
    index.cfm page.
    you should wrap your entire login process inside the cflogin
    tags since what is between the tags will only get processed if the
    user is not already logged in.
    In your code above you have the cflogin tag only around the
    cfloginuser tag.
    a good example of the use of the cflogin inside the
    application.cfc can be found in the cf8 documentation. but I will
    attach the important bits here.

  • I icloud seems to not work properly...

    I backedup my iphone but I can not see my photos in my photo stream folder on my PC nor can I see my contacts on icloud.com. I do see notes. Can anyone help me? Thx

    Hi isepar,
    Thanks for visiting Apple Support Communities.
    It's a great idea to back up your iPhone. If you don't see your contacts on iCloud.com or your Photo Stream on your PC, there are a few steps you can try.
    You may want to double check the steps in these articles to make sure that iCloud is set up to sync your contacts:
    iCloud: Set up iCloud on your devices
    http://support.apple.com/kb/PH2609
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Additionally, you may find the steps in this article helpful with troubleshooting the Photo Stream on your PC:
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    All the best,
    Jeremy

  • Currency seems to not work in report

    We have companies across the globe and when I search this forum is appears that the user's default currency should be how the report appears. That's all we want, yet when we pull up reports where the data is GBP and the user is GBP we see USD on the report.
    Are we missing a setting or something?

    Hi, Did you enter the Exchange Rates? (Admin -> Company Administration -> Exchange Rates)
    Best regards, Tim

  • Remote not working properly with Apple's iPod to TV dock/system

    Everything appears to be set up right and the remote is communicating with the ipod base, which in turn is connected to the TV... But the Menu feature doesn't seem to work at all or defaults to the music library (no menu, just starts playing)... All the settings appear correct and if I manually select a TV show on the iPOD and can control the position and volume with the remote, but hitting the menu button as one would on the ipod to get the full list of shows either does notthing or starts the music... UG!!! Just bought this today and very diappointed that it seems buggy, not working...
    I know this is probably not a high volume issue, but can someone please help???
    Thanks!

    Don't feel alone. I have the 80GB and my AV kit remote is doing the same thing. Start playing the video, pressing menu doesn't cause a response at all. However, if you hit the "go back" you end up back at the video menu. When you hit play it starts playing 1 of how many songs you have loaded in your ipod.
    This has had to be known as an issue by now.
    Cheers!

  • Remote not working properly with Apple TV...sporadic fuctioning

    Hello,
    I have no idea what caused this to happen, but both my remotes (I have one from my MacBook Pro and one from my AppleTV) seem to not work properly with AppleTV. It sometimes works but it is extremely frustrating as it only registers about 1 out of every 10-20 clicks then continues to remember the previous clicks therefore making it essentially impossible to select the desired menu/item. Basically it just seems like it's out of control!
    I tested whether it was the remote or AppleTV that was causing the problem by running Front Row on my MacBook Pro and both remotes seem to navigate Front Row perfectly fine. They both act the same way with AppleTV, whether they are paired or not. It seems as though something happened with my AppleTV. This problem occurred randomly, with no specific cause I can think of.
    Please let me know if any of you have ever experienced this problem and what your solution was, if any!
    I have tried restoring to factory conditions, resetting settings, ran diagnostics, unplugged and replugged it, and nothing seems to be working!
    Oh, and I just replaced the battery on one and have tried swapping batteries, etc.
    HELP PLEASE!
    Thank you,
    Travis

    The menus have never been as responsive as they used to since the 2.0 update in my opinion - basically AppleTV seems to cache/buffer remote click if it is busy or perhaps waiting for something to stream from itunes, and when resources become available it suddenly executes all command rapidly which makes it behave wildly in menus.
    Usually happens I find after restarting the unit or if streaming drives have gone in to power saving modes and there's a delay while they wake up to feed the AppleTV.

Maybe you are looking for