Please Guide Me to Resolve my problem.
First, Let me Explain My Program.
I have Created a Service For Balance Check (ie) if You are give input as a Account number, the web service will return the Balance of the Account.
Note: My Client Application is developed in windows store App.
My WebConfig File as Follows:
<system.serviceModel>
<services>
<service name="AccountBalance">
<endpoint contract="IAccountBalance"
address="AccountBalance"
binding="basicHttpBinding">
</endpoint>
<endpoint address="AccountBalance/MEX/"
binding="mexHttpBinding"
contract="IMetadataExchange">
</endpoint>
<host>
<baseAddresses>
<add baseAddress="http://192.168.1.8:8081/AccountBalance.svc"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="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"/>
<useRequestHeadersForMetadataAddress>
<defaultPorts>
<add scheme="http" port="8081" />
</defaultPorts>
</useRequestHeadersForMetadataAddress>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
I can access the service from Local Computer. When I deployed it on another machine it is not working. shows an error:
There was no endpoint listening at http://:8081/AccountBalance.svc/AccountBalance that could accept the message. This is often caused by an incorrect....
I don't Know Much about the Config. If anything wrong Please Let me know.
I have Hosted my Service in IIS. does any configuration that i have to do in IIS ?
what else could be the problem? I have found More Number of the Related threads Found here but none of them helped me.
Some of the Threads talking about change the Security From None to Transport. I was tried that too. not worked.
EDIT 1:
I was pissed off .. using WPF application i am able to access the service remotely. why im not able to access using windows store app.? –
guys help me fast . im breaking my head on the store app :(
Answer :)
Simple, check the Private Networks(Client & Server) it is located at package.appmanifest-> capabilities :)
确保您在应用清单中声明了Private Networks (Client and Server) capability
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.