Oracle connection works in VB debug mode but not in EXE

I have a small VB 6 app that writes to an oracle database on a unix server. Oracle 10g is installed on my pc. System DSN is set up in ODBC and corresponds to an entry in the tnsnames.ora file (to the best of my limited oracle knowledge..)
The connection to the database works fine in debug bug. Test Connection of that DSN works as well. But when I build and execute the EXE file it returns : "TNS:could not resolve the connect identifier specified"
What is different about the process of running an EXE that could cause this failure?

I am having the exact same problem. What could be the difference in the way the debugger in VB handles DAO calls to an Oracle database in debug mode?!?!?

Similar Messages

  • App working fine in debug mode but not otherwise on iPad

    Hi everyone,
    Sorry if I am putting this question in wrong section, this seems to be the most relative location to ask question.
    My Problem:
    I have developed an app using Adobe Air and starling. App is working perfectly when I run on Flash Builder (debug and run both). When deploying on iPad at one particular location, it is either not getting TouchPhase.ENDED or some code is crashing.
    I tried to debug while running app on iPad and its working absolutely fine. But when I create the ipa file normally i.e. without debug mode, at a particular location code is not working.
    Please help me out in this regard, asap. I need to deliver it.
    Please!!!!
    Thanks
    Waqar Iqbal

    Hi,
    I know one case, but don't know if have a solution.
    See Registering Add-on in 2004
    Best Regards.

  • Jco Connection works on Single server mode, but not over network?

    Hello,
    Error - com.sap.dictionary.runtime.DdException: 'XXXXXX' not properly defined! Unable to create Metadata connection for Dictionary Provider. Either the logical System Name 'XXXXXX' has not been properly defined in the System Landscape Directory, or you are not using a MsgServerDestination (AppServerDestinations are not permitted for Metadata connections
    This is the error at one of the remote machines. The JCo Connection works on the J2EE host system (while testing and pinging under the Single Server mode.)
    I believe this error will be rectified if I upgrade to SPS7, but we have certain other considerations that restrict us from doing that.
    Could someone please point out the exact location thats responsible for this if possible and maybe I could just upgrade that part and clear this?
    Thanks

    Hi,
    you should consider three  things if your java instance is on network.
    1. SLD ( check if java instance is listed on SLD and test the connection from portal to SLD.
    2. You need an entry in the services files of both the Java and ABAP servers as such:
    sapms<SID>  3600/tcp
    Remember to always have a blank line at the bottom of the services file!
    3. try to add the certificate in portal.
    if you can provide with the exact error message it would be easy to help.
    Kind regards,
    vamsi.

  • Procedure works in debug mode but not normally

    I'm scratching my head on this and would appreciate any help as to what is happening.
    We have client code that calls stored procedures on an Oracle 10g database. When I run it normally the procedure does not behave as expected. If I try to debug the code it works fine on client until I recompile the procedure again. I don't have the faintest idea why this happens but I'm not sure how to make it work correctly without putting it in debug mode.
    If anybody has any idea what may be occurring I would appreciate the help.

    hmmm, I'm not sure how to do that.
    I do a select against a table into collection then loop the collection as follows:
              FOR Indx IN 1 .. v_Probs_Desc.COUNT
              LOOP
                   v_MyClob := v_MyClob || v_Probs_Desc(Indx);
              END LOOP;
    do some formatting by removing some tags embedded in the text
              v_MyClob := REGEXP_REPLACE(v_MyClob,'<GMT[[:print:]]*:','');
              v_MyClob := REGEXP_REPLACE(v_MyClob,'<GMT[[:print:]]*GMT>','');
              v_MyClob := REGEXP_REPLACE(v_MyClob,'<MAILTO[[:print:]]*MAILTO>','');
              v_MyClob := REPLACE(v_MyClob, '<PERSON', '');
              v_MyClob := REPLACE(v_MyClob, 'PERSON>', '');
              v_MyClob := REPLACE(v_MyClob, chr(13), chr(10));
    Find position of the heading if found (case-insensitive).
              v_End := REGEXP_INSTR(v_MyClob, 'Steps to Reproduce([:punct:])?'||chr(10)||'|Steps([:punct:])?'||chr(10),1,1,0,'i');
              IF ( v_End = 0 ) THEN
                   v_End := LENGTH(v_MyClob);
                   v_Flag := 1;
              END IF;
              IF ( LENGTH(SUBSTR(v_MyClob, 1, v_End)) > 4000 ) THEN
                   v_Text := SUBSTR(v_MyClob, 1, 4000);
              ELSE
                   v_Text := SUBSTR(v_MyClob, 1, v_End);
              END IF;
    --Remove any spaces or newlines from the beginning
              v_Wspace := ASCII(SUBSTR(v_Text, 1, 1));
              WHILE ((( v_Wspace = 10 ) OR ( v_Wspace = 32 )) AND ( LENGTH(v_Text) > 0 ))
              LOOP
                   v_Text := SUBSTR(v_Text, 2, LENGTH(v_Text));
                   v_Wspace := ASCII(SUBSTR(v_Text, 1, 1));
              END LOOP;
    Make sure that the text is less than 4000 bytes so it can be inserted into another table.
              SELECT VSIZE(v_Text)
              INTO v_Size
              FROM DUAL;
              IF ( v_Size > 3950 ) THEN
                   v_Text := 'Created from ' || v_p2t(indx).PROBLEM_ID || '>' || chr(10) || chr(10) || SUBSTRB(v_Text, 1, 3950) || ' ... ';
              ELSE
                   v_Text := 'Created from ' || v_p2t(indx).PROBLEM_ID || '>' || chr(10) || chr(10) || v_Text;
              END IF;
    there's other code but the above code snippet doesn't work outside of debug mode.
    Edited by: dtjasonb on Oct 13, 2009 10:27 AM

  • Event receiver works perfectly in debug mode, but fails in release mode

    Here is my item added event which works perfectly and gives read permission to CCfield user in debug mode, but doesn't give permissions to CCfield user when item added event is triggered in release mode:
    base.ItemAdded(properties);
    try
    SPListItem item = properties.ListItem;
    string idnumber = Convert.ToString(properties.ListItem["ID"]);
    string itemurl = properties.ListItem.Url;
    SPWeb web = properties.Web;
    item.BreakRoleInheritance(false, false);
    //item.Update();
    string ccfield = Convert.ToString(properties.ListItem["EmailCc"]);
    string STRFirst = "&lt;" ;
    string STRLast = "&gt;";
    int Pos1 = ccfield.IndexOf(STRFirst) + STRFirst.Length;
    int Pos2 = ccfield.IndexOf(STRLast);
    string ccfield1 = ccfield.Substring(Pos1, Pos2 - Pos1);
    SPUser user = item.Web.EnsureUser(ccfield1);
    SPRoleAssignment roleAssignment = new SPRoleAssignment(user);
    roleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions["Read"]);
    item.RoleAssignments.Add(roleAssignment);
    catch (Exception e)
    throw;
    Any help?
    sk.Rakhishma

    Event receivers run using the permissions of the user who triggered the event. If your user does not have rights to manage permissions then you will need to run your security code with elevated permisisons.
    SPSecurity.RunWithElevatedPrivileges(delegate()
    { your code here } )
    Note that RunWithElevatedPermissions will not work with Sandbox code.
    Mike Smith TechTrainingNotes.blogspot.com
    my SP customization book

  • Project runs Ok in debug mode but not in release mode

    I have an application developed with VC++ 6.0 and measurement studio. The application controls SCXI-1161/1166 relay boards to connect the UUT. The application runs ok in debug mode, but in release mode the application can't drive the relay boards. I have tried to change optimizations mode, it didn't work. Who can tell me how to solve the problem? Thanks!

    It sounds like you have an older version of our SWITCH driver which relies on our DAQ driver. I would recommend uninstalling the Traditional DAQ, DAQmx, and SWITCH drivers and then installing the newest version. At this point you have 2 options:
    1) You can download Traditional DAQ 7.4, DAQmx 7.4, and NI-SWITCH 2.4 drivers bundled together here: ftp://ftp.ni.com/support/daq/pc/ni-daq/7.4/
    2) You can install the latest version: NI-DAQmx 7.5 here: http://digital.ni.com/softlib.nsf/websearch/CF7ECC​EA4C4CC7DE86257038004D88AE?opendocument&node=13206​... This has support for all of our USB DAQ devices (if you're not using them then you may not want to worry about installing this now) and then install Traditional DAQ 7.4 here: http://digital.ni.com/softlib.nsf/websearch/C36A54​ADDA3DC33D86257038004E55E6?opendocument&node=13206​... and NI-SWITCH 2.4 here: http://digital.ni.com/softlib.nsf/websearch/9D6B8C​7FD41BF3D08625702E0072E294?opendocument&node=13206​...
    This should solve your problem.

  • Works in Main Application mode but not the orange NXT mode for some NXT's

    A simple Labview program designed using only NXT VI's worked  in the Main Application but not in NXT mode.  For some NXT's it  worked in both modes but for others, just in Main Application mode. I've tried  updating the firmware and plugging and unplugging the USB.  Any thoughts?

    I see. The problem is probably that when you are switching to the NXT Target mode, it is expecting to target the other brick to which you already deployed. If you right-click on the orange banner menu in the lower left corner, you should be able to select the other NXT, or use "Find NXT..." to scan/search for bricks.
    Also, I reccommend giving all your NXTs unique names so this is more obvious. (you can use the NXT Terminal tool to do that).
    If you still can't get the VI to run in target mode, restart labview.

  • Remote Enabled function module of SAP working - debug mode but not run mode

    Hi,
    When a remote function module is called from Java a message should get thrown from the function module which the FM is throwing but Java is not able to fetch the error. This problem is coming in execution mode but if we are in debugging mode and go to the function module  remotely the error is getting triggered.
    Please suggest the solution to the problem.
    Thanks,
    Abhishek

    Hello
    try something like this
    try {
       JCO.Client.execute(myFunction)
    } catch (JCO.AbapException ex) {
       System.out.println ("ABAP Exception: " + ex.getKey() + " " + ex.getMessage());
    the problem is, that JCo ABAP Exceptions are subclasses of java.lang.RuntimeException so the Java Compiler doesn't force you to catch them
    regards franz
    reward points if useful

  • OSX Mountain Lion 10.8.4: imessage works fine in safe mode, but not in "normal" mode. Any hints?

    My iMessages does not work in "normal" startup, but it works perfectly in safe mode.
    Any hints?
    I have the same problem on a MacBook Pro 17" and on a MacAir 13" mid 2011.
    On my MacMini, iMessage work's fine.
    I'm using same apple ID on all 3 devices.
    Before update to 10.8.4, i had no problems.
    FaceTime also stopped working after update to 10.8.4.
    Thanks in Advance,
    Lars O.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -f -a TextEdit 
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; sudo defaults read com.apple.loginwindow LoginHook; sudo crontab -l; } 2> /dev/null | open -f -a TextEdit 
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; crontab -l 2> /dev/null; } | open -f -a TextEdit 
    Step 4
    ls -A /e*/{la,mach}* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -f -a TextEdit  
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' | open -f -a TextEdit 
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • BDC with call transaction VD02 works fin in A mode but not in N mode

    Hi All,
        I have BDC program developed in 4.6c using call transaction VD02 works fine with mode A but not with mode N.
    Now we upgraded to ECC 6.0.Do I need to change anything?

    No, you don't have to change anything for ECC. BTW, I wonder why VD02 is not working in the background for you?

  • JApplet run in Debug mode but not in Run Mode in JDev3.1

    Hi All
    I am having a problem in running a JSP file which contain an JApplet. When I choose Run from the jDev, the applet seems to take a really long time to load and finally failed to load itself.
    However when i choose run from debug mode, the jsp run perfectly by displaying the applet.
    Any idea why?
    thanks for any help
    ka

    Hi All
    I am having a problem in running a JSP file which contain an JApplet. When I choose Run from the jDev, the applet seems to take a really long time to load and finally failed to load itself.
    However when i choose run from debug mode, the jsp run perfectly by displaying the applet.
    Any idea why?
    thanks for any help
    ka

  • C# SCOM SDK agent install works fine from debug mode but disconnects when built from installer

    My team is writing a C# application that installs SCOM agents on the fly. I used the code in :
    http://msdn.microsoft.com/en-us/library/hh329037.aspx
    as a template. Which works fine and will consistently install agents when I run it in debug from Visual Studio. But when I build an installer (using InstallShield), calls to:
    "AgentTaskResult results = adminServer.InstallAgents(agents, configuration);"
    always result in a Microsoft.EnterpriseManagement.Common.ServerDisconnectedException. The agent install even shows up in pending management on the SCOM server (but this sits in pending management forever and is never processed). Calling managementGroup.Reconnect();
    and retrying the agent install still results in a ServerDisconnectedException. The application has no problem doing other things with the managementGroup object (from debug or running from an installer). It can create MonitorConfigurationOverrides and
    gets events out of an outbound connector. So it seems like the disconnect problem is localized just to agent install requests.
    I looked in the Windows Event Log and found an OpsMgr SDK Service Error: 
    An exception was thrown while processing InstallAgents for session ID uuid:71d39b19-f9a7-4d4a-82ee-5043480af635;id=41.
     Exception message: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 778.
     Full Exception: System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 778.
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean expand, StringBuilder internalSubsetBuilder, Int32& charCount, EntityType& entityType)
       at System.Xml.XmlTextReaderImpl.ParseCharRefInline(Int32 startPos, Int32& charCount, EntityType& entityType)
       at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
       at System.Xml.XmlTextReaderImpl.ParseText()
       at System.Xml.XmlTextReaderImpl.ParseElementContent()
       at System.Xml.XmlReader.ReadString()
       at System.Xml.XmlReader.ReadElementString(String name)
       at Microsoft.EnterpriseManagement.RuntimeService.TaskRuntimeService.CreateRemoteJobXml(JobDefinition jobDefinition, ManagementPackTask task, Guid hsId)
       at Microsoft.EnterpriseManagement.RuntimeService.TaskRuntimeService.SubmitJobs(IList`1 jobDefinitions, Guid batchId, JobCategory category)
       at Microsoft.EnterpriseManagement.RuntimeService.TaskRuntimeService.SubmitTasksInternal(IList`1 jobDefinitions, Guid batchId, JobCategory category, PrepareResultSet prepareTaskResultCallback)
       at Microsoft.EnterpriseManagement.ServiceDataLayer.AdministrationService.InstallAgents(Guid batchId, IList`1 jobDefinitions)

    Hello,
    You might ask in the
    Visual C# Language forum on MSDN.
    Otherwise, perhaps the Operations Manager - Extensibility forum:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/home?forum=operationsmanagerextensibility
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

  • VI server application runs under debug mode but not other wise

    I have an application which uses VI server to call vi's on my targets hard drive. When I run this using the highlight execution( or debug ) this works OK, however when I run without this I get error 66, connection closed by peer. When I look at my target using a direct monitor connection I get various messages relating to memory errors. I have run virtually the same code calling a simpler application and this seems to work fine, however when I simply target the RT engine with the same code ( using the RT comms wizard construction) I don't get a problem. This should, I think, be using the same amount of memory. What is the best was of assessing the memory available against the memory required? Do anyone have a
    ny ideas as to why the VI should run with execution highlighted and not without. I have tried adding delays so simulate this but it doesn't seem to work.

    Check out this KnowledgeBase article. It describes how to enable a memory monitoring tool that might help solve your problem.

  • Ringer still works on the headphone mode but not working at normal or music mode

    When I turned on music apps to play music, on the screen of MUSIC does not have the "sound bar" to setting the volume however when I use the RECORDING I can hear the record in the SPEAKER mode and when I back to home screen, the bromlem happened again... When I use the headphone, it works, and the level bar is there. I'm really upset about this. Who has same problem with me? I never change anything about the sound. My iphone is 4s version and use the newest update, 6.0.1

    Hi,
    you should consider three  things if your java instance is on network.
    1. SLD ( check if java instance is listed on SLD and test the connection from portal to SLD.
    2. You need an entry in the services files of both the Java and ABAP servers as such:
    sapms<SID>  3600/tcp
    Remember to always have a blank line at the bottom of the services file!
    3. try to add the certificate in portal.
    if you can provide with the exact error message it would be easy to help.
    Kind regards,
    vamsi.

  • Javascript works in Designer preview mode, but not when invoked via process

    I have a fragment consisting of a subform and a text object. The subform has the following Javascript for its initialize event:
    var cars = $data.input.cars.car.all;
    var showMe = false;
    for (var i = 0; i < cars.length; i++) {
    if(cars.item(i).color && cars.item(i).color.value == 'RED')
    showMe = true;
    break;
    if(!showMe) {
    this.presence = 'hidden';
    The code is supposed to loop through all my input XML data's cars, see if each car has a color element, and if so, see if the color is RED. If any of the cars have a color of RED, the fragment should be visible. Otherwise, it should be hidden.
    The Javascript works fine when I preview the fragment in Designer using a sample XML input file with no color element (i.e. the text in the fragment is hidden).
    The Javascript works fine in my main document (which has the fragment included in it) when in preview mode in Designer.
    The Javascript does not work when I invoke my process in LiveCycle server. I pass in data that has 1 car without a color element, and for some reason my fragment is visible.
    Is there something wrong with my Javascript? Is this the wrong way to check to see if an XML element is present? Is something else wrong?
    Any help would be appreciated!
    Thanks,
    Andy

    I guess a more appropriate question might be:<br /><br />How can I tell if my XML input data does or does not contain an element?  Let's say I have<br /><br /><input><br />  <cars><br />   <car><br />     <make>VW</make><br />   </car><br />  </cars><br /></input><br /><br />How can I use Javascript to safely determine if the car has a <color> element?

Maybe you are looking for