I have a windows phone project communicating with a WCF service. All runs fine in the emulator but when I deploy to a device I get an endpoint not found exception with an inner exception of The server returned an error: not found.
This is on a new dev laptop I am setting up. All worked fine on the old laptop.
Any ideas?
Cheers
Steve
If you used the localhost for service change it to ip of the web service. When you run on emulator it understands the localhost because it runs on localhost but when you run on phone the phone has separate ip so it dose not understand localhost anymore.
Related
I have and old app made it in VB.NET 2010.
The App have a GUI and connect to a SOAP service(asmx) on a remote server that runs on HTTPS connection.
A few weeks ago the service provider just changed the web address so I updated the app and works ok in my PC, where VB.NET is installed, and also on a PC that never had that App installed before. But when I try to run the App in the PC that has had that app running for years; it does not work; instead I get this error.
Could not establish secure channel for SSL/TLS with authority....
I think that probably is a .config or a .xml file that the older App created and is messing something.
I also tried disabling the Windows 7 firewall with no luck.
Any clue please?
EDIT:
I just sniffed the connection and the PC that doesn't validate the certificate is trying to get some cab from
.GET /msdownload/update/v3/static/trustedr/en/authrootstl.cab
I can't seem to get my Windows Phone 8 app to successfully connect to my wcf service, and I'm wondering if it is because I haven't yet started paying to host the wcf service online. I can connect to the service when I use the WP8 emulator, but not when I load the app onto a device. Should the device be working or do you think it's because I am not yet hosting the service online?
Maybe that's because your wcf service is accessed through localhost when using the emulator.Then, your device has no access to localhost, if I'm not mistaken, which could explain why your device could not connect to the service.The way to solve this could be to host your service online, as you've already figured.
I have a solution which basically contains three components:
• WCF Service that is hosted locally having a back-end SQL Server Express DB and this WCF service is hosted from a Windows Service
• A console application
• A Windows Store Application
This is what they are meant to do:
• WCF service his hosted locally and is used by the console app and the store app for communicating with the database
• The console app adds an image for processing to the database by contacting the WCF service
• The store app will at regular time look for unprocessed images in database via the WCF service and will process them
Now, the difficulty is:
• The WCF service is hosted successfully and is working absolutely fine and I can check that by hitting its URL http://localhost:8081/XYZ
• The console app is also able to submit images to the WCF service and add their local paths to the database
• The store app however always throws the EndpointNotFoundException when accessing the service at that same localhost path
What have I tried:
• I have tried almost everything from searching through stackoverflow to googling and haven't found a solution yet
• I was thinking that it might be a port issue and so I turned off the firewall to check this, but it did not work, and the store app kept throwing the EndpointNotFoundException
What have worked:
• The complete set-up has, however, worked perfectly on my machine. It is strange that its not working on my client's Windows 8 machine.
Point to be noted:
• The complete solution has been developed in Visual Studio 2013 and the App is for Windows 8.1
• I am not sure, but it seems my client has a Windows 8 machine and we are installing the app on that. (Possibly, that might be a problem. But I'll check)
If there is any help someone could provide me, I'll be really greatful. Thanks in advance!
This is expected. Windows Store apps cannot connect back to the local system in production. This loopback prohibition is disabled for debugging.
See How to enable loopback and troubleshoot network isolation
If your app is to be side-loaded rather than deployed through the store then see Using network loopback in side-loaded Windows Store apps
i'm developing a Windows phone 8 application which consume my wcf service.
Can i host my service locally on my laptop ( using iis express ) and use my phone consume the service?
I can connect to service from wp8 emulator, but it doesn't work when i deploy and test on my phone.
I believe this is a result from your consumed service on the emulator having a direct access to your localhost ip (127.0.0.1), but when you move the software to run on the device, it doesn't find the service in that IP anymore.
This page has a lot of information on the configuration of this matter and probably what you're looking for:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj684580%28v=vs.105%29.aspx
I am developing a blackberry application and i wanted to access the websites from my localhost( local machine). I am running the application on blackberry simulator 8350.
From my code i can browse request any website from internet and i am getting the response.
When i am trying to give the url as localhost:8080/portal/index.php, its displaying me a erro message
HTTP Error 404
description The requested resource (/portal/index.php) is not available.
I am running my apache webserver on port 8080 over windows.
How can i access my local machine website from blackberry simulator?
Please help and guide me.
Thanks
SIA
localhost always points to the machine on which the DNS resolution is performed. In your case that would be the BlackBerry simulator.
To get the simulator to send HTTP request to your dev machine, you need to specify the DNS name or the IP address of that machine. The exact name depends on what your the network configuration of the simulator and your local network is.
The problem is solved.
On My local machine i was running apache on port 8080 and MDS Service was running and binding on the same port.
Simply by changing the port for Apache on my local machine helped me to connect to my local machine and internet from Blackberry Simulator.
#Franci, thanks for your idea.