mukesh salaria

mukesh salaria

  • NA
  • 20
  • 35.3k

Error: There was no endpoint listening at

Jun 12 2014 4:07 PM
Hey guys,
I am going to build a windows 8.1 store app with wcf cloud service, once i able to access the cloud service in my windows store app. But after sometime i unable to access the service weird. This error waste my two days already, if any body know the reason of this bug let me know.
The problem with end points, i am using azure cloud service with windows store app.
Here my webconfig code :-
 
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="TransportSecurity">
<security mode="Transport">
<transport clientCredentialType="none" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="AtlasServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="AtlasServiceWebRole.AtlasCloudService" behaviorConfiguration="AtlasServiceBehavior">
<endpoint address="" binding="basicHttpBinding" contract="AtlasServiceWebRole.IAtlasCloudService" />
<host>
<baseAddresses>
<add baseAddress="http://batlas2.cloudapp.net/" />
</baseAddresses>
</host>
</service>
</services>
<serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
 
when i call the function created in cloud service it throw the exeption
 Here the call service function code :-
 
private async void btnGetUserByID_Click(object sender, RoutedEventArgs e)
{
ServiceReference1.AtlasCloudServiceClient objCloudService = new ServiceReference1.AtlasCloudServiceClient();
var _userDetail = await objCloudService.GetUserByID(4); 
 
Here the exception i am facing:-
 
There was no endpoint listening at https://<domain>/AtlasCloudService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Any Idea, this problem really sucks me.........