Reputation: 907
Requirement: Add a service reference that is hosted in a private VPN to my project.
IDE Visual Studio 2013 express edition
Language C#
Framework MVC 5
Question:
What I did:
I tried to add the reference by doing the following:
Right clicking on the service reference folder. click Add Service Reference. Enter URL Click Go (Did not work)
I also went through several msdn and stackoverflow articles and couldnot find anything comprehensible.
Failure messages:
The remote name could not be resolved.
Metadata contains a reference that cannot be resolved.
There was no endpoint listening at that can accept the message.
Note: Thanks in advance for helping me out with this. I am new to this and not sure if I am looking in the right places.
Upvotes: 2
Views: 422
Reputation: 2002
To create service reference, VS2013 will take the WSDL and generate the stack which is used to call the service. So VS2013 will call the service and it needs access to it. VPN is a security layer down to http layer so it is not possible to put credential in http layer. You need to give VPN to your computer with some VPN client first and it'll work.
Upvotes: 2