Can't Activate WCF service

后端 未结 7 1626
甜味超标
甜味超标 2020-12-16 10:05

I\'m working over WCF and it worked fine on localhost. After I placed it on the production server, it thows an exception

The requested service, \'htt

7条回答
  •  悲&欢浪女
    2020-12-16 10:57

    I was able to resolve the issue by following below steps using Visual Studio 2013:

    1. Go to your project folder where you have your *.svc file
    2. Right Click *.svc file --> View in browser
    3. Validate if you are able to browse the service

    1. Go to your project folder where you have your app.config file or where you want to consume the service.
    2. Right click project-->Add-->Service Reference
    3. Click Discover-->Under Services Select Service-->Give desired name to your service reference-->Click OK
    4. It will create "ServiceReference1" under the folder "Service References" & automatically create/update app.config file

提交回复
热议问题