hi,i'm developing an app for wp7 which uses a service on my web app.the problem is ,it was working well till this morning i keep receiving the following error (from both actual host and local host) in my wp7 app:
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
arasx
0 Points
2 Posts
the problem with endpoints
Apr 15, 2012 05:57 AM|LINK
hi,i'm developing an app for wp7 which uses a service on my web app.the problem is ,it was working well till this morning i keep receiving the following error (from both actual host and local host) in my wp7 app:
There was no endpoint listening at http://localhost:3840/locafile_ws_v1.0/Service.svc/Service.svc?wsdl that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.i
i refreshed the web reference in my app ,it didnt help.the thing that makes me wondering is that i didn't change anything in web app at all..
i searched and found couple of things,showing that mostly it's related to the "webconfig" file..
could anybody please help me out with correcting this webconfig :
<?xml version="1.0"?>
<configuration>
<!--<system.web>
<compilation debug="true" targetFramework="3.0">
<assemblies>
<add assembly="System.Device, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
</system.web>-->
<system.serviceModel>
<services>
<service name="Service" behaviorConfiguration="ServiceBehaviors">
<endpoint name="Endpoint"
address=""
binding="basicHttpBinding"
contract="IService" />
<endpoint kind="udpDiscoveryEndpoint" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehaviors">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceDiscovery />
</behavior>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --> <serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>