I have a WCF service that is hosted in IIS on one of our servers inside our AD domain. Why when I want to add the WCF service reference to my .NET app am I being presented with the following message and login boxes?
"The server needs to authenticate your request. Your credentials will be sent to the server in clear text. Do you want to continue?"If I press continue, I get the login box that states:
"The Service 'http://MyServerName.mycompany.com/MyWCFService.svc' at MyCompany requires a username and password."Now in the IIS security I have all security turned off, and only "Enable Anonymous acess" checked. I do not have any additional security in the web.config that should present this either. This WCF service should be consumable without credentials as I have intended. I also have "Everyone" marked with permission to the directory.
Here is the WCF section from my web.config:
| <system.serviceModel> |
| <services> |
| <servicename="MyWCFService.MyServiceClass" |
| behaviorConfiguration="ServiceBehavior"> |
| <!--ServiceEndpoints--> |
| <!--NOTE:CurrentlySilverlight2onlysupports"basicHttpBinding"andmustbesetbeforeconsumingbySLapp--> |
| <endpointaddress="" |
| binding="basicHttpBinding" |
| contract="MyWCFService.IMyServiceClass"> |
| <!-- |
| Upondeployment,thefollowingidentityelementshouldberemovedorreplacedtoreflectthe |
| identityunderwhichthedeployedserviceruns.Ifremoved,WCFwillinferanappropriateidentity |
| automatically. |
| <identity> |
| <dnsvalue="localhost"/> |
| </identity> |
| --> |
| |
| </endpoint> |
| <endpointaddress="mex" |
| binding="mexHttpBinding" |
| contract="IMetadataExchange"/> |
| </service> |
| </services> |
| <behaviors> |
| <serviceBehaviors> |
| <behaviorname="ServiceBehavior"> |
| <!--Toavoiddisclosingmetadatainformation,setthevaluebelowtofalseandremovethemetadataendpointabovebeforedeployment--> |
| <serviceMetadatahttpGetEnabled="true"/> |
| <!--Toreceiveexceptiondetailsinfaultsfordebuggingpurposes,setthevaluebelowtotrue.Settofalsebeforedeploymenttoavoiddisclosingexceptioninformation--> |
| <serviceDebugincludeExceptionDetailInFaults="false"/> |
| </behavior> |
| </serviceBehaviors> |
| </behaviors> |
|
| <bindings> |
| <basicHttpBinding> |
| <bindingname="BasicHttpBinding" |
| openTimeout="00:01:00" |
| receiveTimeout="00:05:00" |
| sendTimeout="00:01:00" |
| maxBufferSize="65536" |
| maxBufferPoolSize="524288" |
| maxReceivedMessageSize="65536" |
| messageEncoding="Mtom" |
| transferMode="Streamed"> |
| <securitymode="None"> |
| <transportclientCredentialType="None"/> |
| </security> |
| </binding> |
| </basicHttpBinding> |
| </bindings> |
|
| </system.serviceModel> |
Does anybody know why this would occur and what I can do to fix it?
Thanks!