How to start internet in emulator of windows? - windows-phone-8-emulator

I'm using Windows 8.1 and visual studio 2013 to develop windows phone application.
I'm also using PCL to interact with Web Service
I'm using HTTPClient to call web service method and get response in JSON format
when I try to run application on emulator or physical device , appliction is not working.

I would suggest testing the internet connection using IE and if you can browse to internet sites. If you can browse using IE, then you might want to check your application endpoint\URL is correct.
If you have problems connecting to internet from IE, then check the WiFi connection and\or data connection on device to see if it is setup correctly. For Emulator you can follow below steps troubleshoot internet connectivity issues.
https://msdn.microsoft.com/en-us/library/windows/apps/jj681694(v=vs.105).aspx#BKMK_CannotconnecttoInternetdestinations

Related

ASP.NET (macOS) - Send Windows Credentials in SQL Connection

I'm a contractor working remotely on a legacy ASP.NET application. I'm struggling to stand up a local instance of the project due to the error SQL Exception - SQL Server does not exist or access denied. I suspect this is because of the use of Windows Authentication for the SQL databases backing the project.
Before I launch into a lot more detail I'll ask my question: what are my options to pass Windows credentials to an SQL server in an ASP.NET project built on OSX?
I believe I've proven this is possible with some steps I'll detail below, but the actual implementation in an ASP.NET project is escaping me due to my inexperience with everything .NET, and the many-fold differences between my setup and the typical dev.
Standard Dev Setup
The devs I'm working alongside are using Windows machines housed in their corporate domain, running Visual Studio 2012. Because they're already logged into their machines with the appropriate credentials, the use of Integrated Security=SSPI in the SQL connection string "just works".
My Setup
I'm running a Mac Mini outside of their corporate domain, and using Visual Studio in conjunction with Mono to support the .NET Framework-based project. Passing the SSPI option won't work out of the box because I'm not connected to any Active Directory. That said, I do have valid credentials to log into their network.
What's worked so far
I've proven that a connection to their network resources is possible:
When logged into a virtual Windows machine, I can connect to a shared drive on that network with the credentials I was provided.
I then set up that same shared drive on my Mac Mini with those same credentials.
Using SQL Pro for MSSQL, I was able to connect to the desired database using my credentials.
As I understand it, what I'm looking for can be accomplished on Windows with Credential Manager, so bottom line I think I'm looking for the equivalent solution on OSX that plays nicely with ASP.NET project as compiled by Visual Studio.

Xamarin and Web API

I have been struggling with this now for couple of days. I have a Xamarin App running on Emulator, which is attempting to connect to Web API running on my local machine. I tried connecting via the IP 10.0.2.2, which I believe is the IP for connecting to local pc from emulator (please correct me if am wrong).
The API runs on IIS Express. Could someone guide me ?
First, make sure that the web service is accessible from your app browser is a good starting point.
It is really simple to do this using SharpProxy. The link of the article:

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.

WindowsPhone 8 Emulator has stopped my internet from working

Yesterday I installed WP8 SDK and built a simple hello world app, next time when i logged on to my laptop the internet was not working and i still cannot get it to work. In network adapter settings there is a connection to emulator and one is for my connection to wifi. It looks like wp emulator has messed with internet settings etc.
Please help.
Regards
Instead of using manual settings for wifi or you internet use DHCP.
Using DCHP works for me as windows phone emulator creates switches and change your internet settings.
I hope this will work for you.
UPDATE
Here is a tutorial How to enable DHCP in windows?

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