Access denied listing with cfdirectory when remote

Hello people, I working with cfdirectory to verify the contents of a local directory (this is for an intranet running on a mac). It works ok when I trest it in the local environment but it fails when I run the script from the remote server.
I'm a bit lost here. Is something I need to modify at the local server or the remote server? Is the local server not allowing access to the remote script or the remote server doesn't want to access a local machine due to security issues?
Thsnkd in advance.
Dani

Ian, thanks for your answer. This brings a problem...unless I can bypass it by calling a script on my local server, at least to perform cfdirectory operations...
I'm trying to do the following:
When a supplier approves a job, my client changes the status of that job to approved. When that happens, the application should be able to;
1) List the files related to that job (cfdirectory)
2) Zip those files (cfzip)
3) Upload those files to the ftp (cfftp)
But since the files are stored locally (huge graphic files), I'm stuck with the "access denied" situation.
Anyway, thanks so much Ian for clarifying this to me.
Dani Szwarc

Similar Messages

  • Access Denied error with basic XML file operations

    Hi,
    I'm trying to set up a basic read, write and delete code for XML files which I can build upon in the future. The three methods are bound to three buttons on the page and all three calls are awaited. Here's my code:
    Write:
    XElement uservarnodes = new XElement("uservars",
    new XElement("uservar1", "1"),
    new XElement("uservar2", "2"),
    new XElement("uservar3", "3"),
    new XElement("uservar4", "4"),
    new XElement("uservar5", "5"),
    new XElement("uservar6", "6"),
    new XElement("uservar7", "7"),
    new XElement("uservar8", "8"));
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync("uservarfile.xml", CreationCollisionOption.ReplaceExisting);
    var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite);
    using (var outputStream = stream.GetOutputStreamAt(0))
    DataWriter mydataWriter = new DataWriter(outputStream);
    mydataWriter.WriteString(uservarnodes.ToString());
    await mydataWriter.StoreAsync();
    await outputStream.FlushAsync();
    Read (outputs the data to a textblock):
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.GetFileAsync("uservarfile.xml");
    string readtext = await Windows.Storage.FileIO.ReadTextAsync(file);
    XElement uservarnodes = XElement.Parse(readtext);
    txtTarget.Text = uservarnodes.ToString();
    Delete:
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.GetFileAsync("uservarfile.xml");
    await file.DeleteAsync(StorageDeleteOption.PermanentDelete);
    When I tap each of the buttons once it all seems to work. But when I tap any of the buttons again within the same debug session I get an Access denied exception (E_ACCESSDENIED). Other people with this error had to await when calling their method, but I'm
    already doing that: private async void btnWrite_Click(object sender, RoutedEventArgs e) { await WriteToXMLFile(); }, etc.
    And the intervals between my taps isn't that short that you'd expect that the previously called method still had not finished completing. I don't understand why I'm getting the access denied error.
    Related to my question: I have added XML to the File Type Associations, File Open Picker and File Save Picker in the appxmanifest, but somewhere I read that you do not need to do this if you're working with local app data only. Is this true?

    var stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite);
    I think because of your file stream hasn't been closed.
    by the way, it can be easier  by using System.IO.OpenStreamForWriteAsync extension method
    async public static Task<bool> SaveTextFileAsync(string filename, string data)
    byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(data);
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
    try
    using (var s = await file.OpenStreamForWriteAsync())
    s.Write(fileBytes, 0, fileBytes.Length);
    return true;
    catch
    return false;
    (need using System.IO namespace)
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • Accessing multiple macs with ARD from remote location with Airport Extreme

    We have an office with a newer Airport Extreme and three macs on the network. We have turned on the Apple Remote Desktop in the port forwarding, but we can only access one computer at a time, and only if we port map it to the local IP of that computer (Ex 10.0.1.2).
    We would like to be able to access all three computers from a remote location. My question is this -
    Can I have a wildcard IP, or is there an IP I should use for ARD?
    Do I set up multiple port mapping with different ports and IPs?
    All computers are running 10.6.1 with the latest ARD updates.
    Any assistance would be appreciated.

    Great answer by Dave Sawyer:
    "To be able to connect to a workstation from outside it's network, the ports that ARD uses must be open on both ends of the connection. ARD uses ports 3283 and 5900 so those must be open.
    If your workstations get their addresses from an NAT device rather than being "real", the ports also need to be forwarded in the router to the workstation's internal IP address. ARD uses port 3283 for the reporting and updating function, so if your Macs are getting their IP addresses through NAT, since you can only forward a port to a single workstation, you can only get reports, push package/files to etc. for a single workstation.
    ARD uses the VNC protocol for observation and control, though, and there are a range of IP addresses for that protocol, starting with 5900. ARD uses 5900 by default, so that port would be forwarded to the first workstation. To be able to control more than one system, though, you would need to install VNC servers on the systems (since the ARD client cannot listen on any port other than 5900 while VNC servers can be set for other ports such as 5901, 5902, etc. You would then forward 5901 to the second workstation (and on to 5902, 5903, etc.). You can then use the following information:
    Remote Desktop 2: How to specify a port number for a VNC client to connect. -http://support.apple.com/kb/TA22880
    The only other options are: 1) to run the ARD administrator on a workstation on the network, and then take control of that system from outside, either via VNC or another copy of ARD, or 2) set up a virtual private network (VPN) so that when you connect from outside, your admin system is officially part of the local network.
    Hope this helps."

  • Access denied: Adobe PDF error when opening PDF in IE9

    Adobe Version: 11.0.3
    IE9, Windows 7
    Opening the PDF document from web browser opens a "Adobe PDF Document" dialog box with "Access Denied" error message.
    However, on clicking "OK" on the dialog box, the PDF document appears in the desired section.
    But, still trying to get rid of the access denied error message as this pops up each time a PDF is being opened.
    Please help asap.
    Thanks.

    Hello Adobe technical Team,
    I am struggling to fix the issue. Tried a lot of combinations to manipulate PDF preference, browser setting but failed to fix the issue. Can someone please look into the details and advise? Thanks in advance for any help.input.

  • EFS: Access denied even with appropriate certificate and permissions

    I have imported the certificate from the server computer to the workstation computer several days ago. So far, every morning the workstation computer is unable to access the server encrypted file for a period of about 1 hour (saying "Unable to open
    this file. Access denied"). All the folders can be opened, moved and renamed. After persistently attempting to access it and after verifying the thumbprints match between file and certificate it is able to open the file. 
    There seems to be a delay between logging in to the workstation computer and the effectiveness of the certificate. 
    I am new to EFS and would love any help you can give me.

    Hi,
    Did this issue just occur on these EFS file or all file in the server? What's the result when you attempt to access the other file which is not encrypted.
    Meanwhile, please use Network Monitor to trace the network activity:
    Network Monitor
    http://technet.microsoft.com/en-us/library/cc938655.aspx
    Karen Hu
    TechNet Community Support

  • "Access denied. Login again" when creating New Configuration in Object Edit

    Hi all,
    I am trying to complete ]<a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/8d77556536267fe10000000a1553f7/content.htm">My First Composite Application</a> but got stuck at the step <a href="http://help.sap.com/saphelp_nw70/helpdata/en/43/95c95b9fc32293e10000000a1553f6/content.htm">Configuring the Object Editor User Interface</a>. When I try to create a new configuration, I get the error message "Access denied. Login again", but I have no idea where to change to overcome this.
    Please advise me, if you have any idea.
    Thanks,
    Masa

    It was due to missing user role.

  • Access Denied message in DW when saving changes to a file

    I am having issues with saving changes to a previous file in DW CS5.  My files are located on an external drive, always have been.  I am using a new pc (WIN 7) and the drive is connected.  I can open the files and change them just fine but I can not save them.  I get ACCESS DENIED.  Does anyone have any suggestions as to why this is happening and how I can get back to saving my changes?

    Well I feel kind of silly but I figured it out.  It was basically a matter of organization.  I went into SITE and then MANAGE SITES and then REMOVED the folder and then ADDED it again.  Works fine now.  Before, the reason I had the issue, was becuase I was skipping the "MANAGE SITE" step and just accessing my files from the FILES tab under WINDOWS.  Although this method allowed me to open files and change them, it would not allow me to save the changes.  HOPE THIS HELPS someone else some day.
    Thanks for trying to help me Ken.  I appreciate it!

  • Error  FW-1 at P-FW1: Access denied. keeps popping up when I try to go on certain websites

    I tried to go on this website that I have already been to plenty of times never had a problem with it until today I Tried to get on the website but The message
    Error
    FW-1 at P-FW1: Access denied.
    popped up and I'm like omg what is this so please help and I have a iMac by the way if that helps any and the website is snagajob

    I think this was an issue with snagajob's site and they fixed it.  Try it again and see if it works now!

  • Access denied error while running opening remote power-shell session from one azure machine to another

    We are trying to open a remote power-shell session from one azure machine to another azure machine and that is failing with the following error. Any ideas?
    Observations: -
    If the worker role is running under network service or local system, then it fails.
    We emulated the same behavior from a stand-alone exe and that also failed when the exe was run under network service or local system.
    If we run the same stand-alone exe from a user account, then it works.
    Unhandled Exception: System.Management.Automation.Remoting.PSRemotingTransportException: Connecting to remote server sampleapprm.cloudapp.net failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting
    Help topic.
       at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
       at System.Management.Automation.Runspaces.Internal.RunspacePoolInternal.EndOp
    en(IAsyncResult asyncResult)
       at System.Management.Automation.Runspaces.Internal.RemoteRunspacePoolInternal
    .Open()
       at System.Management.Automation.RemoteRunspace.Open()
       at ConsoleApplication2.Program.Main(String[] args)

    Hi,
    This error only show access is denied, and it is hard for me to deal with this issue, may be Windows Powershell forum or Windows Azure VM are good forums for you, could you give more details information to us for a better help if this issue
    was related with windows Azure.
    Best Regards
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Access denied problem with saprfc.so

    Hi all,
    I have a strange "Access is denied" problem when I'm using (any of) the saprfc-unicode gems on saprfc.so. I have outruled the most obvious reasons (file permissions etc.) and have traced it down to the C-level library routine LoadLibraryA, which gets called in the ruby C source code. Because this problem only occurs on one particular machine and does not on others I assume it has something to do with other programs that are installed on the machine.
    I'm wondering whether someone ran into the same problem and can provide some clues on how to solve this. The error message I get is
    c:/ruby/lib/ruby/gems/1.8/gems/saprfc-0.34-mswin32/ext/saprfc/saprfc.so: 5: Access is denied.   - c:/ruby/lib/ruby/gems/1.8/gems/saprfc-0.34-mswin32/ext/saprfc/saprfc.so (LoadError)
            from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
            from c:/ruby/lib/ruby/gems/1.8/gems/saprfc-0.34-mswin32/lib/SAP/rfc.rb:130
            from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `gem_original_require'
            from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require'
    any hint/idea/help on this would be great!
    -- Matthias

    Hello Tommy:
    Welcome to Apple discussions.
    I suggest you contact the game manufacturer and ask them why the update will not work.
    Barry

  • How can someone access my computer with an "Infrared Remote?"

    Can someone please explain to me how someone can access my Mac Book Pro by using an Infrared Remote? What is an Infrared Remote device and how does it operate?
    Thank you,
    KayeKaye07

    It only works if you have a little circle on the front of your MacBook Pro that is the infrared remote receiver. This was on the MacBook Pros of a few years ago. Recent Macs no longer have an infrared receiver, so infrared remotes like the Apple Remote cannot control them.
    The Apple Remote which used to be included with MacBooks was intended for uses like letting you control DVD playback or presentations from a distance. I guess Apple decided it was no longer needed after they removed their FrontRow media player, and after people started controlling their presentations with their phones, or even playing back their presentations directly from their phones.

  • Firefox 9.0.1 keeps hanging once I access a website with video, when I write e-mails etc. If a press ctrl+alt+del, opens a window to confirm closing, and firefox works again. When I close that confirm window, firefox immediately hangs again.

    It stops working if I access websites with videos, and all sort of more complex flash. It I try to write an e-mail, it also stops. I can't do anything. PC keeps working, though. So I press ctrl+alt+del. It opens that window asking if you want to close all the tabs. I notice that firefox start to work again, behind that window. But, once I close the window, it stops again. Sometimes I can close the tab with the video before it hangs again, which can take a few ctr+alt+del's. It doesn't happen with other browsers! It started 1 week ago. Is it an extension? Or a virus (i use avast)? Thank you!

    Perform the suggestions mentioned in the following articles:
    * [https://support.mozilla.com/en-US/kb/Template:clearCookiesCache/ Clear Cookies & Cache]
    * [[Troubleshooting extensions and themes]]
    * [[Managing the Flash plugin]]
    Check and tell if its working.

  • Unable to access song list in ipod when connected to the computer.

    My daughter loaned her ipod to a friend who tried to download some music to her ipod. A box opened asking if she wanted to delete all her songs from her ipod and she was given yes, no, and cancel. She pushed cancel and got out.
    My daughters ipod has not worked correctly since.
    When connected to the computer and logged into iTunes she can see all the songs in her ipod but they are light in color and she can not play or pick songs from the list. She can't delete anything from her list in the ipod. She can play her music from the computer list just fine.
    What has happened and can we somehow get her ipod back to working correctly?

    Hello jhfields,
    So, you are saying that you are unable to pick and choose songs from the Music list for the iPod while it is plugged into iTunes?
    If the songs are grayed out, it is probably because the iPod is set up to automatically sync. In order to play music from the iPod through iTunes, you have to enable the "manually manage music and videos" option from under the iPod's Summary tab.
    Does that do the trick for you?
    B-rock

  • Access denied - Password with french accent

    hello,
    we meet a problem of access via ActiveSync
    on our mobile phone for people with
    a password with french accents.
    the connection is no longer.
    to access our CAS server, we go through
    a Forefront server registered
    DMZ. If we do not go
    through this Forefront server, the problem
    disappears ...
    Anyone have any ideas??
    thank you in advance to all!

    Hi,
    We need your detailed information, do you use TMG or FPE? it sounds like the TMG has published your server.
    Do you see any error information?
    Best Regards
    Quan Gu

  • Access Denied when trying to access shared folders on the server with administrative privileges

    I have problem accessing shared folder on the server machine from Windows 7 machine even if I try to access it with administrative privileges (server Administrator account). I will try now to explain better my situation.
    In my company, we have small network infrastructure with one main server machine (HP ProLiant server) with Windows Server 2012 R2 installed and couple of desktop machines. The network is administrated by me.
    On Windows Server we have installed and setup DHCP, DNS, Remote Access and Routing, File and Storage and Active Directory services. Desktop machines are having Windows 8.1 Pro, Windows 8.1 or Windows 7 Home Premium installed on them. In Active
    Directory I have created domain, User groups and Users for employees in my company and so far, I didn't added desktop machines to the domain.
    Also, I've created one folder on the server which should contain different projects data for network users and I have set access permissions and security for this folder and shared it on the network (I've added couple of users to one user group and I
    gave Full control to this group over this folder). When I try to access this folder from network, I've been asked for login credentials (normally), where I just type in one of users username and password who has been given access permissions to (who is member
    of group with full control over the folder). From Windows 8.1 Pro and Windows 8.1 machines I can access and work on this folder without any problems.
    The problem comes with Windows 7 machines. On Windows 7 machines (I have also tried this with Windows 7 Ultimate in VMWare) I can access server, I can see its shares, but as soon I try to access folder I've created for projects, I get Access Denied message
    with request for User login credentials. Whichever user account I use (even servers main Administrator account) I keep getting this message over and over and I'm unable to access it at all.
    I have also tried to access the server through VPN (from local or outside) but I'm getting the same error again. Also I've tried to add these Windows 7 machines to the domain and login with domain user but the result is the same. Turned off both firewalls
    (on server and desktop machines, which I know is unnecessary, but lets try it), still same case. I've tried couple more things with registry editor on desktop machines which I found on different forums and websites but still no luck. And now I don't know
    what else I can do.
    Does anyone knows what's the problem here, have I set something wrong, have not set something I should?

    Hi MeipoXu,
    thanks for your response. I will first answer on your question.
    Yes, the main issue is that we can see the folder when we access the server but we cannot access its contents from Windows 7 machines. I have tried on two machines, one with Windows 7 Home Premium version and the other one with Windows 7 Ultimate version
    and the situation is the same.
    As you recommended, I've checked Network Discovery and File and Printer Sharing and the situation is next: File and Printer Sharing is turned on all layers (Private, Public and Domain) while Network Discovery is off for all layers too. I don't know if this
    is normal thing but Network Discovery cannot be turned on in Windows Server (I'm able to select Turn on Network Discovery and apply the changes, but when I get back to this settings page, I again see that it's turned off, so I assume this can't be changed
    at all).
    I also tried with icacls in command prompt and everything seems to be ok there regarding permissions. Share permissions are set to Full control to Everyone and Security permissions are set to Full control only for Administrators and the user group I've created
    for employees in my company. The confirmation for this is that on Windows 8 machines you can access this folder without any problem and without getting any message connected with access permissions with any user account within this user group. This share is
    created through File and Storage Services service in Server Manager panel.
    And then something came up on my mind. I went in Server Manager to check shared folder settings in File and Storage Services and under Settings page I saw that "Encrypt data access" has been enabled (I enabled this option because I thought
    I will get more security with this option). I asked my self what would happen if I disable it, tried it and now everything works ok on Windows 7 machines too. Now I assume that Windows 7 doesn't have this feature implemented or there are some
    settings which needs to be set on Windows 7 machines to make this encryption thing work with Windows Server. So basically, I will let this feature off for now until I find out more about it and how to implement it to work with all operating systems.
    I want to thank you once more for your kind help!

Maybe you are looking for