Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WCF Silverlight https
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
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
spyterweb at 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 at 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 at 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 at 14-Sep-12 12:56pm
   
Dude, WCF hosted as Windows Service? You sure what you saying?
spyterweb at 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 at 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 at 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
 
http://msdn.microsoft.com/en-us/library/ms731758.aspx
http://msdn.microsoft.com/en-us/library/ee939340.aspx
http://wcftutorial.net/WCF-Self-Hosting.aspx

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

  Print Answers RSS
0 OriginalGriff 325
1 Sergey Alexandrovich Kryukov 289
2 CPallini 275
3 DamithSL 260
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 8 Apr 2013
Copyright © CodeProject, 1999-2014
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