I am currently running Windows 7 through Parallels on my Mac(mountain lion). I developed a web service using Visual Studios 2010. I am able to access the web service when I "Start program without debugging" but I still can't access the web service through another web browser (Chrome, Firefox, Safari).
Here is what I have done so far:
At first I thought it was something wrong with my network connection between OSX and Win 7 so I bridged the network through airport between OSX and Win 7. But for some reason the IP addresses are still different MAC (192.168.1.121) WIN 7(192.168.1.131). So I guess this could still be the problem.
The next thing I did was changed how Visual Studios starts the program from Visual Studio Development Server to Local IIS Server as was suggested through something that I found on the internet.
So my question is how can I access the webservice through another web browser using parallels?
for some reason the IP addresses are still different MAC (192.168.1.121) WIN 7(192.168.1.131)
Yes, it is supposed to be so, because they are different machines and have to have different IPs
Do you able to access the service from browser started in the same VM using address 127.0.0.1?
If yes, do you able to access it from Mac using IP-address of Win7?
If 2 fails, then you should try to disable Firewall in Win7 VM, most likely it blocks access to service.
Related
i have a emulator (from Xamarin Studios, its a android) now i develop a app for this emulator, they must be connect to the web Service (localhost), which i write with C# in Visual Studio. But the emulator dont connect to the localhost and dont can see the site. I want to write a webservice with any functions (connect to database, select, update and so on) and i want that the app can connect to this web service and can be use the function.
i hope someone can help me.
greetz
Your Android emulator's localhost will be the Android emulator itself. You will need to connect to your webservice using the actual IP address of your machine. If you are running your webservices using the VS host, keep in mind that it will not serve to non-local addresses by default.
Host that service in your IIS
then call by HTTP methods with url like
http://localhost(or Ip address)/Urservicename.svc/ServicefunctionName
I have a Windows Store - Metro app that connects with a Net TCP WCF Service running on same PC (hosted in a console application) but on Desktop mode of Windows 8. I have added a reference of WCF Service inside metro app and everything works fine.
I package my store/metro app and WCF Service and try out on another PC which don't have Visual Studio installed so I don't recompile the code, I just install the metro app package and run the executable of WCF Service. WCF Service starts fine but when I launch my metro app it give me error (see the image below)
It seems that for some reason metro app when installed on other PC is unable to find the service reference. I have tried many things after googling but nothing works. Any ideas/hint/suggestion would be greatly appreciated.
Windows Store Apps generally cannot use the loopback address, except for 1) communication within the SAME process, or 2) for development purposes. From How to enable loopback and troubleshoot network isolation:
Network communications using an IP loopback address cannot be used for interprocess communication (between two different apps) in a Windows Store app since this is restricted by network isolation. Network communication using an IP loopback address is allowed within an app within the same process for communication purposes.
A developer may want to use loopback for testing or debugging purposes, even though that capability will not be available for customers. For example, an app may want to download data from a web service from a Windows Store app. For development purposes, the developer wants to test the app on a single computer that is configured with the web service locally on 127.0.0.1.
Loopback is permitted only for development purposes. Usage by a Windows Store app installed outside of Visual Studio is not permitted.
In a production scenario, you will likely have to install the WCF service on a separate machine. Note that you will have to enable the "private network" capability in your application manifest (on the client app) to enable local network access.
I am trying to connect Windows Phone 8 emulator to the internet. I have tried all the tricks and steps given in Stack overflow or any other site but I am unable to get it.
I tried this:
Step 1 - using Hyper-V start the server, once started u can see the two new network adapters added in the (network sharing) page.
Step 2 - go to your visual studio IDE where your application runs, using Emulator run your application, once started try to open IE, it will not connect to internet.
Step 3 - now again come back to network sharing page right click on external adapter which was created newly select properties, hit on sharing tab, now check the two options to have tick mark if not tick that two options and click on OK.
Step 4 - internal adapter which was created newly will be changing the domain name from Unidentified network to your shared Domain name, once changed try to access the IE again in emulator which runs already. now i hope the internet connection works.
But once it's done it is showing:
The Windows Phone Emulator wasn't able to connect to the Windows Phone operating system:
The phone didn't respond to the connect request.
Some functionality may be disabled.
The resolution to which I found on internet was:
All you have to do is going to "Network and Internet --> Network Connections", right click on "vEthernet (Internal Ethernet Port) Windows Phone Emulator" and Enable it.
But it was already enabled .
So I don't know how to make internet work.
Some connection tools on the host can have negative effects when used with the emulator; I found having cisco VPN client installed on the host prevented the emulator from finding the internet. Other VPN clients may have similar side-effects. I simply uninstalled cisco (the inbuilt windows VPN is fine for what I need) and it worked perfectly.
I've also seen problems where it won't find the internet after the host has been suspended / resumed. In that scenario, it turned out to be bad network drivers. I installed a dedicated Intel NIC (rather than the on-board NIC on the motherboard) - problem solved.
Basically, Hyper-V is a bit fussy.
1.Check whether you are using latest internet explorer 10 or not. if not update and check it.
2.Still if it's not working, it could be the problem with your display drivers. You should have WDDM 2.0 drivers. Graphic card also goes well.
If you are using any proxy servers which require credentials for connecting to the internet, it may not probably get connected from the emulator.
This is because it doesnt support proxy authentication. The class for authentication are missing in the phone version of .Net
Please see the below post .
Not able to connect to webservice from a WP7 emulator
I have developed a web client and a web service which works fine in my localhost.
The next step for me is to test it in other PC from my network.
I send my IP to my friends lets say: 195.50.12.65. From another pc they can't access my client.
So i try this: "http://195.50.12.65/MyWebServices2/WebApp.aspx" (without the double quotes) and nothing.
Next thing I open a port 80 from my firewall and still nothing any ideas on what to do next?
Note: my client and service are program in C#, using the notepad, asp.net and the IIS, not using Visual Studio (don't ask why, I am just not using it)
I'm developing a mobile application (on visual strudio 2005 sp1) and I get this exception when I try to reach the web service(written on sap). But this is not all.
When I run the app on emulator on computer(connecting internet with cable) it works fine. Also I installed the app to mobile device and no problem BUT only with cradle, I mean only works when it connected to computer with cable of cradle.
Problem starts if the app try to connect web service via wireless connection of our customer's internet.(unplugging from cradle).
I figured out that if I write the WSDL link in IP form, device connects to web service(on wireless)(but not via code, by copying link to text file and clicking to it) but on other form device can't find web service's page. I added the IP of web service to hosts file but problem still exists.
I solved this problem by taking web service address from sap transaction sicf.