Hi all,
I'm new here, i'm a new programmer and i'm having some problems with my web service. Probably this problem is resolved in anther thread but i can't find it. So sorry if it's just a repetition.
That said, i'll explain my problem in the more accurate way i can:
I have a web service for REST and SOAP, it's working great in localhost and now i'm trying to put it on a machine. Here is my web.config file:
<?xml version="1.0"?><configuration><system.web><compilation targetFramework="4.0" debug="true" /><customErrors mode="Off" /></system.web><system.serviceModel><serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="false"/><services><service behaviorConfiguration="WebServiceBehavior" name="WcfUTOasmx.UTO"><host><baseAddresses><add baseAddress="http://www.LocalU_TillOneYougo-tech.com/"/> </baseAddresses></host><endpoint address="" behaviorConfiguration="jsonBehavior" binding="webHttpBinding" bindingConfiguration="webHttpBindingWithJsonP" contract="WcfUTOasmx.IUTO"/><endpoint address="soap" binding="basicHttpBinding" contract="WcfUTOasmx.IUTO"/></service></services><behaviors><endpointBehaviors><behavior name="jsonBehavior"><webHttp helpEnabled="true"/></behavior></endpointBehaviors><serviceBehaviors><behavior name="WebServiceBehavior"><serviceMetadata httpGetEnabled="true"/><serviceDebug includeExceptionDetailInFaults="false"/></behavior></serviceBehaviors></behaviors><bindings><webHttpBinding><binding name="webHttpBindingWithJsonP" crossDomainScriptAccessEnabled="true"/></webHttpBinding></bindings></system.serviceModel><system.web><webServices><conformanceWarnings><remove name="BasicProfile1_1"/></conformanceWarnings></webServices><!--<compilation debug="true" targetFramework="4.0"/>--><httpRuntime targetFramework="4.5"/></system.web><system.webServer><modules runAllManagedModulesForAllRequests="true"/></system.webServer></configuration>
In my UTO.svc.cs file I have this two rows
[WebService(Namespace = "http://www.LocalU_TillOneYougo-tech.com/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
And here there is my .asmx file:
<%@ WebService Language="C#" Class="WcfUTOasmx.UTO" %>
I can't understand why, when i digit http://www.localu_tilloneyougo-tech.com:49351/UTO.svc/resetHW the response is "impossible to find the IP address"
Thanks for your help.
Luca