Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF - HTTPS and ASP.NET Web Development Server client connect issue

 
 
Old 06-06-2007   #1 (permalink)
ronscottlangham@yahoo.com


 
 

WCF - HTTPS and ASP.NET Web Development Server client connect issue

I have a WCF Web Service that I develop using the ASP.NET Development
Server in Visual Studio. In release, the web service will support both
HTTP and HTTPS. Initially I had only HTTP configured in my web.config
file, but have now added the HTTPS endpoints and bindings. When I do
this, I now get an error when trying to connect to the development
server from my client using HTTP. On the client side, I get the
error..

System.ServiceModel.CommunicationException: The server did not provide
a meaningful reply; this might be caused by a contract mismatch, a
premature session shutdown or an internal server error.

The client works fine when web service runs under IIS with the
following web.config. Here are the bindings and endpoints that I have
in the web.config...

<bindings>
<basicHttpBinding>

<!-- HTTP binding -->
<binding name="basicHttp" >
</binding>

<!-- HTTPS binding -->
<binding name="basicHttps" >
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>

</basicHttpBinding>
</bindings>

<services>
<service name="myServer">

<!-- HTTP endpoint -->
<endpoint binding="basicHttpBinding"
bindingConfiguration="basicHttp"
name="httpAspNet" contract="WebService.IWebApp" />

<!-- HTTPS endpoint -->
<endpoint
binding="basicHttpBinding" bindingConfiguration="basicHttps"
name="httpsAspNet" contract="WebService.IWebApp />

</service>
</services>

If I comment out the HTTPS endpoint, then all works ok in the client
with developement web server. Currently, I have to checkout the
web.config file from verison control during development, comment out
the endpoint. Then, make sure that I do not check it in , or I will
break the release build.

I do not require a HTTPS connection for my client during development,
so have been using HTTP, but just the presence of the HTTPS endpoint
even if not accessed is causing the error.

Anybody else have this issue and suggest a solution?

Thanks,
Ron


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Joyfax Server - Client/server-based fax software allows you to sendand receive fax anywhere Vista print fax & scan
Personal suggestion to Microsoft Virtual Server Development Team Virtual Server
Webmail https: Site Will Not Connect Vista General
https:/server/certsrv/ Hung up. Vista security
Visual Studio 2005 on Vista 5308 - ASP.NET DEVELOPMENT SERVER Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46