I/O Errors if going through remote desktop

Posted on 2007-07-25
Last Modified: 2010-04-18
When I go into portions of applications, they throw I/o errors but only if going in thru RDP.  When I go straight into the applications I get no errors.  
Using Server 2003
Thank you
Question by:PHY137
    LVL 33

    Accepted Solution

    I have to just throw out thoughts here...

    It's quite possible the app, when run locally, is able to see a directory and/or device that is normally shared locally.  But, when you get on via RDP, you don't have those ame rights that allows those same shares.

    One of the big issues with VFP has always been the I/O errors that get thrown when the developer had a drive reference in his app that got compiled into the final exe that was generated from the project he had in his development environment, usually a reference to a CD-ROM drive on the PC running the app.  If that CD is free of an actual disk and the app has that, inadvertent or not, as part of the search path, an I/O error will get thrown because it can't read an empty CD-ROM drive.  I can't say for certain that is what's happening on your end.  But, something like a missing drive or a drive where you have no rights to access it could cause I/O issues.  

    Also, look at what the settings are in the Config.fpw file that you are invoking to run the app to see whether or not that points to something you can't get to, like a path to a Temp directory, etc.

    Author Comment

    Thanks Carl, I was thinking along the rights issue, myself.  
    LVL 33

    Expert Comment

    Great minds...
    LVL 6

    Expert Comment

    RDP sessions will give you funky temp file settings so be careful of stuff in fox where you have constructed the path to soemthing in code and use it explicitly - you usually need to macro expand these to work - like:
    reportNameAndPath = 'c:\douments and settings\FLM\temp' + 'mytemp.frx'
    report form (reportNameAndPath) to print
    LVL 6

    Assisted Solution

    sorry i did not finish

    this will give an error
      reportNameAndPath = 'c:\douments and settings\FLM\temp' + 'mytemp.frx'
      report form (reportNameAndPath) to print
    this will execute
      commandToExecute = 'report form ' + 'c:\douments and settings\FLM\temp' + 'mytemp.frx' + ' to print'

    also disable oplocks on server dbf files are on - big problem for RDP sessions


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Suggested Solutions

    Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
    Let’s list some of the technologies that enable smooth teleworking. 
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now