Can you post your service interface class here with the servicecontract? Is this something to with a kind of client side referrer configuration changes i. I don't understand what you mean. Can you explain a little bit more? Hi Wannes NET part. But i suppose it should work in the same way. But apparently it doesn't. I think it is a specific ASP. NET problem. Maybe you are using specific types in the service contract that aren't supported by ASP.
My WCF service was implemented in its own project, and hosted in by a separate console application in the same solution. If I run the WCF service as the solution's startup project eg. But if I host service from within my console application, while I can still add the reference, the client's web.
So, a workaround is to first let VS host the service, then add the reference, then change the service to be hosted at the same address and port in the console application. This is surprising behaviour, and I am curious if anyone can shed any light on it?
So you haven't written the service yourself? You are just referencing it? I have written some contracts and interface in the service.. I am afraid I cannot help you any more than this. But you said you work in a big team, so probably there will be somebody who can help you. Good luck. And if you find the answer, let me know. Asad Naeem Feb am. I have also found the reason in my project. Let me explain little bit here.
I have two projects in my wcf service solution. I had added a new property in one of the entities of my first project's classes but I did not add its reference again after building. I was assuming that this should work automatically but unfortunately it did not. So when I updated my reference it removed all the entity classes from my reference.
After following the above solution. I rebuild my first project and re-added its reference in my second project and then updated its reference again so it worked fine. Add your solution here. NET 4. Ask a question. Quick access. Search related threads. Remove From My Forums.
Answered by:. Archived Forums. Windows Communication Foundation, Serialization, and Networking. Sign in to vote. My web. Wednesday, September 29, AM. Hi Guys I have solved the problem. Privacy policy. Your computer might show different names or locations for some of the Visual Studio user interface elements in this article. You may be using a different edition of Visual Studio or different environment settings.
For more information, see Personalize the IDE. In Solution Explorer , right-click the name of the project to which you want to add the service, and then click Add Service Reference. If the service implements user name and password security, you may be prompted for a user name and password. You should only reference services from a trusted source. Adding references from an untrusted source may compromise security.
A progress bar displays when the search is being performed. You can stop the search at any time by clicking Stop. In the Services list, expand the node for the service that you want to use and select an entity set.
In the Namespace box, enter the namespace that you want to use for the reference. A service client proxy is generated, and metadata that describes the service is added to the app.
0コメント