I created a WCF service that works perfectly when I go to http://localhost:52099/MyPagesWS.svc
Then I create a test MVC 4 project and add Service Reference with name ServiceReference1
to that url. When I click "Go" it finds my functions.
But when I try to call it in the code, ServiceReference1
cannot be called.
Do you have any idea what's going on?
I created a ConsoleApplication. That works.
I solved this. When you add the service reference, on advanced setting remove the "reuse types" checkbox.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.