Deploying Flex\ColdFusion to Web Server - apache-flex

I'm developing a mobile application using Flash Builder. It is connected to a remote MySQL database and ColdFusion which is installed on my computer.
The program runs smoothly in the debugger. However, when I tried to run it on the actual device using USB, I got the following message:
" the project is currently configured to access data services from
local url that cannot be accessed from your device. Before running the
application on device, you should deploy data services to server that
your device can access. "
I don't know what I am supposed to do to make it work on the device.

Related

Unable to Create Azure Storage Queue Messages with ASP.NET 4.6.1 App

I have an old ASP.NET 4.6.1 app running in a VM on Azure.
I’m trying to create messages in an Azure Storage Queue and nothing is happening when I run it on production VM. However, on my dev machine, it works fine and I can create messages in the same queue that I’m trying to access from the production VM.
The call to the queue is within a try catch block and it’s not throwing any errors.
Another important point is that I had use the old/deprecated WindowsAzure.Storage NuGet package as that’s the one that seems to work on this ASP.NET MVC 4.6.1 app.
Any idea what could be the issue here? Because I don’t see any errors, I’m not sure how to go about fixing this problem.
According to MS Docs, one troubleshooting option you can try is "Redeploy Windows virtual machine to new Azure node"
The doc says,
If you have been facing difficulties troubleshooting Remote Desktop
(RDP) connection or application access to Windows-based Azure virtual
machine (VM), redeploying the VM may help.
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/redeploy-to-new-node-windows
See also additional troubleshooting steps:
Restart the virtual machine
Recreate the endpoint / firewall rules / network security group
(NSG) rules
Connect from different location, such as a different Azure virtual
network
Recreate the virtual machine
There are various reasons when you cannot start or connect to an application running on an Azure virtual machine (VM). Reasons include the application not running or listening on the expected ports, the listening port blocked, or networking rules not correctly passing traffic to the application.
Source: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshoot-app-connection
This might be network Firewall issue. Open azure portal from production vm machine. You can even try to manually see the storage and upload files from web.

Access local host website from Android Device

I have created web services application in asp.net mvc and now need to access it from my Android device connected on same network. This is needed to debug webservies application. I do not have a static IP. The site is running with url http://localhost:27719 but I cannot access localhost from Android device. I researched web and tried below options:
Tried changing website binding information in applicationhost.config file. But I couldn't find my webstie entry in applicationhost file.
I have also tried opening the specific port 27719 in windows firewall. But that isn't working too.
I am able to access website if I host on IIS. But I need to access it when I run from Visual Studio, so that I can debug.
Please suggest how can I access webservices on my machine from Android device connected to same wifi network.
In the menu at the top of the window in Visual Studio, go to Debug, then Attach to Process (alternatively, press Control Alt P on your keyboard). It will ask you which process to attach to. Choose w3wp.exe and press Attach. The debugger will then connect to your site in IIS, and you'll be able to debug when the Android device is connected to the site.
It should be noted that you'll need to provide the IP of the server in the URL on your Android device, not "localhost".

Can't connect to IIS Express remotely from non-Windows machine

I am working on an ASP.NET application and I'd like the ability to test the application on my (Android) phone and iPad by connecting directly to my local IIS Express development server. I followed the instructions here on setting up IIS Express to allow remote connections. I am now able to view the application from another Windows machine on my local network by visiting http://my-computer-name:my-port-number/ in the browser. However, I am unable to view the application from any other platform (Android, iOS, and OS X - tested in both Chrome and Firefox); the browser silently churns away for a minute or so before giving me a generic "could not connect to my-computer-name:my-port-number" page.
What is the difference between the platforms that is disallowing me from viewing my ASP.NET application on non-Windows machines?
If your devices are on the same network, from the command prompt try ipconfig get the IP Address from your wireless and from your device try http://[IP Address]:[Port].
Like in this example:
http://192.168.2.122:5252
I am not an expert on Mac but if I recall correctly your issue may be associated with this:
http://www.wikihow.com/Add-a-Mac-to-a-Homegroup
What is the difference between the platforms that is disallowing me
from viewing my ASP.NET application on non-Windows machines?
The network to which they are connected. You seem to have mentioned that your Windows machine is connected to the same local network as the computer hosting the web application. But the other devices probably aren't. So make sure that those devices are connected to the same network.

How to make WP8 emulator access ASP.NET debug server

Is it possible to get the WP8 emulator to access a ASP.NET Development debug server I run on my pc?
WP8 Emulator runs inside Hyper-V and the debug server on my pc is therefore not accessible to the emulator, is it possible to do so it is?
Only solution I can come up with is create a IIS server on my machine and debug that, but its much easier running development server.
The problem isn't really "how to access the development server from the emulator", but "how to access the development server from a remote location". The emulator is 'just' another device connected to the network.
And for that, I can suggest a few links:
http://blog.waynehartman.com/archive/2010/05/30/218.aspx
Is There a Way to Make Remote Calls to ASP.NET Development Web Server?

how to connect to a web service from windows mobile(when running emulator)

I have as asp.net webserver that I hosted and I went to my mobile application I am building and made a web reference to it.
So it finds it and stuff and now I can access the web methods because of the wsdl generated. However when it tries to connect I get this:
Could not establish connection to network.
So do I have to enable something to make this work?
Take a look at this article. It explains how to setup your mobile device for internet connectivity.
Windows Mobile Emulator and Internet Connectivity
It's been awhile since i have had to do this. Perhaps it is as easy as Matt has suggested, I can remember having a hard time making this work with Windows Vista, Visual Studio 2005 and the Windows Mobile 5.0 Pocket PC Emulator. I've found a couple more articles, hope this helps.
HOWTO: Configure Network in Windows Mobile / PocketPC Device Emulator
Making Emulator to connect to the Network
I have used web services and rest based services via webrequests on the emulator without needing to configure the NE2000 adapters.
Change activesync or WMDC to connect using DMA (in wmdc: mobile device settings | connection settings, then set 'allow connections to one of the following' to DMA)
Then in VS2008, under tools select device emulator manager, and pick the emulator that is running, right click on it and select cradle, this should connect activesync/wmdc to the emulator and provide a network connection that is sufficient to communicate over http with web services.

Resources