locked
WCF asking Username and Password RRS feed

  • Question

  • User516094431 posted

    I have create one WCF and publish on my local machine in IIS 7.

    For testing purpose I’m calling in simple web application. But when I add reference from localhost then it’s working fine.

    But when add reference from URL http://shoaib.pk/CheckAuthentication.svc then it’s asking username and password.

    When I set <transport clientCredentialType="none" /> in web.config then it's not asking username and password but data is not getting. :(

    Kindly, guide me which username and password I have to give. 

    Sunday, December 22, 2013 11:24 PM

Answers

  • User516094431 posted

    Thanks k.panchal for your kind reply but I aleardy search out from this link.

    I got answer my self. Actually,It was working fine. Problem is, our database working in intranet network in 5 counties and this service public on internet that's why it was not getting data. :(
    Because of this getting data successfully when I publish on IIS local machine. :)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 24, 2013 12:45 AM

All replies

  • User-265225665 posted

    You have to do something with the web config, please refer below link which is quite simmiler to your post.

    http://stackoverflow.com/questions/8410198/wcf-service-ask-login-and-password

    Monday, December 23, 2013 8:41 AM
  • User516094431 posted

    Thanks k.panchal for your kind reply but I aleardy search out from this link.

    I got answer my self. Actually,It was working fine. Problem is, our database working in intranet network in 5 counties and this service public on internet that's why it was not getting data. :(
    Because of this getting data successfully when I publish on IIS local machine. :)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 24, 2013 12:45 AM