Click here to Skip to main content
15,914,767 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 :-
XML
<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
Posted
Updated 12-Jun-14 11:59am
v2
Comments
Can you access the service in browser through URL?
Mukesh Salaria 2-Jul-14 1:02am    
I fix this problem, actually I was using the Azure cloud as web server and my ip address wasn't saved in the azure cloud. so it was unable to access the service and database thats the reason, it throw endpoints error.
You should add this as an answer, so that it would be helpful for every visitor.

Thanks,
Tadit

1 solution

I fixed this problem, actually I was using the Azure cloud as web server and my ip address wasn't saved in the azure cloud. so it was unable to access the service and database thats the reason, it throw endpoints error.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900