AIR 1.5 - Can't Access Local Network URIs?

private static const ROOT_PATH_TO_SERVER_TEMP:String =
"\\\\server\\share\\queue\\temp_images\\"
Up until the 1.5 update, this worked great. Now it gives me :
Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
Which implies that I do not have permission to access the
resource. I do, but AIR isn't allowing it to happen. This has
COMPLETELY hosed my application for our company's CMS.
Any thoughts?

I have implemented a work around for this issue. If the user
is running 1.5, I create the folder in their local storage
directory and then move it to the destination UNC path. That works.
I pasted the static method I'm using to do this below:
FileUtil.createFolder = function(path,overwrite) {
var runtimeVersion =
air.NativeApplication.nativeApplication.runtimeVersion;
var runtimeArray = runtimeVersion.split(".");
var useWorkaround = false;
//1.5.0.7220 - bad version
//do workaround for 1.5 if UNC path
if ((runtimeArray[0] == "1") && (runtimeArray[1] ==
"5") && (path.substr(0,2) == "\\\\")) {
useWorkaround = true;
var folder = new air.File(path);
if ((!folder.exists) || (overwrite)) {
if (folder.exists) {
folder.deleteDirectory(true);
if (useWorkaround) {
var storeFolder = air.File.applicationStorageDirectory;
var folderName = FileUtil.getLastFolder(path);
var tempFolder = storeFolder.resolvePath(folderName);
var parentFolder = folder.parent;
if (!parentFolder.exists) {
FileUtil.createFolder(parentFolder.nativePath,false);
if (tempFolder.exists) {
tempFolder.deleteDirectory(true);
tempFolder.createDirectory();
tempFolder.moveTo(folder,true);
else {
folder.createDirectory();
FileUtil.getLastFolder = function(path) {
path += "";
for (var i=path.length-1;i>-1;i--) {
var tmpChr = path.substr(i,1);
if ((tmpChr == "/") || (tmpChr == "\\")) {
return path.substr(i+1);
return "";
You can use this method instead of createDirectory(). So for
example, newFolder.createDirectory() would be
FileUtil.createFolder(newFolder.nativePath,true).
Hope this helps.
Ken

Similar Messages

  • Can I access local files?

    I am writing an application using Adobe Air that will have to utilize and store media files locally on a user's computer.  My marketing team now believes that a downloadable application that will be installed on a user's computer will be a dealbreaker for some users due to the fear of a virus, so now they are suggesting that we will have better sales numbers if people just need to log into a website to use the application.  No problem, Air applications can be embedded into a website.  But can an Air application embedded in a browser still store and manipulate files on a user's computer?  Storing media files for a large number of individuals can become cost prohibitive, so rather than store them online, we would like to create a folder on a user's system to organize their files.  Is this possible with a web-embedded Air application?
    Thanks.

    AIR applications are always installed on the user's computer. You cannot run an AIR application on a website. On a web page, you can include a link to download or install an AIR application.
    AIR applications can access local files.
    Flash Player applications can also access local files, but the user first grants permission. For example, see the FileReference.load() and FileReference.save() methods (added in Flash Player 10):
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html

  • ASA 5505 VPN can't access connected network

    I have an ASA 5505 with ipsec VPN configured on it.  I am able to  connect to the ASA but I can't ping a connected network.  I get a dhcp  assigned address in the network I am trying to reach but can't access  that network on Vlan5.  Please help.
    I attached the config.

    I think final questions, can you have two nat statements that point to the same acl ie.
    access-list no_nat extended permit ip 192.168.9.0 255.255.255.0 192.168.0.0 255.255.255.0
    access-list no_nat extended permit ip 192.168.9.0 255.255.255.0 172.31.1.0 255.255.255.0
    access-list no_nat extended permit ip 192.168.5.0 255.255.255.0 192.168.5.0 255.255.255.0
    nat (inside) 0 access-list no_nat
    nat (inside) 1 192.168.9.0 255.255.255.0
    nat (fw-civic) 0 access-list no_nat
    nat (fw-civic) 1 192.168.5.0 255.255.255.0
    Or do I need to create a new acl for the fw-civic interface?
    Thanks

  • I am unable to re-install itunes. The installer starts ok and then indicates that it can not access a network !!

    I am unable to re-install itunes. The installer starts ok and then indicates that it can not access a network !!  I have tried to uninstall but get the sme error message. I have used 3rd party software to uninstal but still have no joy. My pc is running Vista.
    Can you anyone offer a working solution ?

    Many thanks.
    Let's try the fixit from the following Microsoft document with that one:
    Fix problems with programs that can't be installed or uninstalled

  • Can't create Local Network Users in Yosemite

    I can't create Local Network Users (or change passwords)
    Logged on to /LDAPv3/127.0.0.1 as directory administrator
    When I try to create a new user (press the [+], fill in the form), it brings up the message:
    existing connection is not authenticated or secure: password change denied
    I suspect this is emblematic of other issues. I can authenticate for Mail and SMB, but not for AFP or Xcode

    So I had this problem last night as well when I upgraded my 10.9.5 OD master to 10.10.
    Two obvious problems after that upgrade:
    1)  Could not add a new Local Network User
    2)  Existing users could not connect via AFP (but could via SMB)
    Through a series of trial and error (and with two Apple Support people...), we found that the following actions seemed to help fix some (but not all) of the problems.:
    Problem #2 seemed to initially be fixed by archiving the OD Master, destroying the OD Master and then reimporting from the archive.  I archived from the upgraded 10.10, but should probably have tried restoring my 10.9.5 archive (which may end up being why I still have some problems...)
    Problem #1 seemed to be solved when I used WorkGroup Manager to reset the password on the Directory Administrator account I use  (I also blew out all references to that account from the Keychain, so everything reprompted me to add that password
    However, we think the root cause of this might have been that in /var/db/openldap/migration, the following "dot" files were still present after the upgrade
    fs:migration root# ls -la
    total 6308816
    drwx------  10 root  wheel         340 Oct 30 18:59 .
    drwxr-xr-x   6 root  wheel         204 Oct 30 18:57 ..
    -rw-------   1 root  wheel           0 Oct 30 18:59 .autossl
    -rw-------   1 root  wheel           0 Oct 30 18:59 .enableODProxyd
    -rw-------   1 root  wheel           0 Oct 30 18:59 .rekerberize
    -rw-------   1 root  wheel           0 Oct 30 18:59 .updateLocales
    -rw-r--r--   1 root  wheel      333436 Oct 30 18:57 authbackup.ldif
    -rw-r--r--@  1 root  wheel      617453 Oct 30 18:57 backup.ldif
    -rw-r--r--   1 root  wheel      617453 Oct 30 18:57 backup.ldif.backup
    -rw-r--r--   1 root  wheel  3228537344 Oct 30 18:59 oldsystem.tar
    Those 4 .dot files were *not* present in that directory on the two other test OD Master servers that I upgraded without issue.
    So we removed them and after having done all the above as well -- I can now add users to the server.   The OD engineer I talked to thought that the presence of those .dot files may have been triggering something to rerun every time PasswordService launched.
    When all was said and done, I was then able to "kinit <mydiradminaccount>" correctly and get a "klist" without issue.
    ALL THAT SAID:  As of this morning, *some* (most?  I don't know yet) of my existing OD user accounts are able to successfully log into the server.   A couple of them (so far) are reporting that their account is "disabled" (which is different from the "shaking"/can't-log-in behavior) -- but they can still log in via SMB -- so I think there was still a problem migrating OD accounts in the upgrade process.
    AND -- I noticed that -- in Server 4.0 -- "change password" is greyed out, so I have to use WorkGroup Manager to change server account passwords. 
    Whee...

  • Can not access home network via ipod touch, password entered  not accepted

    Can not access home network via ipod touch, password entered not accepted
    Trying to help my son set up his ipod touch to connect to the network and the password I entered is not accepted.
    1. Which password is required? I entered the password I use for logging into my router
    2. The home network is recognized, when selected it requires a password to be entered, but I am just not sure what password it is looking for to connect.
    I have not been able to find any information on this subject

    jersey0904, Welcome to the discussion area!
    You need to enter the wireless encryption password... not the administrative password for the router.

  • Can't see local network

    I have 3 computers networked together. One is plugged directly into the router, the other two use wireless cards to connect. The computer I use most is one with a wireless connection. Sometimes my computer doesn't see my network. I know the router card works, because at those times I can see other wireless networks in my neighborhood, I just can't see the one in my own house. During those times my son's computer, which is about 3 feet away, sees and connects to the local network just fine, so I know the router is working. When I can see my local network, the signal is strong, so I don't think it has anything to do with signal strength. I'm stumped. When the problem occurs I've tried rebooting my computer, but that doesn't make a difference.

    Hi…….
              Well in this case what you do is from your hardwired PC log into the setup page of the router with http://192.168.1.1 username leave blank and the password is admin.
    Under the wireless tab change the channel to 11. And under advanced wireless settings lower the Beacon to 75 > Fragmentation Threshold to 2304 and the RTS Threshold to 2307. And then you can check the connection with your wireless PC
       Also try to reinstall the wireless card in your Pc once.

  • Can't access internal network from VPN using PIX 506E

    Hello,
    I seem to be having an issue with my PIX configuration. I can ping the VPN client from the the internal network, but can cannot access any resources from the vpn client. My running configuration is as follows:
    Building configuration...
    : Saved
    PIX Version 6.3(5)
    interface ethernet0 auto
    interface ethernet1 auto
    nameif ethernet0 outside security0
    nameif ethernet1 inside security100
    enable password N/JZnmeC2l5j3YTN encrypted
    passwd 2KFQnbNIdI.2KYOU encrypted
    hostname SwantonFw2
    domain-name *****.com
    fixup protocol dns maximum-length 512
    fixup protocol ftp 21
    fixup protocol h323 h225 1720
    fixup protocol h323 ras 1718-1719
    fixup protocol http 80
    fixup protocol rsh 514
    fixup protocol rtsp 554
    fixup protocol sip 5060
    fixup protocol sip udp 5060
    fixup protocol skinny 2000
    fixup protocol smtp 25
    fixup protocol sqlnet 1521
    fixup protocol tftp 69
    names
    access-list outside_access_in permit icmp any any
    access-list allow_ping permit icmp any any echo-reply
    access-list allow_ping permit icmp any any unreachable
    access-list allow_ping permit icmp any any time-exceeded
    access-list INSIDE-IN permit tcp interface inside interface outside
    access-list INSIDE-IN permit udp any any eq domain
    access-list INSIDE-IN permit tcp any any eq www
    access-list INSIDE-IN permit tcp any any eq ftp
    access-list INSIDE-IN permit icmp any any echo
    access-list INSIDE-IN permit tcp any any eq https
    access-list inside_outbound_nat0_acl permit ip 192.168.0.0 255.255.255.0 192.168.240.0 255.255.255.0
    access-list swanton_splitTunnelAcl permit ip any any
    access-list outside_cryptomap_dyn_20 permit ip any 192.168.240.0 255.255.255.0
    no pager
    mtu outside 1500
    mtu inside 1500
    ip address outside 192.168.1.150 255.255.255.0
    ip address inside 192.168.0.35 255.255.255.0
    ip audit info action alarm
    ip audit attack action alarm
    ip local pool VPN_Pool 192.168.240.1-192.168.240.254
    pdm location 0.0.0.0 255.255.255.0 outside
    pdm location 192.168.1.26 255.255.255.255 outside
    pdm location 192.168.240.0 255.255.255.0 outside
    pdm logging informational 100
    pdm history enable
    arp timeout 14400
    global (outside) 1 interface
    nat (inside) 0 access-list inside_outbound_nat0_acl
    nat (inside) 1 192.168.0.0 255.255.255.0 0 0
    access-group outside_access_in in interface outside
    access-group INSIDE-IN in interface inside
    route outside 0.0.0.0 0.0.0.0 192.168.1.1 1
    timeout xlate 0:05:00
    timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
    timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
    timeout sip-disconnect 0:02:00 sip-invite 0:03:00
    timeout uauth 0:05:00 absolute
    aaa-server TACACS+ protocol tacacs+
    aaa-server TACACS+ max-failed-attempts 3
    aaa-server TACACS+ deadtime 10
    aaa-server RADIUS protocol radius
    aaa-server RADIUS max-failed-attempts 3
    aaa-server RADIUS deadtime 10
    aaa-server LOCAL protocol local
    http server enable
    http 192.168.0.0 255.255.255.0 inside
    no snmp-server location
    no snmp-server contact
    snmp-server community public
    no snmp-server enable traps
    floodguard enable
    sysopt connection permit-ipsec
    crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
    crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
    crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20
    crypto dynamic-map outside_dyn_map 20 set transform-set ESP-DES-MD5
    crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
    crypto map outside_map client authentication LOCAL
    crypto map outside_map interface outside
    isakmp enable outside
    isakmp identity address
    isakmp policy 20 authentication pre-share
    isakmp policy 20 encryption des
    isakmp policy 20 hash md5
    isakmp policy 20 group 2
    isakmp policy 20 lifetime 86400
    vpngroup swanton address-pool VPN_Pool
    vpngroup swanton dns-server 192.168.1.1
    vpngroup swanton split-tunnel swanton_splitTunnelAcl
    vpngroup swanton idle-time 1800
    vpngroup swanton password ********
    telnet timeout 5
    ssh timeout 5
    console timeout 0
    dhcpd address 192.168.0.36-192.168.0.254 inside
    dhcpd dns 8.8.8.8 8.8.4.4
    dhcpd lease 3600
    dhcpd ping_timeout 750
    dhcpd auto_config outside
    dhcpd enable inside
    username scott password hwDnqhIenLiwIr9B encrypted privilege 15
    username norm password ET3skotcnISwb3MV encrypted privilege 2
    username tarmbrecht password Zre8euXN6HxXaSdE encrypted privilege 2
    username jlillevik password 9JMTvNZm3dLhQM/W encrypted privilege 2
    username ruralogic password 49ikl05C8VE6k1jG encrypted privilege 15
    username bzeiter password 1XjpdpkwnSENzfQ0 encrypted privilege 2
    username mwalla password l5frk9obrNMGOiOD encrypted privilege 2
    username heavyfab1 password 6.yy0ys7BifWsa9k encrypted privilege 2
    username heavyfab3 password 6.yy0ys7BifWsa9k encrypted privilege 2
    username heavyfab2 password 6.yy0ys7BifWsa9k encrypted privilege 2
    username djet password wj13fSF4BPQzUzB8 encrypted privilege 2
    username cmorgan password y/NeUfNKehh/Vzj6 encrypted privilege 2
    username cmayfield password Pe/felGx7VQ3I7ls encrypted privilege 2
    username jeffg password zQEQceRITRrO4wJa encrypted privilege 2
    terminal width 80
    Cryptochecksum:9005f35a85fa5fe31dab579bbb1428c8
    : end
    [OK]
    Any help will be greatly appreciated

    Bj,
    Are you trying to access network resources behind the inside interface?
    ip address inside 192.168.0.35 255.255.255.0
    If so, please make the following changes:
    1- access-list SWANTON_VPN_SPLIT permit ip 192.168.0.0 255.255.255.0 192.168.240.0 255.255.255.0
    2- no vpngroup swanton split-tunnel swanton_splitTunnelAcl
            vpngroup swanton split-tunnel SWANTON_VPN_SPLIT
    3- no access-list outside_cryptomap_dyn_20 permit ip any 192.168.240.0 255.255.255.0
    4- isakmp nat-traversal 30
    Let me know how it goes.
    Portu.
    Please rate any helpful posts   

  • Access local network drive

    I am looking for a way to access any kind of local network drive shuch as samba or nfs.
    It doesn't seem to be integrated in firefox os and I can't find an application with this functionnality.
    Please help !

    Hi kevin.huet,
    I understand that you would like to use your Firefox OS device to access files in a local network such as Samba or NFS.
    Unfortunately, this feature is not yet available natively for Firefox OS. I also looked in the Firefox Marketplace, and I was not able to find any application that offers these features.
    As a workaround, it may be possible to access the files directly through the browser in your Firefox OS device. I found an article that explains how to '''Access Network File Shares''' in a Chromebook laptop, but I assume that these same instructions should be valid for Firefox OS access.
    Please find the instructions below:
    * [http://www.howtogeek.com/191566/how-to-access-shared-folders-network-printers-and-vpns-on-a-chromebook/]
    I hope you find this information useful. Please let us know if your problem is resolved, and if you have any other questions about the usage of your Firefox OS device.
    Thanks,
    - Ralph

  • Satellite P100-221 - How can I access WiFi networks?

    I have a P100-221.
    I want to access WiFi networks.
    I dont know how to do it. Which driver should I install?
    Any help please?
    Regards
    Nevzat

    Hello
    If Windows recognize a WiFi network you can access and normally you will need a password. If you know this, you have access to the network.
    Furthermore WLAN must be enabled with the WiFi switch on the notebook and by pressing FN+F8.
    For this its not necessary to install a driver but if you need a driver you can find it on the Toshiba website.
    I think you should look in the user manual. There you can a lot of informations about your notebook and informations how to access to a WiFi networks.
    Sometimes its very useful the user manual.
    Greets

  • Can DiskUtility access the network during installation of Mac OS X?

    Hi,
    I am currently backing up my system using SuperDuper .dmg images and store these on a network server. To restore a system from such an image, I am supposed to start Disk Utility during OS X setup. My question is: Can Disk Utility access the network to access the image on a server or would I have to copy the image to a mobile hard disk first and have DiskUtility access the image there?
    Thanks

    no ideas anyone?

  • I can not access local pics on my z10 via BlackBerry express and other apps that can share pics.

    While sharing or editing or using pics on apps such as BlackBerry express Whatsapp bbm etc,I cannot access local pictures. When I tap on add picture or share picture, the light gets dim for a second so as to open gallery but nothing happens then. My z10 is running on bb 10.2.1.3062

    In Disk Utility, you should see an icon in the drive list representing the external drive. Below that is an icon for each volume on the drive. One of those is the Time Machine backup volume. If there are no others, then there is no other data on the drive, at least none that you can get to.

  • How can I used local network outside the US

    How can I set up to use local networks of other countries?

    make sure you have the 3G/4G modle if your talking about that, and to use it with a specific carrier you will also need the sim card from that carrier, and you have to restore the device with the sim card from that carrirer in the device, dont forget to back up and tranasfer purchases as well

  • Help, can't access wireless networks since upgrade. Wireless network button won't slide to on

    Wireless access button not sliding to on. Overseas can't use date network, would cost a fortune.

    Hi there Jlhush,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
    -Griff W.

  • Help Can Accses My Local Network

    Hi
    I have a little problem someone in my office deleted the icon for the network the one that appears just above or under the icons of the harddrives when you open a finder window
    ever since I cant accses my local network and i cant figure it out how to get the icon ones agian
    Can Anyone Help me Please

    Look at Finder > Preferences > Sidebar and see if the icon is checked
    You can call up the Server connection list with Apple Key + K

Maybe you are looking for