c# - Unable to get service reference when uploaded to main website server -
i new web services , own domain , server test web-apps live. tried create web-service normal addition operation. running fine on localhost published web-server, , accessed using "add service reference" in visual studio 2012 http://www.mydomain.com/requestserver/webservice.asmx gave me resource not found
error
the requestserver folder @ webserver contains web-service. want know that:
- what server settings should done access web-service?
- what correct way access web-service?
please tell me missing important step?
for wcf in 2010 , iis 7,
you need set servicemetadata tag, located in following hierarchy of web.config:
<system.servicemodel> <behaviors> <servicebehaviors> <behavior> <servicemetadata httpgetenabled="true"/>
this enable meta data publishing, allows service reference feature work.
i assume same in 2012 , whatever build of iis using.
Comments
Post a Comment