Xamarin unable to Connect to Web Service - xamarin

I am running Xamarin on a computer that is connected to a VPN. I can browse web services from an internet browser that are inside the VPN. However, when I run Xamarin, I get the following error that shows up in Visual Studio:
System.Net.WebException: Error: ConnectFailure (Network is unreachable)
Is there something else that needs to be set up for Xamarin so that it finds these web services? Or does the Emulator specifically need to get set up to connect to the VPN as well?

Related

Prepare Teams App Dependencies fails behind proxy

I create a new Teams application in Visual Studio 2022 (17.4.4). When I try the "Prepare Teams App Dependencies", I get a failure from AppStudioPlugin with the message "API call to Developer Portal failed: Error, connect EACCES 52.113.194.132:443, API name: create-app, ..."
I am behind a proxy, and I see a drop in the firewall logs to 52.113.194.132:443, so it's not going to the proxy.
When I open a browser on that machine, I can go to the developer portal (https://dev.teams.microsoft.com/) without a problem, so the proxy does allow this.
When I open port 443 in the firewall, everything works.
My question is: How do I get it to work via the proxy ?
I did already try to add the proxy to the visual studio config, but also that did not make a difference.
17.4 VS Teams Toolkit uses a language server to handle data between VS and Teams Dev portal. You can try to add this language server to your proxy and test it.
Language server location: ~\appdata\local\microsoft\visualstudio\{VS_version}\extensions\Microsoft\teams toolkit\{Teams_toolkit_version}\server.exe

Unable to contact web service with msxml3.dll error

I am having issues on 2 machines (both on seperate networks) that are unable to access my web service. The service works perfectly on every other machine and network I have tried which rules out any firewall configurtaion.
Call from SQL or vbs script reports
msxml3.dll: The connection with the server was terminated abnormally
Error: 80072efe
Internet Explorer
Incidently the root of the site is not accessible with Intenet explorer (On the problem servers only), however works fine in Both Edge and Chrome.
The certificate is hosted and restricted to TLS 1.2+ And is enabled in IE.

VS2022 IE8 WebDeploy - Could not connect

Why am I unable to publish my website?
I am using Visual Studio 2022.
I am running WebDeploy 3.6 on an AWS EC2 instance.
I have setup up the connection parameters in VS Build -> Publish.
When clicking the "Validate" button I get the error:
Could not connect to the remote computer ("ec2-xx-xxx-xxx-xxx.compute-1.amazonaws.com"). On
the remote computer, make sure that Web Deploy is installed and that the required process
("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink
/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. Unable to connect to the remote server
I have checked the firewall is open for port 8172 on the AWS service and the local instance.
I followed the given link and checked that "Web Management Service " is running.
I have tried restarting VS to no avail.
The WebDeploy/Publish account has admin privileges, I have confirmed the credentials.

Cordova + Win10 + WebSocket: connection fails with SECURITY_ERR

I'm porting an existing Cordova app from Android to Windows 10. The app must open a WebSocket connection to a remote server. At the moment, the connection always fails with the error "WebSocket Error: SECURITY_ERR, Cross zone connection not allowed". The same app is also making regular AJAX requests to the same server and they're working fine.
I'm using Visual Studio 2017 and testing the app locally, using Edge/13.10586.
Is it possible to make the WebSocket connection to work?
UPDATE
My app has both "Internet (Client)" and "Private Networks (Client & Server)" capabilities set. Further tests show that the problem is caused by the combination of web context ("ms-appx-web:") and attempting to connect the WebSocket to a non-FQDN (I'm using only the hostname). If I use FQDN or the IP address instead, it works. If I use local context ("ms-appx:") instead, with non-FQDN, it works.

Why can't I connect to a site on my local network with WP7 via Wifi?

I am working on a WP7 application that retrieves data from a web service. The web service was written by a co-worker and is hosted on a server connected to the office network. The app works just fine in the emulator. However, when I run the app on the actual phone (HTC Surround) it can't connect to the web service. If I try to open a website hosted on the same server that doesn't work either. However I can connect to other websites just fine.
One thing to note is - I don't have a SIM card in the phone, so the only available data connection is via WiFi, which connects to the office network (the same network that the service is hosted on).
I'm able to hit this website just fine from my laptop (on the wired office network), via an Android phone using WiFi, and via an Android phone using 4G.
What could be going on here? Alternatively - how can I debug this issue?
Thanks
I'd start debugging it by using Connectify.me (or something similar) to re-broadcast the wifi network you're having problems with, start Fiddler up and analyze what happens when the device's browser connects to some external site vs the site hosted on your network.

Resources