I have a notificationService under 443 port but when i try to add it to windows phone 7 service reference I can’t, so is it can be linked that the fact that my service is deployed under 443 port.
An error occurred while making the HTTP request to http://localhost:443/NotificationService.svc. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server.
The underlying connection was closed: An unexpected error occurred on a send.
The handshake failed due to an unexpected packet format.
If the service is defined in the current solution, try building the solution and adding the service reference again.
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="True" multipleSiteBindingsEnabled="false"/>
<services>
<service name="Project.Services.NotificationService"
behaviorConfiguration="notificationservicebehavior">
<endpoint name="basicHttpBinding"
contract="Project.Services.INotificationService"
address="http://127.0.0.1:443/NotificationService.svc"
binding="basicHttpBinding"
/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="notificationservicebehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
If you’re using a self signed certificate or one that’s not from any of these authorities you’ll need to install this on the device.
There are only 2 ways to install 3rd party certificates on the device and neither can currently be done through code:
You’ll have to get the user to perform one of these actions before the app will work with the certificate.
From Windows Phone 7 and Certificates_FINAL_121610.pdf