Click here to Skip to main content
13,351,243 members (66,944 online)
Rate this:
Please Sign up or sign in to vote.
I have a silverlight app that is connecting to a WCF self hosted service. Originally it was just using HTTP and it worked fine in and out of browser. I recently added Transport security for SSL and it its using a self signed certicate created by makecert. The CA is added to my trusted CA's list. The application works fine in browser; however, out of browser it does not appear to be working at all. It seems to be having issues negotiating the SSL connection.

Any ideas??
Posted 14-Sep-12 3:54am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

spyterweb 14-Sep-12 10:48am
Thanks for the reply. I already came across that site earlier. I am not using IIS, it is a self hosted WCF service and I already got SSL set up and working in browser mode. The issue I am having is out of browser mode does not seem to support SSL. I am new to silverlight and I have been posting everywhere trying to get some info on this, so far no luck..
Sandeep Mewara 14-Sep-12 12:33pm
What do you mean by 'self hosted WCF'?

Working in browser does not mean confirm the application is working properly until deployed and tried. Local webserver settings and original webserver like IIS differs a little.

I would sugest you to deploy your app on IIS and then try out.
spyterweb 14-Sep-12 12:43pm
By self hosted, I mean the service is being installed using the installutil as an actual "windows service" and it is not being hosted through IIS. When creating a wcf service, you have the option to host it via IIS or "self host" it as a windows service that runs on a specified port and is accessible.
Sandeep Mewara 14-Sep-12 12:56pm
Dude, WCF hosted as Windows Service? You sure what you saying?
spyterweb 14-Sep-12 12:56pm
Basically the service is working in SSL and i can hit it in the browser. The silverlight application can hit it as well when its being ran "in browser", but when I try to run the silverlight application in "out of browser mode" it cannot access the service. silverlight uses a different http stack for oob mode vs in browser mode so my question is - Does silverlight support https in oob mode.
Sandeep Mewara 14-Sep-12 12:57pm
You try to understand, you cannot know for sure until you host the web application properly on a web server.
spyterweb 14-Sep-12 13:16pm
Yes I know what I'm saying. You can host a WCF "properly" without IIS.

Google self hosting WCF service

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180111.1 | Last Updated 8 Apr 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100