Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows Phone - WCF- Error There was no endpoint listening at
    primarykey
    data
    text
    <p>I am having an error when try to build the project. In my project, when the client send phone number to the service, serivce will return all infomation of user has this phone number.</p> <p>this is service</p> <pre><code> namespace ICService { public class ProfileService : IProfileService { public lbl_Profile ViewProfile(int phonenumber) { Profileview profile = new Profileview(); return profile.ViewProfile(phonenumber); } } public class Profileview { public lbl_Profile ViewProfile(int phonenumber) { try { ToPiDataContext db = new ToPiDataContext(); var query = (from m in db.lbl_Accounts from n in db.lbl_Profiles where m.AccountID == n.AccountID &amp;&amp; m.Phonenumber == phonenumber select new { n.AccountID }).First(); var profile = (from m in db.lbl_Profiles where m.AccountID == query.AccountID select m).First(); return profile; } catch { return null; } } } } </code></pre> <p>in the client</p> <pre><code>public partial class Profile : PhoneApplicationPage { public Profile() { InitializeComponent(); ProfileServiceClient profileClient = new ProfileServiceClient(); profileClient.ViewProfileCompleted += new EventHandler&lt;ViewProfileCompletedEventArgs&gt;(profileService_ViewProfileCompleted); profileClient.ViewProfileAsync(phonenumber); } void profileService_ViewProfileCompleted(object sender, ViewProfileCompletedEventArgs e) { txbFirstName.Text = e.Result.FirstName; txbLastName.Text = e.Result.LastName; txbLocation.Text = e.Result.Location; txbGenre.Text = e.Result.Genre; } } </code></pre> <p>the config in web service</p> <pre><code> &lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior&gt; &lt;serviceMetadata httpGetEnabled="true"/&gt; &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt; &lt;/system.serviceModel&gt; </code></pre> <p>in the phone</p> <pre><code>&lt;system.serviceModel&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="BasicHttpBinding_IAccountService" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"&gt; &lt;security mode="None" /&gt; &lt;/binding&gt; &lt;binding name="BasicHttpBinding_IProfileService" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"&gt; &lt;security mode="None" /&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;client&gt; &lt;endpoint address="http://localhost:2183/AccountService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IAccountService" contract="AccountService.IAccountService" name="BasicHttpBinding_IAccountService" /&gt; &lt;endpoint address="http://localhost:2183/ProfileService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IProfileService" contract="ProfileService.IProfileService" name="BasicHttpBinding_IProfileService" /&gt; &lt;/client&gt; &lt;/system.serviceModel&gt; </code></pre> <p>and this is error <a href="https://i.stack.imgur.com/9450P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9450P.png" alt="http://i915.photobucket.com/albums/ac358/thewall_trancong/Untitled-14.png"></a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload