WCF service authentication issue

Discussion in 'ASP.NET WebServices' started by wrath, Mar 11, 2009.

  1. I have a Silverlight site talking to a WCF web service, hosted here at discountasp.

    I followed the directions posted here

    http://forum.discountasp.net/showthread.php?t=4162

    My service is here

    http://www.wickedfrenzy.com/wwdev/Service1.svc

    After following the example and making a custom service host. I can connect to service in browser, from VS and my silverlight app works.

    The problem is I can not connect from my home pc's and my friends can not connect. I can only connect from my dev machine which is my work laptop and after checking from other work machines, it seems I can connect from most work pc's except for 1.

    I dont know too much about web.config files but figured this was something authentication related. The default web.config VS spit out had authentication mode = "windows", which I changed to = "none" which made the service work on the 1 work pc it wasnt working on, but it still doesnt work on any other non work pc.

    I have searched the web and havent had any luck. I am using basicHttpBinding.

    I assume there is something to put in web.config to make this work, but I'm wondering if I need to install VS on my home pc and recompile on there since its not part of a special domain/

    Please help!
    thx
     
  2. Cross domain issue debugging VS project

    I added clientaccesspolicy.xml and crossdomain.xml yet I dont seem to be able to debug my silverlight app running against WCF web service.

    I get this

    An error occurred while trying to make a request to URI 'http://www.wickedfrenzy.com/wwdev/Service1.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.

    If I run app with out debugging I dont get this error.
     
  3. X509 cert related?

    I think my problem has to do with x509 certs which I see referenced in my service reference files like configuration91.svcinfo.

    I have set security mode = "none" so not sure why this is happening.

    Do I need to do some cert signing operations in my web service code?

    Why is my project making cert references if I have security off?

    FYI Previous VS debugging post was meant to be its own post.
     
  4. I got this working.

    Setting the bindings security mode = "none" in web.config allows silverlight app to connect. However I still cant see the service in the browser which may have confused me as to whether the SL app would work.

    Also, I think when I changed web.config before I may not have re referenced the web reference and rebuild the silverlight app before retesting SL app.

    What I'm still not clear on is why basicHttpBinding doesnt allow unsecured connections by default. I thought it did?
     

Share This Page