![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 willbreak 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 Specs![]() |
| 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 | |||