Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created a WCF service that I setup in IIS that I am trying to use in my Metro App.

My application works on my local machine and using the simulator. Also, I can test the service using my web browser from a remote machine.

Problem is when I deploy the Metro App to a remote machine I get the following error:

***********************************************
An unhandled exception of type 'System.ServiceModel.EndpointNotFoundException' occurred in mscorlib.dll

Additional information: There was no endpoint listening at http://e6420/Service1.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
***********************************************

e6420 is the machine name hosting the WCF service in IIS.
Posted

Can you ping e6420 and get a response? If you can, can you telnet e6420 80 and establish a connection?

The error message you got suggests that you couldn't connect to the machine. The fact that the error message didn't say that the machine actively refused it generally means it couldn't even find the machine to connect to in the first place.

If you can't hit http://e6420/Service1.svc in your browser, you won't be able to hit it with code (in most cases).
 
Share this answer
 
Comments
Member 8662727 2-Dec-12 20:09pm    
Yes, I can ping e6420 and get a response just fine.

Also, I CAN hit http://e6420/Service1.svc in my browser from a remote machine and it works as expected.

The problem is running my Metro application from a remote machine that uses the WCF service hosted on e6420. If I run my Metro app locally, or in the VS2012 simulator it works fine.
Take a look at this article on MSDN.

http://msdn.microsoft.com/en-us/library/hh556233.aspx[^]

Specifically the section that states the following:
In order for Windows Store applications to make cross machine calls you must enable another capability called “Home/Work Networking”. This setting is also in the Package.appmanifest file under the Capabilities tab. Select the Home/Work Networking checkbox. This gives your application inbound and outbound access to the networks of the user’s trusted places like home and work. Inbound critical ports are always blocked. For accessing services on the internet you must also enable Internet (Client) capability.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900